]> git.lizzy.rs Git - rust.git/commitdiff
resolve: Tweak some articles in ambiguity diagnostics
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sun, 11 Nov 2018 16:46:04 +0000 (19:46 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sun, 18 Nov 2018 10:57:03 +0000 (13:57 +0300)
33 files changed:
src/librustc_resolve/lib.rs
src/test/ui-fulldeps/custom-derive/helper-attr-blocked-by-import-ambig.stderr
src/test/ui-fulldeps/proc-macro/ambiguous-builtin-attrs.stderr
src/test/ui-fulldeps/proc-macro/derive-helper-shadowing.stderr
src/test/ui/empty/empty-struct-tuple-pat.stderr
src/test/ui/enum/enum-in-scope.stderr
src/test/ui/error-codes/E0530.stderr
src/test/ui/imports/glob-shadowing.stderr
src/test/ui/imports/issue-53269.stderr
src/test/ui/imports/local-modularized-tricky-fail-1.stderr
src/test/ui/imports/macro-paths.stderr
src/test/ui/imports/macros.stderr
src/test/ui/imports/shadow_builtin_macros.stderr
src/test/ui/issues/issue-16149.stderr
src/test/ui/issues/issue-17718-patterns.stderr
src/test/ui/issues/issue-23716.stderr
src/test/ui/issues/issue-27033.stderr
src/test/ui/issues/issue-34047.stderr
src/test/ui/macros/macro-path-prelude-shadowing.stderr
src/test/ui/pattern/pat-shadow-in-nested-binding.stderr
src/test/ui/pattern/pattern-binding-disambiguation.stderr
src/test/ui/rust-2018/uniform-paths-forward-compat/ambiguity-macros-nested.stderr
src/test/ui/rust-2018/uniform-paths-forward-compat/ambiguity-macros.stderr
src/test/ui/rust-2018/uniform-paths-forward-compat/ambiguity-nested.stderr
src/test/ui/rust-2018/uniform-paths-forward-compat/ambiguity.stderr
src/test/ui/rust-2018/uniform-paths-forward-compat/block-scoped-shadow.stderr
src/test/ui/rust-2018/uniform-paths/ambiguity-macros-nested.stderr
src/test/ui/rust-2018/uniform-paths/ambiguity-macros.stderr
src/test/ui/rust-2018/uniform-paths/ambiguity-nested.stderr
src/test/ui/rust-2018/uniform-paths/ambiguity.stderr
src/test/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.stderr
src/test/ui/rust-2018/uniform-paths/block-scoped-shadow.stderr
src/test/ui/static/static-mut-not-pat.stderr

index ff222397e59acd0385e9163e92700dc5e1319db1..257964cba1c0d406640efc75343dc77d61a5987a 100644 (file)
@@ -406,13 +406,13 @@ fn resolve_struct_error<'sess, 'a>(resolver: &'sess Resolver,
             err
         }
         ResolutionError::BindingShadowsSomethingUnacceptable(what_binding, name, binding) => {
-            let (shadows_what, article) = (binding.descr(), binding.article());
+            let shadows_what = binding.descr();
             let mut err = struct_span_err!(resolver.session, span, E0530, "{}s cannot shadow {}s",
                                            what_binding, shadows_what);
             err.span_label(span, format!("cannot be named the same as {} {}",
-                                         article, shadows_what));
+                                         binding.article(), shadows_what));
             let participle = if binding.is_import() { "imported" } else { "defined" };
-            let msg = format!("{} {} `{}` is {} here", article, shadows_what, name, participle);
+            let msg = format!("the {} `{}` is {} here", shadows_what, name, participle);
             err.span_label(binding.span, msg);
             err
         }
