Skip to content

Commit cc09efe

Browse files
remi-delmas-3000Remi Delmas
and
Remi Delmas
authored
Update rust toolchain to nightly-2023-09-19 (rust-lang#2778)
Co-authored-by: Remi Delmas <[email protected]>
1 parent 43392e5 commit cc09efe

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

kani-compiler/src/kani_middle/reachability.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -457,11 +457,9 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MonoItemsFnCollector<'a, 'tcx> {
457457
match self.tcx.const_eval_resolve(ParamEnv::reveal_all(), un_eval, None) {
458458
// The `monomorphize` call should have evaluated that constant already.
459459
Ok(const_val) => const_val,
460-
Err(ErrorHandled::TooGeneric) => span_bug!(
461-
self.body.source_info(location).span,
462-
"Unexpected polymorphic constant: {:?}",
463-
literal
464-
),
460+
Err(ErrorHandled::TooGeneric(span)) => {
461+
span_bug!(span, "Unexpected polymorphic constant: {:?}", literal)
462+
}
465463
Err(error) => {
466464
warn!(?error, "Error already reported");
467465
return;

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
[toolchain]
5-
channel = "nightly-2023-09-18"
5+
channel = "nightly-2023-09-19"
66
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

0 commit comments

Comments
 (0)