Skip to content

Commit 06e53af

Browse files
committed
Remove TraitAlias from trait_of_item
This is dead code.
1 parent b56aaec commit 06e53af

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ impl<'tcx> TyCtxt<'tcx> {
19941994
pub fn trait_of_item(self, def_id: DefId) -> Option<DefId> {
19951995
if let DefKind::AssocConst | DefKind::AssocFn | DefKind::AssocTy = self.def_kind(def_id) {
19961996
let parent = self.parent(def_id);
1997-
if let DefKind::Trait | DefKind::TraitAlias = self.def_kind(parent) {
1997+
if let DefKind::Trait = self.def_kind(parent) {
19981998
return Some(parent);
19991999
}
20002000
}

0 commit comments

Comments
 (0)