Skip to content

Commit 86dcaf7

Browse files
committed
https://github.com/rust-lang/rust/pull/144377
Signed-off-by: sagudev <[email protected]>
1 parent a5ed151 commit 86dcaf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support/crown/src/unrooted_must_root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
315315

316316
let trait_id = cx
317317
.tcx
318-
.trait_of_item(trait_item.hir_id().expect_owner().to_def_id())
318+
.trait_of_assoc(trait_item.hir_id().expect_owner().to_def_id())
319319
.unwrap();
320320
// we need to make sure that each impl has same crown attrs
321321
let impls = cx.tcx.trait_impls_of(trait_id);

0 commit comments

Comments
 (0)