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
4 changes: 2 additions & 2 deletions kani-compiler/src/kani_middle/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl<'tcx> KaniAttributes<'tcx> {
}

pub fn for_item(tcx: TyCtxt<'tcx>, def_id: DefId) -> Self {
let all_attributes = tcx.get_attrs_unchecked(def_id);
let all_attributes = tcx.get_all_attrs(def_id);
let map = all_attributes.iter().fold(
<BTreeMap<KaniAttributeKind, Vec<&'tcx Attribute>>>::default(),
|mut result, attribute| {
Expand Down Expand Up @@ -767,7 +767,7 @@ fn has_kani_attribute<F: Fn(KaniAttributeKind) -> bool>(
def_id: DefId,
predicate: F,
) -> bool {
tcx.get_attrs_unchecked(def_id).iter().filter_map(|a| attr_kind(tcx, a)).any(predicate)
tcx.get_all_attrs(def_id).iter().filter_map(|a| attr_kind(tcx, a)).any(predicate)
}

/// Same as [`KaniAttributes::is_proof_harness`] but more efficient because less
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-2025-07-31"
channel = "nightly-2025-08-01"
components = ["llvm-tools", "rustc-dev", "rust-src", "rustfmt"]
Loading