diff --git a/src/librustc/hir/check_attr.rs b/src/librustc/hir/check_attr.rs index b6cd173fbd1..22124d4ee41 100644 --- a/src/librustc/hir/check_attr.rs +++ b/src/librustc/hir/check_attr.rs @@ -26,7 +26,7 @@ pub(crate) enum Target { Mod, ForeignMod, GlobalAsm, - Ty, + TyAlias, OpaqueTy, Enum, Struct, @@ -50,7 +50,7 @@ impl Display for Target { Target::Mod => "module", Target::ForeignMod => "foreign module", Target::GlobalAsm => "global asm", - Target::Ty => "type alias", + Target::TyAlias => "type alias", Target::OpaqueTy => "opaque type", Target::Enum => "enum", Target::Struct => "struct",