Update Rust toolchain to 2023-11-06 #2858
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update to the latest Rust toolchain (2023-11-06).
The relevant changes are:
rustc_span
cleanups rust-lang/rust#117507: this required changing the import ofSpan
fromrustc_span::source_map::Span
torustc_span::Span
.OffsetOf
variant ofNullOp
fromList<FieldIdx>
toList<(VariantIdx, FieldIdx)>
, which required updating the relevant code inrvalue.rs
.unchecked_math
feature, so this required changing the feature annotation intests/ui/should-panic-attribute/unexpected-failures/test.rs
tests/coverage/unreachable/variant/main.rs
getting optimized out. To maintain what this test is testing, I changed thematch
to make it a bit less-prone to optimization.cargo
(Add new packages to [workspace.members] automatically rust-lang/cargo#12779) resulted in an update to Kani's workspaceCargo.toml
whencargo add
is executed insidetests/script-based-pre/build-cache-bin
. This is apparently intended behavior, so I had to make theexclude
in theCargo.toml
more specific to make sure this doesn't happen (I tried using a glob, but that didn't work, apparently because of cargo should support glob syntax on workspace excludes rust-lang/cargo#6009.Resolves #2848
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.