@@ -4788,11 +4788,11 @@ fn report_ambiguity_error(&self, ambiguity_error: &AmbiguityError) {
                                         `{ident}` to disambiguate", ident = ident))
             }
             if b.is_extern_crate() && self.session.rust_2018() {
-                help_msgs.push(format!("use `::{ident}` to refer to the {thing} unambiguously",
+                help_msgs.push(format!("use `::{ident}` to refer to this {thing} unambiguously",
                                        ident = ident, thing = b.descr()))
             }
             if misc == AmbiguityErrorMisc::SuggestSelf {
-                help_msgs.push(format!("use `self::{ident}` to refer to the {thing} unambiguously",
+                help_msgs.push(format!("use `self::{ident}` to refer to this {thing} unambiguously",
                                        ident = ident, thing = b.descr()))
             }
 
index fc55dc1eef67a967d5818169aaaeff6bd34f612e..ee98873064fc4a6253c7a348337cf31a5456ad23 100644 (file)
@@ -14,7 +14,7 @@ note: `helper` could also refer to the attribute macro imported here
    |
 LL | use plugin::helper;
    |     ^^^^^^^^^^^^^^
-   = help: use `self::helper` to refer to the attribute macro unambiguously
+   = help: use `self::helper` to refer to this attribute macro unambiguously
 
 error: aborting due to previous error
 
index 00f5cfc2613a087427c5f969d9682b7b45e922ee..34b21ea26830c1e7458722e7e9486bb29aeac167 100644 (file)
@@ -16,7 +16,7 @@ note: `repr` could also refer to the attribute macro imported here
    |
 LL | use builtin_attrs::*;
    |     ^^^^^^^^^^^^^^^^
-   = help: use `self::repr` to refer to the attribute macro unambiguously
+   = help: use `self::repr` to refer to this attribute macro unambiguously
 
 error[E0659]: `repr` is ambiguous (built-in attribute vs any other name)
   --> $DIR/ambiguous-builtin-attrs.rs:11:19
@@ -30,7 +30,7 @@ note: `repr` could also refer to the attribute macro imported here
    |
 LL | use builtin_attrs::*;
    |     ^^^^^^^^^^^^^^^^
-   = help: use `self::repr` to refer to the attribute macro unambiguously
+   = help: use `self::repr` to refer to this attribute macro unambiguously
 
 error[E0659]: `repr` is ambiguous (built-in attribute vs any other name)
   --> $DIR/ambiguous-builtin-attrs.rs:20:34
@@ -44,7 +44,7 @@ note: `repr` could also refer to the attribute macro imported here
    |
 LL | use builtin_attrs::*;
    |     ^^^^^^^^^^^^^^^^
-   = help: use `self::repr` to refer to the attribute macro unambiguously
+   = help: use `self::repr` to refer to this attribute macro unambiguously
 
 error[E0659]: `repr` is ambiguous (built-in attribute vs any other name)
   --> $DIR/ambiguous-builtin-attrs.rs:22:11
@@ -58,7 +58,7 @@ note: `repr` could also refer to the attribute macro imported here
    |
 LL | use builtin_attrs::*;
    |     ^^^^^^^^^^^^^^^^
-   = help: use `self::repr` to refer to the attribute macro unambiguously
+   = help: use `self::repr` to refer to this attribute macro unambiguously
 
 error[E0659]: `feature` is ambiguous (built-in attribute vs any other name)
   --> $DIR/ambiguous-builtin-attrs.rs:3:4
@@ -72,7 +72,7 @@ note: `feature` could also refer to the attribute macro imported here
    |
 LL | use builtin_attrs::*;
    |     ^^^^^^^^^^^^^^^^
-   = help: use `self::feature` to refer to the attribute macro unambiguously
+   = help: use `self::feature` to refer to this attribute macro unambiguously
 
 error: aborting due to 6 previous errors
 
index 4950b016d37669799849afd78b17f2b759350b8c..f04782fac4d2d6d9b5ca44075f9d3d8493c23580 100644 (file)
@@ -14,7 +14,7 @@ note: `my_attr` could also refer to the attribute macro imported here
    |
 LL | use derive_helper_shadowing::*;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
-   = help: use `self::my_attr` to refer to the attribute macro unambiguously
+   = help: use `self::my_attr` to refer to this attribute macro unambiguously
 
 error: aborting due to previous error
 
index 3d219b1752f675f65ccf9c9ab0b614c6bb946584..3708aa36089693c08aad9a6e8a3171bf2c471bc6 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: match bindings cannot shadow tuple structs
   --> $DIR/empty-struct-tuple-pat.rs:32:9
    |
 LL | struct Empty2();
-   | ---------------- a tuple struct `Empty2` is defined here
+   | ---------------- the tuple struct `Empty2` is defined here
 ...
 LL |         Empty2 => () //~ ERROR match bindings cannot shadow tuple structs
    |         ^^^^^^ cannot be named the same as a tuple struct
@@ -11,7 +11,7 @@ error[E0530]: match bindings cannot shadow tuple structs
   --> $DIR/empty-struct-tuple-pat.rs:35:9
    |
 LL | use empty_struct::*;
-   |     --------------- a tuple struct `XEmpty6` is imported here
+   |     --------------- the tuple struct `XEmpty6` is imported here
 ...
 LL |         XEmpty6 => () //~ ERROR match bindings cannot shadow tuple structs
    |         ^^^^^^^ cannot be named the same as a tuple struct
index 1e8d59404954253324ad6723656cc70d9a4ae16d..b294aabb4edb9e48aaa5c0841c4ef5450d67d4c7 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: let bindings cannot shadow tuple structs
   --> $DIR/enum-in-scope.rs:14:9
    |
 LL | struct hello(isize);
-   | -------------------- a tuple struct `hello` is defined here
+   | -------------------- the tuple struct `hello` is defined here
 ...
 LL |     let hello = 0; //~ERROR let bindings cannot shadow tuple structs
    |         ^^^^^ cannot be named the same as a tuple struct
index e157ca9042cd9d99e61750ac72469175585d0a6c..96bc47a1afecfa595b8c1794a7bd8b21b69e62df 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: match bindings cannot shadow statics
   --> $DIR/E0530.rs:16:9
    |
 LL |     static TEST: i32 = 0;
-   |     --------------------- a static `TEST` is defined here
+   |     --------------------- the static `TEST` is defined here
 ...
 LL |         TEST => {} //~ ERROR E0530
    |         ^^^^ cannot be named the same as a static
index 93d3fa969efc30752fabcbbb3a623b80cd10b7d2..6a4774facd77c79ea233452eecadf7662df4570d 100644 (file)
@@ -11,7 +11,7 @@ note: `env` could also refer to the macro imported here
 LL |     use m::*;
    |         ^^^^
    = help: consider adding an explicit import of `env` to disambiguate
-   = help: or use `self::env` to refer to the macro unambiguously
+   = help: or use `self::env` to refer to this macro unambiguously
 
 error[E0659]: `env` is ambiguous (glob import vs any other name from outer scope during import/macro resolution)
   --> $DIR/glob-shadowing.rs:29:21
@@ -44,7 +44,7 @@ note: `fenv` could also refer to the macro defined here
    |
 LL |     pub macro fenv($e: expr) { $e }
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   = help: use `self::fenv` to refer to the macro unambiguously
+   = help: use `self::fenv` to refer to this macro unambiguously
 
 error: aborting due to 3 previous errors
 
index 9fa438e91cd221226c8a057edf02575f4593367f..781595212f8c4479935f38dbdd14b2af539196b1 100644 (file)
@@ -20,7 +20,7 @@ note: `mac` could also refer to the unresolved item imported here
    |
 LL |     use nonexistent_module::mac; //~ ERROR unresolved import `nonexistent_module`
    |         ^^^^^^^^^^^^^^^^^^^^^^^
-   = help: use `self::mac` to refer to the unresolved item unambiguously
+   = help: use `self::mac` to refer to this unresolved item unambiguously
 
 error: aborting due to 2 previous errors
 
index 91e569d1764617a50c5524bc0ce3c3dacf37bdb4..962294e48caef9a999dca37758ad41412915d3d4 100644 (file)
@@ -38,7 +38,7 @@ LL | |     }
 ...
 LL |       define_include!();
    |       ------------------ in this macro invocation
-   = help: use `self::include` to refer to the macro unambiguously
+   = help: use `self::include` to refer to this macro unambiguously
 
 error[E0659]: `panic` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
   --> $DIR/local-modularized-tricky-fail-1.rs:45:5
@@ -57,7 +57,7 @@ LL | |     }
 ...
 LL |       define_panic!();
    |       ---------------- in this macro invocation
-   = help: use `self::panic` to refer to the macro unambiguously
+   = help: use `self::panic` to refer to this macro unambiguously
 
 error[E0659]: `panic` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
   --> <::std::macros::panic macros>:1:13
@@ -76,7 +76,7 @@ LL | |     }
 ...
 LL |       define_panic!();
    |       ---------------- in this macro invocation
-   = help: use `self::panic` to refer to the macro unambiguously
+   = help: use `self::panic` to refer to this macro unambiguously
 
 error: aborting due to 4 previous errors
 
index 96880492e285f255884626c0bfdde1b736d4c1b5..8e8742f849bf07516564da3b00e5999f7b4dcda7 100644 (file)
@@ -34,7 +34,7 @@ LL | / pub mod baz {
 LL | |     pub use two_macros::m;
 LL | | }
    | |_^
-   = help: use `self::baz` to refer to the module unambiguously
+   = help: use `self::baz` to refer to this module unambiguously
 
 error: aborting due to 2 previous errors
 
index ade49e6be2483bd7f377bfafbbfee3e12a8887e4..77a0311fa6055e93e6f7909d552cb236d5c46d0e 100644 (file)
@@ -32,7 +32,7 @@ note: `m` could also refer to the macro imported here
    |
 LL |     use two_macros::m;
    |         ^^^^^^^^^^^^^
-   = help: use `self::m` to refer to the macro unambiguously
+   = help: use `self::m` to refer to this macro unambiguously
 
 error: aborting due to 2 previous errors
 
index 4d6c1aa3ea5e7a27bd5695dec1c656fee78925f4..b53b7e2700db8e8e32e02068a0c5778d1e1e620f 100644 (file)
@@ -11,7 +11,7 @@ note: `panic` could also refer to the macro imported here
 LL |     use foo::*;
    |         ^^^^^^
    = help: consider adding an explicit import of `panic` to disambiguate
-   = help: or use `self::panic` to refer to the macro unambiguously
+   = help: or use `self::panic` to refer to this macro unambiguously
 
 error[E0659]: `panic` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
   --> $DIR/shadow_builtin_macros.rs:30:14
@@ -25,7 +25,7 @@ note: `panic` could also refer to the macro imported here
    |
 LL |     ::two_macros::m!(use foo::panic;);
    |                          ^^^^^^^^^^
-   = help: use `self::panic` to refer to the macro unambiguously
+   = help: use `self::panic` to refer to this macro unambiguously
 
 error[E0659]: `panic` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
   --> $DIR/shadow_builtin_macros.rs:43:5
@@ -55,7 +55,7 @@ note: `n` could refer to the macro imported here
 LL |     use bar::*;
    |         ^^^^^^
    = help: consider adding an explicit import of `n` to disambiguate
-   = help: or use `self::n` to refer to the macro unambiguously
+   = help: or use `self::n` to refer to this macro unambiguously
 note: `n` could also refer to the macro imported here
   --> $DIR/shadow_builtin_macros.rs:46:13
    |
index b0b6e9dfcd03d2254aa155f5a16a924e87b97169..284ed03552639a2e8ff049d562d947cc704c60a4 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: match bindings cannot shadow statics
   --> $DIR/issue-16149.rs:17:9
    |
 LL |     static externalValue: isize;
-   |     ---------------------------- a static `externalValue` is defined here
+   |     ---------------------------- the static `externalValue` is defined here
 ...
 LL |         externalValue => true,
    |         ^^^^^^^^^^^^^ cannot be named the same as a static
index 13cab9a08b1de5ca9df76d33d86001fc710dd4e5..c49613eb33c51bf3afcc828e4343a630f2d466f2 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: match bindings cannot shadow statics
   --> $DIR/issue-17718-patterns.rs:17:9
    |
 LL | static A1: usize = 1;
-   | --------------------- a static `A1` is defined here
+   | --------------------- the static `A1` is defined here
 ...
 LL |         A1 => {} //~ ERROR: match bindings cannot shadow statics
    |         ^^ cannot be named the same as a static
@@ -11,7 +11,7 @@ error[E0530]: match bindings cannot shadow statics
   --> $DIR/issue-17718-patterns.rs:18:9
    |
 LL | static mut A2: usize = 1;
-   | ------------------------- a static `A2` is defined here
+   | ------------------------- the static `A2` is defined here
 ...
 LL |         A2 => {} //~ ERROR: match bindings cannot shadow statics
    |         ^^ cannot be named the same as a static
index fd268c1b5a1905a1cadd689f267043b601836210..c175f197034b436bc99fddfd05fc19177db750d9 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: function parameters cannot shadow statics
   --> $DIR/issue-23716.rs:13:8
    |
 LL | static foo: i32 = 0;
-   | -------------------- a static `foo` is defined here
+   | -------------------- the static `foo` is defined here
 LL | 
 LL | fn bar(foo: i32) {}
    |        ^^^ cannot be named the same as a static
@@ -11,7 +11,7 @@ error[E0530]: function parameters cannot shadow statics
   --> $DIR/issue-23716.rs:23:13
    |
 LL | use self::submod::answer;
-   |     -------------------- a static `answer` is imported here
+   |     -------------------- the static `answer` is imported here
 LL | 
 LL | fn question(answer: i32) {}
    |             ^^^^^^ cannot be named the same as a static
index ba573c3eb6db83db63e868159dd2874770b646cd..dfd635d36e8c64304d04d17dcdf97e2e0ad06c49 100644 (file)
@@ -8,7 +8,7 @@ error[E0530]: match bindings cannot shadow constants
   --> $DIR/issue-27033.rs:17:9
    |
 LL |     const C: u8 = 1;
-   |     ---------------- a constant `C` is defined here
+   |     ---------------- the constant `C` is defined here
 LL |     match 1 {
 LL |         C @ 2 => { //~ ERROR match bindings cannot shadow constant
    |         ^ cannot be named the same as a constant
index 10804cc6fff4bc85339a6b5e131a902f43c1bca9..10e4e9c1c1223e483bb85d72b06535d33ddc6f91 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: match bindings cannot shadow constants
   --> $DIR/issue-34047.rs:15:13
    |
 LL | const C: u8 = 0;
-   | ---------------- a constant `C` is defined here
+   | ---------------- the constant `C` is defined here
 ...
 LL |         mut C => {} //~ ERROR match bindings cannot shadow constants
    |             ^ cannot be named the same as a constant
index 3e0ea82364265675ac55076e6f29a9d3cb53f545..904eed9f2499f51ebb79271a28849e955ee2dbc4 100644 (file)
@@ -11,7 +11,7 @@ note: `std` could also refer to the module imported here
 LL |     use m2::*; // glob-import user-defined `std`
    |         ^^^^^
    = help: consider adding an explicit import of `std` to disambiguate
-   = help: or use `self::std` to refer to the module unambiguously
+   = help: or use `self::std` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index 9dd6a318e98dfc1d6758ebf086a95733bf772621..994c78d575e27787a2f59e2e9413f5829c6d1dfd 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: let bindings cannot shadow tuple structs
   --> $DIR/pat-shadow-in-nested-binding.rs:14:10
    |
 LL | struct foo(usize);
-   | ------------------ a tuple struct `foo` is defined here
+   | ------------------ the tuple struct `foo` is defined here
 ...
 LL |     let (foo, _) = (2, 3); //~ ERROR let bindings cannot shadow tuple structs
    |          ^^^ cannot be named the same as a tuple struct
index 7acdb07e10da63db29a843976b3e4689f03f37b4..5d14610b8a1ab3d79d4801dc5de87b2a826cf265 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: match bindings cannot shadow tuple structs
   --> $DIR/pattern-binding-disambiguation.rs:34:9
    |
 LL | struct TupleStruct();
-   | --------------------- a tuple struct `TupleStruct` is defined here
+   | --------------------- the tuple struct `TupleStruct` is defined here
 ...
 LL |         TupleStruct => {} //~ ERROR match bindings cannot shadow tuple structs
    |         ^^^^^^^^^^^ cannot be named the same as a tuple struct
@@ -11,7 +11,7 @@ error[E0530]: match bindings cannot shadow tuple variants
   --> $DIR/pattern-binding-disambiguation.rs:43:9
    |
 LL | use E::*;
-   |     ---- a tuple variant `TupleVariant` is imported here
+   |     ---- the tuple variant `TupleVariant` is imported here
 ...
 LL |         TupleVariant => {} //~ ERROR match bindings cannot shadow tuple variants
    |         ^^^^^^^^^^^^ cannot be named the same as a tuple variant
@@ -20,7 +20,7 @@ error[E0530]: match bindings cannot shadow struct variants
   --> $DIR/pattern-binding-disambiguation.rs:46:9
    |
 LL | use E::*;
-   |     ---- a struct variant `BracedVariant` is imported here
+   |     ---- the struct variant `BracedVariant` is imported here
 ...
 LL |         BracedVariant => {} //~ ERROR match bindings cannot shadow struct variants
    |         ^^^^^^^^^^^^^ cannot be named the same as a struct variant
@@ -29,7 +29,7 @@ error[E0530]: match bindings cannot shadow statics
   --> $DIR/pattern-binding-disambiguation.rs:52:9
    |
 LL | static STATIC: () = ();
-   | ----------------------- a static `STATIC` is defined here
+   | ----------------------- the static `STATIC` is defined here
 ...
 LL |         STATIC => {} //~ ERROR match bindings cannot shadow statics
    |         ^^^^^^ cannot be named the same as a static
@@ -38,7 +38,7 @@ error[E0530]: let bindings cannot shadow tuple structs
   --> $DIR/pattern-binding-disambiguation.rs:59:9
    |
 LL | struct TupleStruct();
-   | --------------------- a tuple struct `TupleStruct` is defined here
+   | --------------------- the tuple struct `TupleStruct` is defined here
 ...
 LL |     let TupleStruct = doesnt_matter; //~ ERROR let bindings cannot shadow tuple structs
    |         ^^^^^^^^^^^ cannot be named the same as a tuple struct
@@ -47,7 +47,7 @@ error[E0530]: let bindings cannot shadow tuple variants
   --> $DIR/pattern-binding-disambiguation.rs:62:9
    |
 LL | use E::*;
-   |     ---- a tuple variant `TupleVariant` is imported here
+   |     ---- the tuple variant `TupleVariant` is imported here
 ...
 LL |     let TupleVariant = doesnt_matter; //~ ERROR let bindings cannot shadow tuple variants
    |         ^^^^^^^^^^^^ cannot be named the same as a tuple variant
@@ -56,7 +56,7 @@ error[E0530]: let bindings cannot shadow struct variants
   --> $DIR/pattern-binding-disambiguation.rs:63:9
    |
 LL | use E::*;
-   |     ---- a struct variant `BracedVariant` is imported here
+   |     ---- the struct variant `BracedVariant` is imported here
 ...
 LL |     let BracedVariant = doesnt_matter; //~ ERROR let bindings cannot shadow struct variants
    |         ^^^^^^^^^^^^^ cannot be named the same as a struct variant
@@ -65,7 +65,7 @@ error[E0530]: let bindings cannot shadow statics
   --> $DIR/pattern-binding-disambiguation.rs:65:9
    |
 LL | static STATIC: () = ();
-   | ----------------------- a static `STATIC` is defined here
+   | ----------------------- the static `STATIC` is defined here
 ...
 LL |     let STATIC = doesnt_matter; //~ ERROR let bindings cannot shadow statics
    |         ^^^^^^ cannot be named the same as a static
index b8cbabeea2c8e71a93570e2c5134ee0e7b476b9b..204e0a7e1411ed4c8437a4c66917e0c6a6913b93 100644 (file)
@@ -5,7 +5,7 @@ LL |     pub use std::io;
    |             ^^^ ambiguous name
    |
    = note: `std` could refer to a built-in extern crate
-   = help: use `::std` to refer to the extern crate unambiguously
+   = help: use `::std` to refer to this extern crate unambiguously
 note: `std` could also refer to the module defined here
   --> $DIR/ambiguity-macros-nested.rs:21:13
    |
@@ -16,7 +16,7 @@ LL | |             }
 ...
 LL |       m!();
    |       ----- in this macro invocation
-   = help: use `self::std` to refer to the module unambiguously
+   = help: use `self::std` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index 5c9ab11085454256f02c3e75dde54e329f2f74a7..ac8d3b9d0cbe4d0dc347f35a2c901d89e375f29b 100644 (file)
@@ -5,7 +5,7 @@ LL | use std::io;
    |     ^^^ ambiguous name
    |
    = note: `std` could refer to a built-in extern crate
-   = help: use `::std` to refer to the extern crate unambiguously
+   = help: use `::std` to refer to this extern crate unambiguously
 note: `std` could also refer to the module defined here
   --> $DIR/ambiguity-macros.rs:20:9
    |
@@ -16,7 +16,7 @@ LL | |         }
 ...
 LL |   m!();
    |   ----- in this macro invocation
-   = help: use `self::std` to refer to the module unambiguously
+   = help: use `self::std` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index e98b9ad9a2ae6f7140592b82c4ca3345238eceae..7bcfc563d39fc288da54189a482753efc48e984f 100644 (file)
@@ -5,7 +5,7 @@ LL |     pub use std::io;
    |             ^^^ ambiguous name
    |
    = note: `std` could refer to a built-in extern crate
-   = help: use `::std` to refer to the extern crate unambiguously
+   = help: use `::std` to refer to this extern crate unambiguously
 note: `std` could also refer to the module defined here
   --> $DIR/ambiguity-nested.rs:19:5
    |
@@ -13,7 +13,7 @@ LL | /     mod std {
 LL | |         pub struct io;
 LL | |     }
    | |_____^
-   = help: use `self::std` to refer to the module unambiguously
+   = help: use `self::std` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index 75387454015b9f7dab75e8b9a910dbb94f6f1083..beeb74654e5b5bc7194dc9c2fba8a68703f7834c 100644 (file)
@@ -5,7 +5,7 @@ LL | use std::io;
    |     ^^^ ambiguous name
    |
    = note: `std` could refer to a built-in extern crate
-   = help: use `::std` to refer to the extern crate unambiguously
+   = help: use `::std` to refer to this extern crate unambiguously
 note: `std` could also refer to the module defined here
   --> $DIR/ambiguity.rs:16:1
    |
@@ -13,7 +13,7 @@ LL | / mod std {
 LL | |     pub struct io;
 LL | | }
    | |_^
-   = help: use `self::std` to refer to the module unambiguously
+   = help: use `self::std` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index d0e3d002b0885181907d9f3f0124e7ffe37b797f..5d539e2d59f1549ca3ba2498cba8236c33662059 100644 (file)
@@ -14,7 +14,7 @@ note: `std` could also refer to the struct defined here
    |
 LL | struct std;
    | ^^^^^^^^^^^
-   = help: use `self::std` to refer to the struct unambiguously
+   = help: use `self::std` to refer to this struct unambiguously
 
 error[E0659]: `std` is ambiguous (name vs any other name during import resolution)
   --> $DIR/block-scoped-shadow.rs:18:9
@@ -32,7 +32,7 @@ note: `std` could also refer to the unit struct defined here
    |
 LL | struct std;
    | ^^^^^^^^^^^
-   = help: use `self::std` to refer to the unit struct unambiguously
+   = help: use `self::std` to refer to this unit struct unambiguously
 
 error: aborting due to 2 previous errors
 
index f18de7edcdcbc23396a416a7f14e352b6a41d648..8b893cf26fbf16e1288353153d4b7ce5b9bb9b4b 100644 (file)
@@ -5,7 +5,7 @@ LL |     pub use std::io;
    |             ^^^ ambiguous name
    |
    = note: `std` could refer to a built-in extern crate
-   = help: use `::std` to refer to the extern crate unambiguously
+   = help: use `::std` to refer to this extern crate unambiguously
 note: `std` could also refer to the module defined here
   --> $DIR/ambiguity-macros-nested.rs:23:13
    |
@@ -16,7 +16,7 @@ LL | |             }
 ...
 LL |       m!();
    |       ----- in this macro invocation
