@@ -728,23 +728,21 @@ enum AmbiguityKind {
728728impl AmbiguityKind {
729729 fn descr ( self ) -> & ' static str {
730730 match self {
731- AmbiguityKind :: Import => "name vs any other name during import resolution " ,
732- AmbiguityKind :: BuiltinAttr => "built-in attribute vs any other name " ,
733- AmbiguityKind :: DeriveHelper => "derive helper attribute vs any other name " ,
731+ AmbiguityKind :: Import => "multiple potential import sources " ,
732+ AmbiguityKind :: BuiltinAttr => "a name conflict with a builtin attribute " ,
733+ AmbiguityKind :: DeriveHelper => "a name conflict with a derive helper attribute " ,
734734 AmbiguityKind :: MacroRulesVsModularized => {
735- "`macro_rules` vs non-`macro_rules` from other module"
735+ "a conflict between a `macro_rules` name and a non-`macro_rules` name from another module"
736736 }
737737 AmbiguityKind :: GlobVsOuter => {
738- "glob import vs any other name from outer scope during import/ macro resolution"
738+ "a conflict between a name from a glob import and an outer scope during import or macro resolution"
739739 }
740- AmbiguityKind :: GlobVsGlob => "glob import vs glob import in the same module" ,
740+ AmbiguityKind :: GlobVsGlob => "multiple glob imports of a name in the same module" ,
741741 AmbiguityKind :: GlobVsExpanded => {
742- "glob import vs macro-expanded name in the same \
743- module during import/macro resolution"
742+ "a conflict between a name from a glob import and a macro-expanded name in the same module during import or macro resolution"
744743 }
745744 AmbiguityKind :: MoreExpandedVsOuter => {
746- "macro-expanded name vs less macro-expanded name \
747- from outer scope during import/macro resolution"
745+ "a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution"
748746 }
749747 }
750748 }
0 commit comments