@@ -728,23 +728,21 @@ enum AmbiguityKind {
728
728
impl AmbiguityKind {
729
729
fn descr ( self ) -> & ' static str {
730
730
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 " ,
734
734
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"
736
736
}
737
737
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"
739
739
}
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" ,
741
741
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"
744
743
}
745
744
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"
748
746
}
749
747
}
750
748
}
0 commit comments