-   = help: use `self::std` to refer to the module unambiguously
+   = help: use `self::std` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index 16e083b0980836f32fff005c018b4435e98a1495..4b81a9860dbdd2a94bc9210ef470aaa7a3ed5dd9 100644 (file)
@@ -5,7 +5,7 @@ LL | use std::io;
    |     ^^^ ambiguous name
    |
    = note: `std` could refer to a built-in extern crate
-   = help: use `::std` to refer to the extern crate unambiguously
+   = help: use `::std` to refer to this extern crate unambiguously
 note: `std` could also refer to the module defined here
   --> $DIR/ambiguity-macros.rs:22:9
    |
@@ -16,7 +16,7 @@ LL | |         }
 ...
 LL |   m!();
    |   ----- in this macro invocation
-   = help: use `self::std` to refer to the module unambiguously
+   = help: use `self::std` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index cb38102c5997e1446b2a3dd7f332bce2b967cf0c..6415f46b38a3cf157215d2a9eab9034a75305ade 100644 (file)
@@ -5,7 +5,7 @@ LL |     pub use std::io;
    |             ^^^ ambiguous name
    |
    = note: `std` could refer to a built-in extern crate
-   = help: use `::std` to refer to the extern crate unambiguously
+   = help: use `::std` to refer to this extern crate unambiguously
 note: `std` could also refer to the module defined here
   --> $DIR/ambiguity-nested.rs:21:5
    |
