Skip to content

Commit

Permalink
Update Rust toolchain nightly-2024-05-24 (#3212)
Browse files Browse the repository at this point in the history
> 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/rust#124976.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
  • Loading branch information
qinheping authored May 30, 2024
1 parent 63dd504 commit 4a88939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kani-compiler/src/kani_middle/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ where
/// Resolves an external crate name.
fn resolve_external(tcx: TyCtxt, name: &str) -> Option<DefId> {
debug!(?name, "resolve_external");
tcx.crates(()).iter().find_map(|crate_num| {
tcx.used_crates(()).iter().find_map(|crate_num| {
let crate_name = tcx.crate_name(*crate_num);
if crate_name.as_str() == name {
Some(DefId { index: CRATE_DEF_INDEX, krate: *crate_num })
Expand Down
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-2024-05-23"
channel = "nightly-2024-05-24"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

0 comments on commit 4a88939

Please sign in to comment.