Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]