@@ -13,7 +13,7 @@ LL | /     mod std {
 LL | |         pub struct io;
 LL | |     }
    | |_____^
-   = help: use `self::std` to refer to the module unambiguously
+   = help: use `self::std` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index ce0c64b226b59200a212f4e403a4b2adc729ab6f..93044ff2222c9eb3261567d03819b6d6078e1c13 100644 (file)
@@ -5,7 +5,7 @@ LL | use std::io;
    |     ^^^ ambiguous name
    |
    = note: `std` could refer to a built-in extern crate
-   = help: use `::std` to refer to the extern crate unambiguously
+   = help: use `::std` to refer to this extern crate unambiguously
 note: `std` could also refer to the module defined here
   --> $DIR/ambiguity.rs:18:1
    |
@@ -13,7 +13,7 @@ LL | / mod std {
 LL | |     pub struct io;
 LL | | }
    | |_^
-   = help: use `self::std` to refer to the module unambiguously
+   = help: use `self::std` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index 32f5cb30177b7d1c51521445d974e5364aa94cb9..e0064fe8fe22454f1f57f7a13bb48d170fcdbb6e 100644 (file)
@@ -16,7 +16,7 @@ LL | / mod sub {
 LL | |     pub fn bar() {}
 LL | | }
    | |_^
