diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-11-21 15:44:16 +0000 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-11-24 19:15:52 +0100 |
| commit | 41e8d152dc5abb5a706999ada8b059d3420af8f3 (patch) | |
| tree | 2dae41c4e26e0195b5bd3472beac0445c8014915 /tests/ui/methods | |
| parent | 4fd68eb47bad1c121417ac4450b2f0456150db86 (diff) | |
| download | rust-41e8d152dc5abb5a706999ada8b059d3420af8f3.tar.gz rust-41e8d152dc5abb5a706999ada8b059d3420af8f3.zip | |
Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
Diffstat (limited to 'tests/ui/methods')
15 files changed, 15 insertions, 15 deletions
diff --git a/tests/ui/methods/issue-3707.stderr b/tests/ui/methods/issue-3707.stderr index 07c8101cbc6..b3d4dfe5aaa 100644 --- a/tests/ui/methods/issue-3707.stderr +++ b/tests/ui/methods/issue-3707.stderr @@ -14,6 +14,6 @@ note: the candidate is defined in an impl for the type `Obj` LL | pub fn boom() -> bool { | ^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0599`. diff --git a/tests/ui/methods/issues/issue-84495.stderr b/tests/ui/methods/issues/issue-84495.stderr index b0217a7c844..1603c0026be 100644 --- a/tests/ui/methods/issues/issue-84495.stderr +++ b/tests/ui/methods/issues/issue-84495.stderr @@ -8,6 +8,6 @@ LL | println!("{:?}", x.count()); `i32: Iterator` which is required by `&mut i32: Iterator` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0599`. diff --git a/tests/ui/methods/issues/issue-94581.stderr b/tests/ui/methods/issues/issue-94581.stderr index d6be29cf582..ae7446d4833 100644 --- a/tests/ui/methods/issues/issue-94581.stderr +++ b/tests/ui/methods/issues/issue-94581.stderr @@ -10,6 +10,6 @@ LL | let sqsum = get_slice().map(|i| i * i).sum(); `[i32]: Iterator` which is required by `&mut [i32]: Iterator` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0599`. diff --git a/tests/ui/methods/method-ambig-two-traits-cross-crate.stderr b/tests/ui/methods/method-ambig-two-traits-cross-crate.stderr index 5132d92777b..0c775612bfb 100644 --- a/tests/ui/methods/method-ambig-two-traits-cross-crate.stderr +++ b/tests/ui/methods/method-ambig-two-traits-cross-crate.stderr @@ -19,6 +19,6 @@ help: disambiguate the method for candidate #2 LL | fn main() { Me2::me(&1_usize); } | ~~~~~~~~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0034`. diff --git a/tests/ui/methods/method-ambig-two-traits-from-bounds.stderr b/tests/ui/methods/method-ambig-two-traits-from-bounds.stderr index 9a84768a9f4..690f979fa37 100644 --- a/tests/ui/methods/method-ambig-two-traits-from-bounds.stderr +++ b/tests/ui/methods/method-ambig-two-traits-from-bounds.stderr @@ -23,6 +23,6 @@ help: disambiguate the method for candidate #2 LL | B::foo(&t); | ~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0034`. diff --git a/tests/ui/methods/method-ambig-two-traits-from-impls.stderr b/tests/ui/methods/method-ambig-two-traits-from-impls.stderr index 31359143391..8be6d6d64f7 100644 --- a/tests/ui/methods/method-ambig-two-traits-from-impls.stderr +++ b/tests/ui/methods/method-ambig-two-traits-from-impls.stderr @@ -23,6 +23,6 @@ help: disambiguate the method for candidate #2 LL | B::foo(AB {}); | ~~~~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0034`. diff --git a/tests/ui/methods/method-ambig-two-traits-from-impls2.stderr b/tests/ui/methods/method-ambig-two-traits-from-impls2.stderr index 5bb887b4503..333520847f8 100644 --- a/tests/ui/methods/method-ambig-two-traits-from-impls2.stderr +++ b/tests/ui/methods/method-ambig-two-traits-from-impls2.stderr @@ -21,6 +21,6 @@ LL | <AB as A>::foo(); LL | <AB as B>::foo(); | ~~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0034`. diff --git a/tests/ui/methods/method-ambig-two-traits-with-default-method.stderr b/tests/ui/methods/method-ambig-two-traits-with-default-method.stderr index df01966b3a2..9da307436e9 100644 --- a/tests/ui/methods/method-ambig-two-traits-with-default-method.stderr +++ b/tests/ui/methods/method-ambig-two-traits-with-default-method.stderr @@ -23,6 +23,6 @@ help: disambiguate the method for candidate #2 LL | Bar::method(&1_usize); | ~~~~~~~~~~~~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0034`. diff --git a/tests/ui/methods/method-ambiguity-no-rcvr.stderr b/tests/ui/methods/method-ambiguity-no-rcvr.stderr index 95c9d7ebac0..73f6043f256 100644 --- a/tests/ui/methods/method-ambiguity-no-rcvr.stderr +++ b/tests/ui/methods/method-ambiguity-no-rcvr.stderr @@ -27,6 +27,6 @@ help: disambiguate the associated function for candidate #2 LL | <Qux as FooBar>::foo(Qux); | ~~~~~~~~~~~~~~~~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0599`. diff --git a/tests/ui/methods/method-call-lifetime-args-unresolved.stderr b/tests/ui/methods/method-call-lifetime-args-unresolved.stderr index 25ad360b329..c72e7e0cdc3 100644 --- a/tests/ui/methods/method-call-lifetime-args-unresolved.stderr +++ b/tests/ui/methods/method-call-lifetime-args-unresolved.stderr @@ -19,6 +19,6 @@ LL | 0.clone::<'a>(); = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868> = note: `#[warn(late_bound_lifetime_arguments)]` on by default -error: aborting due to previous error; 1 warning emitted +error: aborting due to 1 previous error; 1 warning emitted For more information about this error, try `rustc --explain E0261`. diff --git a/tests/ui/methods/method-call-type-binding.stderr b/tests/ui/methods/method-call-type-binding.stderr index 4b93082ace5..54d855d340e 100644 --- a/tests/ui/methods/method-call-type-binding.stderr +++ b/tests/ui/methods/method-call-type-binding.stderr @@ -4,6 +4,6 @@ error[E0229]: associated type bindings are not allowed here LL | 0.clone::<T = u8>(); | ^^^^^^ associated type not allowed here -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0229`. diff --git a/tests/ui/methods/method-macro-backtrace.stderr b/tests/ui/methods/method-macro-backtrace.stderr index dd616c4a5e7..f0b11137989 100644 --- a/tests/ui/methods/method-macro-backtrace.stderr +++ b/tests/ui/methods/method-macro-backtrace.stderr @@ -6,6 +6,6 @@ LL | fn bar(&self) { } LL | fn bar(&self) { } | ^^^^^^^^^^^^^ duplicate definitions for `bar` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0592`. diff --git a/tests/ui/methods/method-not-found-but-doc-alias.stderr b/tests/ui/methods/method-not-found-but-doc-alias.stderr index 5102a452f0c..9746c404013 100644 --- a/tests/ui/methods/method-not-found-but-doc-alias.stderr +++ b/tests/ui/methods/method-not-found-but-doc-alias.stderr @@ -7,6 +7,6 @@ LL | struct Foo; LL | Foo.quux(); | ^^^^ help: there is a method with a similar name: `bar` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0599`. diff --git a/tests/ui/methods/method-resolvable-path-in-pattern.stderr b/tests/ui/methods/method-resolvable-path-in-pattern.stderr index 7c454a9a777..070d912d129 100644 --- a/tests/ui/methods/method-resolvable-path-in-pattern.stderr +++ b/tests/ui/methods/method-resolvable-path-in-pattern.stderr @@ -4,6 +4,6 @@ error[E0532]: expected unit struct, unit variant or constant, found associated f LL | <Foo as MyTrait>::trait_bar => {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a unit struct, unit variant or constant -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0532`. diff --git a/tests/ui/methods/suggest-method-on-call-with-macro-rcvr.stderr b/tests/ui/methods/suggest-method-on-call-with-macro-rcvr.stderr index 9694f80ab6d..86c2f6431d1 100644 --- a/tests/ui/methods/suggest-method-on-call-with-macro-rcvr.stderr +++ b/tests/ui/methods/suggest-method-on-call-with-macro-rcvr.stderr @@ -10,6 +10,6 @@ LL - let hello = len(vec![]); LL + let hello = vec![].len(); | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0425`. |
