Skip to content

Commit e020ed4

Browse files
authored
Upgrade Rust toolchain to 2025-08-01 (#4261)
Relevant upstream PR: - rust-lang/rust#144713 (`rustc_middle::ty` cleanups) (and specifically the commit Remove `TyCtxt::get_attrs_unchecked`. therein) Resolves: #4260 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 bffcd3f commit e020ed4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kani-compiler/src/kani_middle/attributes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl<'tcx> KaniAttributes<'tcx> {
171171
}
172172

173173
pub fn for_item(tcx: TyCtxt<'tcx>, def_id: DefId) -> Self {
174-
let all_attributes = tcx.get_attrs_unchecked(def_id);
174+
let all_attributes = tcx.get_all_attrs(def_id);
175175
let map = all_attributes.iter().fold(
176176
<BTreeMap<KaniAttributeKind, Vec<&'tcx Attribute>>>::default(),
177177
|mut result, attribute| {
@@ -818,7 +818,7 @@ fn has_kani_attribute<F: Fn(KaniAttributeKind) -> bool>(
818818
def_id: DefId,
819819
predicate: F,
820820
) -> bool {
821-
tcx.get_attrs_unchecked(def_id).iter().filter_map(|a| attr_kind(tcx, a)).any(predicate)
821+
tcx.get_all_attrs(def_id).iter().filter_map(|a| attr_kind(tcx, a)).any(predicate)
822822
}
823823

824824
/// Same as [`KaniAttributes::is_proof_harness`] but more efficient because less

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
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-2025-07-31"
5+
channel = "nightly-2025-08-01"
66
components = ["llvm-tools", "rustc-dev", "rust-src", "rustfmt"]

0 commit comments

Comments
 (0)