-   = help: use `self::sub` to refer to the module unambiguously
+   = help: use `self::sub` to refer to this module unambiguously
 
 error: aborting due to previous error
 
index a1db1c3e0be6c8f3e93912d6e8c4de168cde6454..3b40c3d36fa6a7c489d35a23b0481b5bac69483d 100644 (file)
@@ -14,7 +14,7 @@ note: `Foo` could also refer to the enum defined here
    |
 LL | enum Foo {}
    | ^^^^^^^^^^^
-   = help: use `self::Foo` to refer to the enum unambiguously
+   = help: use `self::Foo` to refer to this enum unambiguously
 
 error[E0659]: `std` is ambiguous (name vs any other name during import resolution)
   --> $DIR/block-scoped-shadow.rs:28:9
@@ -32,7 +32,7 @@ note: `std` could also refer to the struct defined here
    |
 LL | struct std;
    | ^^^^^^^^^^^
-   = help: use `self::std` to refer to the struct unambiguously
+   = help: use `self::std` to refer to this struct unambiguously
 
 error[E0659]: `std` is ambiguous (name vs any other name during import resolution)
   --> $DIR/block-scoped-shadow.rs:28:9
@@ -50,7 +50,7 @@ note: `std` could also refer to the unit struct defined here
    |
 LL | struct std;
    | ^^^^^^^^^^^
