We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7131dd8 commit 0741b65Copy full SHA for 0741b65
support/crown/src/unrooted_must_root.rs
@@ -315,7 +315,7 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
315
316
let trait_id = cx
317
.tcx
318
- .trait_of_item(trait_item.hir_id().expect_owner().to_def_id())
+ .trait_of_assoc(trait_item.hir_id().expect_owner().to_def_id())
319
.unwrap();
320
// we need to make sure that each impl has same crown attrs
321
let impls = cx.tcx.trait_impls_of(trait_id);
0 commit comments