Skip to content

Commit f782c2f

Browse files
committed
Updated some tests that may seem unrelated, due to the introduction of the "Trait" struct in std/mem/type_info.rs, which caused the tests to change their error messages, causing them to fail
1 parent cc48512 commit f782c2f

20 files changed

Lines changed: 40 additions & 33 deletions

tests/ui/errors/remap-path-prefix-diagnostics.not-diag-in-deps.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: the trait `std::fmt::Display` is not implemented for `A`
99
|
1010
LL | struct A;
1111
| ^^^^^^^^
12-
note: required by a bound in `Trait`
12+
note: required by a bound in `r#trait::Trait`
1313
--> $DIR/auxiliary/trait.rs:LL:COL
1414
|
1515
LL | pub trait Trait: std::fmt::Display {}

tests/ui/errors/remap-path-prefix-diagnostics.only-debuginfo-in-deps.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: the trait `std::fmt::Display` is not implemented for `A`
99
|
1010
LL | struct A;
1111
| ^^^^^^^^
12-
note: required by a bound in `Trait`
12+
note: required by a bound in `r#trait::Trait`
1313
--> $DIR/auxiliary/trait-debuginfo.rs:LL:COL
1414
|
1515
LL | pub trait Trait: std::fmt::Display {}

tests/ui/errors/remap-path-prefix-diagnostics.only-diag-in-deps.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: the trait `std::fmt::Display` is not implemented for `A`
99
|
1010
LL | struct A;
1111
| ^^^^^^^^
12-
note: required by a bound in `Trait`
12+
note: required by a bound in `r#trait::Trait`
1313
--> remapped/errors/auxiliary/trait-diag.rs:LL:COL
1414
|
1515
LL | pub trait Trait: std::fmt::Display {}

tests/ui/errors/remap-path-prefix-diagnostics.only-macro-in-deps.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: the trait `std::fmt::Display` is not implemented for `A`
99
|
1010
LL | struct A;
1111
| ^^^^^^^^
12-
note: required by a bound in `Trait`
12+
note: required by a bound in `r#trait::Trait`
1313
--> $DIR/auxiliary/trait-macro.rs:LL:COL
1414
|
1515
LL | pub trait Trait: std::fmt::Display {}

tests/ui/errors/remap-path-prefix-diagnostics.with-debuginfo-in-deps.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: the trait `std::fmt::Display` is not implemented for `A`
99
|
1010
LL | struct A;
1111
| ^^^^^^^^
12-
note: required by a bound in `Trait`
12+
note: required by a bound in `r#trait::Trait`
1313
--> $DIR/auxiliary/trait-debuginfo.rs:LL:COL
1414
|
1515
LL | pub trait Trait: std::fmt::Display {}

tests/ui/errors/remap-path-prefix-diagnostics.with-diag-in-deps.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: the trait `std::fmt::Display` is not implemented for `A`
99
|
1010
LL | struct A;
1111
| ^^^^^^^^
12-
note: required by a bound in `Trait`
12+
note: required by a bound in `r#trait::Trait`
1313
--> remapped/errors/auxiliary/trait-diag.rs:LL:COL
1414
|
1515
LL | pub trait Trait: std::fmt::Display {}

tests/ui/errors/remap-path-prefix-diagnostics.with-macro-in-deps.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: the trait `std::fmt::Display` is not implemented for `A`
99
|
1010
LL | struct A;
1111
| ^^^^^^^^
12-
note: required by a bound in `Trait`
12+
note: required by a bound in `r#trait::Trait`
1313
--> $DIR/auxiliary/trait-macro.rs:LL:COL
1414
|
1515
LL | pub trait Trait: std::fmt::Display {}

tests/ui/privacy/private-inferred-type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ fn main() {
115115

116116
m::m!();
117117

118-
m::leak_anon1(); //~ ERROR trait `Trait` is private
118+
m::leak_anon1(); //~ ERROR trait `m::Trait` is private
119119
m::leak_anon2(); //~ ERROR type `Priv` is private
120120
m::leak_anon3(); //~ ERROR type `Priv` is private
121121

122-
m::leak_dyn1(); //~ ERROR trait `Trait` is private
122+
m::leak_dyn1(); //~ ERROR trait `m::Trait` is private
123123
m::leak_dyn2(); //~ ERROR type `Priv` is private
124124
m::leak_dyn3(); //~ ERROR type `Priv` is private
125125

tests/ui/privacy/private-inferred-type.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ LL | m::m!();
172172
|
173173
= note: this error originates in the macro `m::m` (in Nightly builds, run with -Z macro-backtrace for more info)
174174

175-
error: trait `Trait` is private
175+
error: trait `m::Trait` is private
176176
--> $DIR/private-inferred-type.rs:118:5
177177
|
178178
LL | m::leak_anon1();
@@ -190,7 +190,7 @@ error: type `Priv` is private
190190
LL | m::leak_anon3();
191191
| ^^^^^^^^^^^^^^^ private type
192192

193-
error: trait `Trait` is private
193+
error: trait `m::Trait` is private
194194
--> $DIR/private-inferred-type.rs:122:5
195195
|
196196
LL | m::leak_dyn1();

tests/ui/trait-bounds/suggest-maybe-sized-bound.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LL | type P<X> = [u8];
2222
| ^^^^ doesn't have a size known at compile-time
2323
|
2424
= help: the trait `Sized` is not implemented for `[u8]`
25-
note: required by a bound in `Trait::P`
25+
note: required by a bound in `main::Trait::P`
2626
--> $DIR/suggest-maybe-sized-bound.rs:13:9
2727
|
2828
LL | type P<X>;

0 commit comments

Comments
 (0)