about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-02-18 18:20:23 -0800
committerEsteban Küber <esteban@kuber.com.ar>2020-02-28 11:37:59 -0800
commit0387f0d19b3e439b4f361cecd5be8977665f35c2 (patch)
tree456f3195a2f4777dc74bb1bbcd738b4542ccfda1 /src/test
parent89e96e9bc575b370c7b55055aad28bebd14e8dfe (diff)
downloadrust-0387f0d19b3e439b4f361cecd5be8977665f35c2.tar.gz
rust-0387f0d19b3e439b4f361cecd5be8977665f35c2.zip
Mention the full path of the implementing trait
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/associated-const/associated-const-no-item.stderr2
-rw-r--r--src/test/ui/auto-ref-slice-plus-ref.stderr8
-rw-r--r--src/test/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.stderr2
-rw-r--r--src/test/ui/impl-trait/no-method-suggested-traits.stderr12
-rw-r--r--src/test/ui/issues/issue-5153.stderr2
-rw-r--r--src/test/ui/issues/issue-57362-1.stderr2
-rw-r--r--src/test/ui/issues/issue-57362-2.stderr2
-rw-r--r--src/test/ui/never_type/issue-2149.stderr2
-rw-r--r--src/test/ui/object-pointer-types.stderr4
-rw-r--r--src/test/ui/self/point-at-arbitrary-self-type-trait-method.stderr2
-rw-r--r--src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr2
-rw-r--r--src/test/ui/traits/trait-item-privacy.stderr6
-rw-r--r--src/test/ui/trivial-bounds/trivial-bounds-leak.stderr2
13 files changed, 24 insertions, 24 deletions
diff --git a/src/test/ui/associated-const/associated-const-no-item.stderr b/src/test/ui/associated-const/associated-const-no-item.stderr
index e6765bc3dd6..02d4866e3f5 100644
--- a/src/test/ui/associated-const/associated-const-no-item.stderr
+++ b/src/test/ui/associated-const/associated-const-no-item.stderr
@@ -2,7 +2,7 @@ error[E0599]: no associated item named `ID` found for type `i32` in the current
   --> $DIR/associated-const-no-item.rs:5:23
    |
 LL | trait Foo {
-   | --------- this trait defines an item `ID`
+   | --------- `Foo` defines an item `ID`
 ...
 LL | const X: i32 = <i32>::ID;
    |                       ^^ associated item not found in `i32`
diff --git a/src/test/ui/auto-ref-slice-plus-ref.stderr b/src/test/ui/auto-ref-slice-plus-ref.stderr
index 3e14dc80122..26b2c44fdd9 100644
--- a/src/test/ui/auto-ref-slice-plus-ref.stderr
+++ b/src/test/ui/auto-ref-slice-plus-ref.stderr
@@ -5,7 +5,7 @@ LL |     a.test_mut();
    |       ^^^^^^^^ help: there is a method with a similar name: `get_mut`
 ...
 LL | trait MyIter {
-   | ------------ this trait defines an item `test_mut`
+   | ------------ `MyIter` defines an item `test_mut`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
 
@@ -16,7 +16,7 @@ LL |     a.test();
    |       ^^^^ method not found in `std::vec::Vec<{integer}>`
 ...
 LL | trait MyIter {
-   | ------------ this trait defines an item `test`
+   | ------------ `MyIter` defines an item `test`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
 
@@ -27,7 +27,7 @@ LL |     ([1]).test();
    |           ^^^^ method not found in `[{integer}; 1]`
 ...
 LL | trait MyIter {
-   | ------------ this trait defines an item `test`
+   | ------------ `MyIter` defines an item `test`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
 
@@ -38,7 +38,7 @@ LL |     (&[1]).test();
    |            ^^^^ method not found in `&[{integer}; 1]`
 ...
 LL | trait MyIter {
-   | ------------ this trait defines an item `test`
+   | ------------ `MyIter` defines an item `test`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
 
diff --git a/src/test/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.stderr b/src/test/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.stderr
index 32a677a7d7f..cdcf84a7063 100644
--- a/src/test/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.stderr
+++ b/src/test/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.stderr
@@ -2,7 +2,7 @@ error[E0599]: no method named `foo` found for struct `Bar` in the current scope
   --> $DIR/issue-21659-show-relevant-trait-impls-3.rs:20:8
    |
 LL | trait Foo<A> {
-   | ------------ this trait defines an item `foo`
+   | ------------ `Foo` defines an item `foo`
 ...
 LL | struct Bar;
    | ----------- method `foo` not found for this
diff --git a/src/test/ui/impl-trait/no-method-suggested-traits.stderr b/src/test/ui/impl-trait/no-method-suggested-traits.stderr
index 8025c12047f..b3da4a6ead6 100644
--- a/src/test/ui/impl-trait/no-method-suggested-traits.stderr
+++ b/src/test/ui/impl-trait/no-method-suggested-traits.stderr
@@ -123,7 +123,7 @@ error[E0599]: no method named `method2` found for type `u64` in the current scop
   --> $DIR/no-method-suggested-traits.rs:45:10
    |
 LL |     pub trait Bar {
-   |     ------------- this trait defines an item `method2`
+   |     ------------- `foo::Bar` defines an item `method2`
 ...
 LL |     1u64.method2();
    |          ^^^^^^^ method not found in `u64`
@@ -134,7 +134,7 @@ error[E0599]: no method named `method2` found for struct `std::rc::Rc<&mut std::
   --> $DIR/no-method-suggested-traits.rs:47:44
    |
 LL |     pub trait Bar {
-   |     ------------- this trait defines an item `method2`
+   |     ------------- `foo::Bar` defines an item `method2`
 ...
 LL |     std::rc::Rc::new(&mut Box::new(&1u64)).method2();
    |                                            ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&u64>>`
@@ -145,7 +145,7 @@ error[E0599]: no method named `method2` found for struct `no_method_suggested_tr
   --> $DIR/no-method-suggested-traits.rs:50:37
    |
 LL |     pub trait Bar {
-   |     ------------- this trait defines an item `method2`
+   |     ------------- `foo::Bar` defines an item `method2`
 ...
 LL |     no_method_suggested_traits::Foo.method2();
    |                                     ^^^^^^^ method not found in `no_method_suggested_traits::Foo`
@@ -156,7 +156,7 @@ error[E0599]: no method named `method2` found for struct `std::rc::Rc<&mut std::
   --> $DIR/no-method-suggested-traits.rs:52:71
    |
 LL |     pub trait Bar {
-   |     ------------- this trait defines an item `method2`
+   |     ------------- `foo::Bar` defines an item `method2`
 ...
 LL |     std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
    |                                                                       ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>`
@@ -167,7 +167,7 @@ error[E0599]: no method named `method2` found for enum `no_method_suggested_trai
   --> $DIR/no-method-suggested-traits.rs:54:40
    |
 LL |     pub trait Bar {
-   |     ------------- this trait defines an item `method2`
+   |     ------------- `foo::Bar` defines an item `method2`
 ...
 LL |     no_method_suggested_traits::Bar::X.method2();
    |                                        ^^^^^^^ method not found in `no_method_suggested_traits::Bar`
@@ -178,7 +178,7 @@ error[E0599]: no method named `method2` found for struct `std::rc::Rc<&mut std::
   --> $DIR/no-method-suggested-traits.rs:56:74
    |
 LL |     pub trait Bar {
-   |     ------------- this trait defines an item `method2`
+   |     ------------- `foo::Bar` defines an item `method2`
 ...
 LL |     std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
    |                                                                          ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>`
diff --git a/src/test/ui/issues/issue-5153.stderr b/src/test/ui/issues/issue-5153.stderr
index 730da21ddf5..bf48c662383 100644
--- a/src/test/ui/issues/issue-5153.stderr
+++ b/src/test/ui/issues/issue-5153.stderr
@@ -2,7 +2,7 @@ error[E0599]: no method named `foo` found for reference `&dyn Foo` in the curren
   --> $DIR/issue-5153.rs:10:27
    |
 LL | trait Foo {
-   | --------- this trait defines an item `foo`
+   | --------- `Foo` defines an item `foo`
 ...
 LL |     (&5isize as &dyn Foo).foo();
    |                           ^^^ method not found in `&dyn Foo`
diff --git a/src/test/ui/issues/issue-57362-1.stderr b/src/test/ui/issues/issue-57362-1.stderr
index 3a5189b132d..4eaa5adbea4 100644
--- a/src/test/ui/issues/issue-57362-1.stderr
+++ b/src/test/ui/issues/issue-57362-1.stderr
@@ -2,7 +2,7 @@ error[E0599]: no method named `f` found for fn pointer `fn(&u8)` in the current
   --> $DIR/issue-57362-1.rs:20:7
    |
 LL | trait Trait {
-   | ----------- this trait defines an item `f`
+   | ----------- `Trait` defines an item `f`
 ...
 LL |     a.f();
    |       ^ method not found in `fn(&u8)`
diff --git a/src/test/ui/issues/issue-57362-2.stderr b/src/test/ui/issues/issue-57362-2.stderr
index e2d80b3b4df..ce689334cc1 100644
--- a/src/test/ui/issues/issue-57362-2.stderr
+++ b/src/test/ui/issues/issue-57362-2.stderr
@@ -2,7 +2,7 @@ error[E0599]: no function or associated item named `make_g` found for fn pointer
   --> $DIR/issue-57362-2.rs:22:25
    |
 LL | trait X {
-   | ------- this trait defines an item `make_g`
+   | ------- `X` defines an item `make_g`
 ...
 LL |     let x = <fn (&())>::make_g();
    |                         ^^^^^^ function or associated item not found in `for<'r> fn(&'r ())`
diff --git a/src/test/ui/never_type/issue-2149.stderr b/src/test/ui/never_type/issue-2149.stderr
index 4fadf49bd6d..b92ab5dde27 100644
--- a/src/test/ui/never_type/issue-2149.stderr
+++ b/src/test/ui/never_type/issue-2149.stderr
@@ -10,7 +10,7 @@ error[E0599]: no method named `bind` found for array `[&str; 1]` in the current
   --> $DIR/issue-2149.rs:13:12
    |
 LL | trait VecMonad<A> {
-   | ----------------- this trait defines an item `bind`
+   | ----------------- `VecMonad` defines an item `bind`
 ...
 LL |     ["hi"].bind(|x| [x] );
    |            ^^^^ method not found in `[&str; 1]`
diff --git a/src/test/ui/object-pointer-types.stderr b/src/test/ui/object-pointer-types.stderr
index 5ca326bca31..7364ead97f6 100644
--- a/src/test/ui/object-pointer-types.stderr
+++ b/src/test/ui/object-pointer-types.stderr
@@ -2,7 +2,7 @@ error[E0599]: no method named `owned` found for reference `&dyn Foo` in the curr
   --> $DIR/object-pointer-types.rs:11:7
    |
 LL | trait Foo {
-   | --------- this trait defines an item `owned`
+   | --------- `Foo` defines an item `owned`
 ...
 LL |     x.owned();
    |       ^^^^^ method not found in `&dyn Foo`
@@ -13,7 +13,7 @@ error[E0599]: no method named `owned` found for mutable reference `&mut dyn Foo`
   --> $DIR/object-pointer-types.rs:17:7
    |
 LL | trait Foo {
-   | --------- this trait defines an item `owned`
+   | --------- `Foo` defines an item `owned`
 ...
 LL |     x.owned();
    |       ^^^^^ method not found in `&mut dyn Foo`
diff --git a/src/test/ui/self/point-at-arbitrary-self-type-trait-method.stderr b/src/test/ui/self/point-at-arbitrary-self-type-trait-method.stderr
index 8ed2b8b5c95..fefa6dab15a 100644
--- a/src/test/ui/self/point-at-arbitrary-self-type-trait-method.stderr
+++ b/src/test/ui/self/point-at-arbitrary-self-type-trait-method.stderr
@@ -4,7 +4,7 @@ error[E0599]: no method named `foo` found for struct `A` in the current scope
 LL | trait B { fn foo(self: Box<Self>); }
    | -------      --- the method is available for `std::boxed::Box<A>` here
    | |
-   | this trait defines an item `foo`
+   | `B` defines an item `foo`
 LL | struct A;
    | --------- method `foo` not found for this
 ...
diff --git a/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr b/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr
index 14f37150c80..93a5f3051fe 100644
--- a/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr
+++ b/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr
@@ -2,7 +2,7 @@ error[E0599]: no method named `foo_one` found for struct `MyStruct` in the curre
   --> $DIR/specialization-trait-not-implemented.rs:22:29
    |
 LL | trait Foo {
-   | --------- this trait defines an item `foo_one`
+   | --------- `Foo` defines an item `foo_one`
 ...
 LL | struct MyStruct;
    | ----------------
diff --git a/src/test/ui/traits/trait-item-privacy.stderr b/src/test/ui/traits/trait-item-privacy.stderr
index 5b7f0a8ce5f..23f08f37826 100644
--- a/src/test/ui/traits/trait-item-privacy.stderr
+++ b/src/test/ui/traits/trait-item-privacy.stderr
@@ -5,7 +5,7 @@ LL | struct S;
    | --------- method `a` not found for this
 ...
 LL |     trait A {
-   |     ------- this trait defines an item `a`
+   |     ------- `method::A` defines an item `a`
 ...
 LL |     S.a();
    |       ^ method not found in `S`
@@ -47,7 +47,7 @@ LL | struct S;
    | --------- function or associated item `a` not found for this
 ...
 LL |     trait A {
-   |     ------- this trait defines an item `a`
+   |     ------- `method::A` defines an item `a`
 ...
 LL |     S::a(&S);
    |        ^ function or associated item not found in `S`
@@ -82,7 +82,7 @@ LL | struct S;
    | --------- associated item `A` not found for this
 ...
 LL |     trait A {
-   |     ------- this trait defines an item `A`
+   |     ------- `assoc_const::A` defines an item `A`
 ...
 LL |     S::A;
    |        ^ associated item not found in `S`
diff --git a/src/test/ui/trivial-bounds/trivial-bounds-leak.stderr b/src/test/ui/trivial-bounds/trivial-bounds-leak.stderr
index 7ed24591e66..0bd18763ac9 100644
--- a/src/test/ui/trivial-bounds/trivial-bounds-leak.stderr
+++ b/src/test/ui/trivial-bounds/trivial-bounds-leak.stderr
@@ -12,7 +12,7 @@ error[E0599]: no method named `test` found for type `i32` in the current scope
   --> $DIR/trivial-bounds-leak.rs:24:10
    |
 LL | pub trait Foo {
-   | ------------- this trait defines an item `test`
+   | ------------- `Foo` defines an item `test`
 ...
 LL |     3i32.test();
    |          ^^^^ method not found in `i32`