Skip to content

Commit

Permalink
Upgrade rust toolchain to 2023-09-07 (model-checking#2743)
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig authored Sep 8, 2023
1 parent 1e3409d commit 18ea9e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,6 @@ impl<'tcx> GotocCtx<'tcx> {
self.current_fn().mir().var_debug_info.iter().find(|info| match info.value {
VarDebugInfoContents::Place(p) => p.local == *l && p.projection.len() == 0,
VarDebugInfoContents::Const(_) => false,
// This variant was added in
// https://github.com/rust-lang/rust/pull/102570 and is concerned
// with a scalar replacement of aggregates (SROA) MIR optimization
// that is only enabled with `--mir-opt-level=3` or higher.
// TODO: create a test and figure out if we should return debug info
// for this case:
// https://github.com/model-checking/kani/issues/1933
VarDebugInfoContents::Composite { .. } => {
// Fail in debug mode to determine if we ever hit this case
debug_assert!(false, "Unhandled VarDebugInfoContents::Composite");
false
}
})
}
}
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT

[toolchain]
channel = "nightly-2023-09-06"
channel = "nightly-2023-09-07"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

0 comments on commit 18ea9e9

Please sign in to comment.