Skip to content

Commit a5ed151

Browse files
committed
https://github.com/rust-lang/rust/commit/0b3c980c241ccbd0c1b8b90f4f7b62e618bd3f93
Signed-off-by: sagudev <[email protected]>
1 parent 1084038 commit a5ed151

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

support/crown/src/trace_in_no_trace.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ fn incorrect_no_trace<'tcx, I: Into<MultiSpan> + Copy>(
130130
};
131131
let recur_into_subtree = match t.kind() {
132132
ty::Adt(did, substs) => {
133-
if let Some(pos) =
134-
get_must_not_have_traceable(sym, cx.tcx.get_attrs_unchecked(did.did()))
133+
if let Some(pos) = get_must_not_have_traceable(sym, cx.tcx.get_all_attrs(did.did()))
135134
{
136135
let inner = substs.type_at(pos);
137136
if inner.is_primitive_ty() {

0 commit comments

Comments
 (0)