Skip to content

Commit 4a88939

Browse files
authored
Update Rust toolchain nightly-2024-05-24 (rust-lang#3212)
> Please ensure your PR description includes the following: > 1. A description of how your changes improve Kani. > 2. Some context on the problem you are solving. > 3. A list of issues that are resolved by this PR. > 4. If you had to perform any manual test, please describe them. > > **Make sure you remove this list from the final PR description.** Fix usage of `tcx.crates()`: rust-lang#124976. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent 63dd504 commit 4a88939

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kani-compiler/src/kani_middle/resolve.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ where
247247
/// Resolves an external crate name.
248248
fn resolve_external(tcx: TyCtxt, name: &str) -> Option<DefId> {
249249
debug!(?name, "resolve_external");
250-
tcx.crates(()).iter().find_map(|crate_num| {
250+
tcx.used_crates(()).iter().find_map(|crate_num| {
251251
let crate_name = tcx.crate_name(*crate_num);
252252
if crate_name.as_str() == name {
253253
Some(DefId { index: CRATE_DEF_INDEX, krate: *crate_num })

rust-toolchain.toml

+1-1
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-2024-05-23"
5+
channel = "nightly-2024-05-24"
66
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

0 commit comments

Comments
 (0)