-   = help: use `self::std` to refer to the unit struct unambiguously
+   = help: use `self::std` to refer to this unit struct unambiguously
 
 error: aborting due to 3 previous errors
 
index 123cf7b3ac6bd93cb6a8e948be09d7c560c0f633..96dc06ee5241abf81c6696185fd7b868c09519ce 100644 (file)
@@ -2,7 +2,7 @@ error[E0530]: match bindings cannot shadow statics
   --> $DIR/static-mut-not-pat.rs:23:9
    |
 LL | static mut a: isize = 3;
-   | ------------------------ a static `a` is defined here
+   | ------------------------ the static `a` is defined here
 ...
 LL |         a => {} //~ ERROR match bindings cannot shadow statics
    |         ^ cannot be named the same as a static
@@ -11,7 +11,7 @@ error[E0530]: match bindings cannot shadow statics
   --> $DIR/static-mut-not-pat.rs:46:9
    |
 LL | static mut STATIC_MUT_FOO: Foo = Foo { bar: Some(Direction::West), baz: NEW_FALSE };
-   | ------------------------------------------------------------------------------------ a static `STATIC_MUT_FOO` is defined here
+   | ------------------------------------------------------------------------------------ the static `STATIC_MUT_FOO` is defined here
 ...
 LL |         STATIC_MUT_FOO => (),
    |         ^^^^^^^^^^^^^^ cannot be named the same as a static