diff options
Diffstat (limited to 'tests/ui/error-codes')
203 files changed, 243 insertions, 224 deletions
diff --git a/tests/ui/error-codes/E0001.stderr b/tests/ui/error-codes/E0001.stderr index 577c49032..49bb73e7b 100644 --- a/tests/ui/error-codes/E0001.stderr +++ b/tests/ui/error-codes/E0001.stderr @@ -10,5 +10,5 @@ note: the lint level is defined here LL | #![deny(unreachable_patterns)] | ^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/error-codes/E0004-2.stderr b/tests/ui/error-codes/E0004-2.stderr index e829bac19..cc4e18f76 100644 --- a/tests/ui/error-codes/E0004-2.stderr +++ b/tests/ui/error-codes/E0004-2.stderr @@ -20,6 +20,6 @@ LL + None | Some(_) => todo!(), LL ~ } | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0004`. diff --git a/tests/ui/error-codes/E0004.stderr b/tests/ui/error-codes/E0004.stderr index ced478d65..17e2caa86 100644 --- a/tests/ui/error-codes/E0004.stderr +++ b/tests/ui/error-codes/E0004.stderr @@ -18,6 +18,6 @@ LL ~ Terminator::TalkToMyHand => {}, LL + Terminator::HastaLaVistaBaby => todo!() | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0004`. diff --git a/tests/ui/error-codes/E0005.stderr b/tests/ui/error-codes/E0005.stderr index 4692b6641..4be37e2e4 100644 --- a/tests/ui/error-codes/E0005.stderr +++ b/tests/ui/error-codes/E0005.stderr @@ -12,6 +12,6 @@ help: you might want to use `let else` to handle the variant that isn't matched LL | let Some(y) = x else { todo!() }; | ++++++++++++++++ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0005`. diff --git a/tests/ui/error-codes/E0013.stderr b/tests/ui/error-codes/E0013.stderr index dc22053a6..b07c8bdb7 100644 --- a/tests/ui/error-codes/E0013.stderr +++ b/tests/ui/error-codes/E0013.stderr @@ -6,6 +6,6 @@ LL | const Y: i32 = X; | = help: consider extracting the value of the `static` to a `const`, and referring to that -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0013`. diff --git a/tests/ui/error-codes/E0015.stderr b/tests/ui/error-codes/E0015.stderr index ec1ce47b2..9d892a3e0 100644 --- a/tests/ui/error-codes/E0015.stderr +++ b/tests/ui/error-codes/E0015.stderr @@ -6,6 +6,6 @@ LL | const FOO: Option<u8> = create_some(); | = note: calls in constants are limited to constant functions, tuple structs and tuple variants -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0015`. diff --git a/tests/ui/error-codes/E0025.stderr b/tests/ui/error-codes/E0025.stderr index dfec6d027..03347538a 100644 --- a/tests/ui/error-codes/E0025.stderr +++ b/tests/ui/error-codes/E0025.stderr @@ -6,6 +6,6 @@ LL | let Foo { a: x, a: y, b: 0 } = x; | | | first use of `a` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0025`. diff --git a/tests/ui/error-codes/E0026-teach.stderr b/tests/ui/error-codes/E0026-teach.stderr index 3d460490e..a496a7bde 100644 --- a/tests/ui/error-codes/E0026-teach.stderr +++ b/tests/ui/error-codes/E0026-teach.stderr @@ -8,6 +8,6 @@ LL | Thing { x, y, z } => {} If you are using shorthand field patterns but want to refer to the struct field by a different name, you should rename it explicitly. -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0026`. diff --git a/tests/ui/error-codes/E0026.stderr b/tests/ui/error-codes/E0026.stderr index 031481812..4d0dfbbf1 100644 --- a/tests/ui/error-codes/E0026.stderr +++ b/tests/ui/error-codes/E0026.stderr @@ -4,6 +4,6 @@ error[E0026]: struct `Thing` does not have a field named `z` LL | Thing { x, y, z } => {} | ^ struct `Thing` does not have this field -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0026`. diff --git a/tests/ui/error-codes/E0029-teach.stderr b/tests/ui/error-codes/E0029-teach.stderr index b89b2e7d1..6b7d19f7b 100644 --- a/tests/ui/error-codes/E0029-teach.stderr +++ b/tests/ui/error-codes/E0029-teach.stderr @@ -9,6 +9,6 @@ LL | "hello" ..= "world" => {} | = note: In a match expression, only numbers and characters can be matched against a range. This is because the compiler checks that the range is non-empty at compile-time, and is unable to evaluate arbitrary comparison functions. If you want to capture values of an orderable type between two end-points, you can use a guard. -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0029`. diff --git a/tests/ui/error-codes/E0029.stderr b/tests/ui/error-codes/E0029.stderr index f7250b39d..d596553dc 100644 --- a/tests/ui/error-codes/E0029.stderr +++ b/tests/ui/error-codes/E0029.stderr @@ -7,6 +7,6 @@ LL | "hello" ..= "world" => {} | | this is of type `&'static str` but it should be `char` or numeric | this is of type `&'static str` but it should be `char` or numeric -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0029`. diff --git a/tests/ui/error-codes/E0030-teach.stderr b/tests/ui/error-codes/E0030-teach.stderr index 9435cb204..36200d2b8 100644 --- a/tests/ui/error-codes/E0030-teach.stderr +++ b/tests/ui/error-codes/E0030-teach.stderr @@ -6,6 +6,6 @@ LL | 1000 ..= 5 => {} | = note: When matching against a range, the compiler verifies that the range is non-empty. Range patterns include both end-points, so this is equivalent to requiring the start of the range to be less than or equal to the end of the range. -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0030`. diff --git a/tests/ui/error-codes/E0030.stderr b/tests/ui/error-codes/E0030.stderr index 1aeca2916..4e9378dfe 100644 --- a/tests/ui/error-codes/E0030.stderr +++ b/tests/ui/error-codes/E0030.stderr @@ -4,6 +4,6 @@ error[E0030]: lower range bound must be less than or equal to upper LL | 1000 ..= 5 => {} | ^^^^^^^^^^ lower bound larger than upper bound -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0030`. diff --git a/tests/ui/error-codes/E0033-teach.stderr b/tests/ui/error-codes/E0033-teach.stderr index 31bc6719a..303c29344 100644 --- a/tests/ui/error-codes/E0033-teach.stderr +++ b/tests/ui/error-codes/E0033-teach.stderr @@ -8,6 +8,6 @@ LL | let &invalid = trait_obj; You can read more about trait objects in the Trait Objects section of the Reference: https://doc.rust-lang.org/reference/types.html#trait-objects -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0033`. diff --git a/tests/ui/error-codes/E0033.stderr b/tests/ui/error-codes/E0033.stderr index ab2e780ee..b091ad217 100644 --- a/tests/ui/error-codes/E0033.stderr +++ b/tests/ui/error-codes/E0033.stderr @@ -4,6 +4,6 @@ error[E0033]: type `&dyn SomeTrait` cannot be dereferenced LL | let &invalid = trait_obj; | ^^^^^^^^ type `&dyn SomeTrait` cannot be dereferenced -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0033`. diff --git a/tests/ui/error-codes/E0034.stderr b/tests/ui/error-codes/E0034.stderr index da6f22188..48b8efcf8 100644 --- a/tests/ui/error-codes/E0034.stderr +++ b/tests/ui/error-codes/E0034.stderr @@ -21,6 +21,6 @@ LL | <Test as Trait1>::foo() LL | <Test as Trait2>::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/error-codes/E0038.stderr b/tests/ui/error-codes/E0038.stderr index 3773d6f52..99130396e 100644 --- a/tests/ui/error-codes/E0038.stderr +++ b/tests/ui/error-codes/E0038.stderr @@ -13,6 +13,6 @@ LL | fn foo(&self) -> Self; | ^^^^ ...because method `foo` references the `Self` type in its return type = help: consider moving `foo` to another trait -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0038`. diff --git a/tests/ui/error-codes/E0040.stderr b/tests/ui/error-codes/E0040.stderr index 839be79d2..00cccb07c 100644 --- a/tests/ui/error-codes/E0040.stderr +++ b/tests/ui/error-codes/E0040.stderr @@ -9,6 +9,6 @@ help: consider using `drop` function LL | drop(x); | +++++ ~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0040`. diff --git a/tests/ui/error-codes/E0044.stderr b/tests/ui/error-codes/E0044.stderr index e889c167b..e38959fda 100644 --- a/tests/ui/error-codes/E0044.stderr +++ b/tests/ui/error-codes/E0044.stderr @@ -6,6 +6,6 @@ LL | fn sqrt<T>(f: T) -> T; | = help: replace the type parameters with concrete types like `u32` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0044`. diff --git a/tests/ui/error-codes/E0045.stderr b/tests/ui/error-codes/E0045.stderr index fcc613b11..25b2f2654 100644 --- a/tests/ui/error-codes/E0045.stderr +++ b/tests/ui/error-codes/E0045.stderr @@ -4,6 +4,6 @@ error[E0045]: C-variadic function must have a compatible calling convention, lik LL | extern "Rust" { fn foo(x: u8, ...); } | ^^^^^^^^^^^^^^^^^^^ C-variadic function must have a compatible calling convention -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0045`. diff --git a/tests/ui/error-codes/E0054.stderr b/tests/ui/error-codes/E0054.stderr index 0a4adabba..be35242ad 100644 --- a/tests/ui/error-codes/E0054.stderr +++ b/tests/ui/error-codes/E0054.stderr @@ -9,6 +9,6 @@ help: compare with zero instead LL | let x_is_nonzero = x != 0; | ~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0054`. diff --git a/tests/ui/error-codes/E0055.stderr b/tests/ui/error-codes/E0055.stderr index a52c90962..5cdc8b994 100644 --- a/tests/ui/error-codes/E0055.stderr +++ b/tests/ui/error-codes/E0055.stderr @@ -6,6 +6,6 @@ LL | ref_foo.foo(); | = help: consider increasing the recursion limit by adding a `#![recursion_limit = "8"]` attribute to your crate (`E0055`) -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0055`. diff --git a/tests/ui/error-codes/E0059.stderr b/tests/ui/error-codes/E0059.stderr index 4f6abb22a..a7591d2b0 100644 --- a/tests/ui/error-codes/E0059.stderr +++ b/tests/ui/error-codes/E0059.stderr @@ -7,6 +7,6 @@ LL | fn foo<F: Fn<i32>>(f: F) -> F::Output { f(3) } note: required by a bound in `Fn` --> $SRC_DIR/core/src/ops/function.rs:LL:COL -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0059`. diff --git a/tests/ui/error-codes/E0060.stderr b/tests/ui/error-codes/E0060.stderr index 934a18d89..88c1f1bbb 100644 --- a/tests/ui/error-codes/E0060.stderr +++ b/tests/ui/error-codes/E0060.stderr @@ -14,6 +14,6 @@ help: provide the argument LL | unsafe { printf(/* *const u8 */); } | ~~~~~~~~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0060`. diff --git a/tests/ui/error-codes/E0062.stderr b/tests/ui/error-codes/E0062.stderr index a3e140995..87c1c595e 100644 --- a/tests/ui/error-codes/E0062.stderr +++ b/tests/ui/error-codes/E0062.stderr @@ -6,6 +6,6 @@ LL | x: 0, LL | x: 0, | ^ used more than once -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0062`. diff --git a/tests/ui/error-codes/E0069.stderr b/tests/ui/error-codes/E0069.stderr index ff9bbe01d..20ff8c258 100644 --- a/tests/ui/error-codes/E0069.stderr +++ b/tests/ui/error-codes/E0069.stderr @@ -6,6 +6,6 @@ LL | fn foo() -> u8 { LL | return; | ^^^^^^ return type is not `()` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0069`. diff --git a/tests/ui/error-codes/E0071.stderr b/tests/ui/error-codes/E0071.stderr index 7bd4ddaf2..bbd49f43b 100644 --- a/tests/ui/error-codes/E0071.stderr +++ b/tests/ui/error-codes/E0071.stderr @@ -4,6 +4,6 @@ error[E0071]: expected struct, variant or union type, found `Foo` LL | let u = FooAlias { value: 0 }; | ^^^^^^^^ not a struct -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0071`. diff --git a/tests/ui/error-codes/E0075.stderr b/tests/ui/error-codes/E0075.stderr index 3f927726a..43e9971e3 100644 --- a/tests/ui/error-codes/E0075.stderr +++ b/tests/ui/error-codes/E0075.stderr @@ -4,6 +4,6 @@ error[E0075]: SIMD vector cannot be empty LL | struct Bad; | ^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0075`. diff --git a/tests/ui/error-codes/E0076.stderr b/tests/ui/error-codes/E0076.stderr index 7d4ff8798..ea3bbf094 100644 --- a/tests/ui/error-codes/E0076.stderr +++ b/tests/ui/error-codes/E0076.stderr @@ -4,6 +4,6 @@ error[E0076]: SIMD vector should be homogeneous LL | struct Bad(u16, u32, u32); | ^^^^^^^^^^ SIMD elements must have the same type -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0076`. diff --git a/tests/ui/error-codes/E0077.stderr b/tests/ui/error-codes/E0077.stderr index 9a84b2ec4..aae4b3f2c 100644 --- a/tests/ui/error-codes/E0077.stderr +++ b/tests/ui/error-codes/E0077.stderr @@ -4,6 +4,6 @@ error[E0077]: SIMD vector element type should be a primitive scalar (integer/flo LL | struct Bad(String); | ^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0077`. diff --git a/tests/ui/error-codes/E0084.stderr b/tests/ui/error-codes/E0084.stderr index e1bda22b8..f1fbe6c25 100644 --- a/tests/ui/error-codes/E0084.stderr +++ b/tests/ui/error-codes/E0084.stderr @@ -6,6 +6,6 @@ LL | #[repr(i32)] LL | enum Foo {} | -------- zero-variant enum -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0084`. diff --git a/tests/ui/error-codes/E0092.stderr b/tests/ui/error-codes/E0092.stderr index 2d590a8e1..4ff2e6f07 100644 --- a/tests/ui/error-codes/E0092.stderr +++ b/tests/ui/error-codes/E0092.stderr @@ -4,6 +4,6 @@ error[E0092]: unrecognized atomic operation function: `foo` LL | fn atomic_foo(); | ^^^^^^^^^^^^^^^^ unrecognized atomic operation -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0092`. diff --git a/tests/ui/error-codes/E0093.stderr b/tests/ui/error-codes/E0093.stderr index cb0305593..387e0c55d 100644 --- a/tests/ui/error-codes/E0093.stderr +++ b/tests/ui/error-codes/E0093.stderr @@ -4,6 +4,6 @@ error[E0093]: unrecognized intrinsic function: `foo` LL | fn foo(); | ^^^^^^^^^ unrecognized intrinsic -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0093`. diff --git a/tests/ui/error-codes/E0094.stderr b/tests/ui/error-codes/E0094.stderr index 531cd4c78..1bad5bd95 100644 --- a/tests/ui/error-codes/E0094.stderr +++ b/tests/ui/error-codes/E0094.stderr @@ -4,6 +4,6 @@ error[E0094]: intrinsic has wrong number of type parameters: found 2, expected 1 LL | fn size_of<T, U>() -> usize; | ^^^^^^ expected 1 type parameter -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0094`. diff --git a/tests/ui/error-codes/E0109.stderr b/tests/ui/error-codes/E0109.stderr index 8f4cb86de..ab0d4aac7 100644 --- a/tests/ui/error-codes/E0109.stderr +++ b/tests/ui/error-codes/E0109.stderr @@ -12,6 +12,6 @@ LL - type X = u32<i32>; LL + type X = u32; | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0109`. diff --git a/tests/ui/error-codes/E0110.stderr b/tests/ui/error-codes/E0110.stderr index 4ce2a0a41..2f51329ba 100644 --- a/tests/ui/error-codes/E0110.stderr +++ b/tests/ui/error-codes/E0110.stderr @@ -12,6 +12,6 @@ LL - type X = u32<'static>; LL + type X = u32; | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0109`. diff --git a/tests/ui/error-codes/E0116.stderr b/tests/ui/error-codes/E0116.stderr index 8a0276867..bf215435b 100644 --- a/tests/ui/error-codes/E0116.stderr +++ b/tests/ui/error-codes/E0116.stderr @@ -6,6 +6,6 @@ LL | impl Vec<u8> {} | = note: define and implement a trait or new type instead -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0116`. diff --git a/tests/ui/error-codes/E0118.stderr b/tests/ui/error-codes/E0118.stderr index 442f8a4f8..0d837aa59 100644 --- a/tests/ui/error-codes/E0118.stderr +++ b/tests/ui/error-codes/E0118.stderr @@ -6,6 +6,6 @@ LL | impl<T> T { | = note: either implement a trait on it or create a newtype to wrap it instead -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0118`. diff --git a/tests/ui/error-codes/E0119.stderr b/tests/ui/error-codes/E0119.stderr index e08a2c7fc..838dba081 100644 --- a/tests/ui/error-codes/E0119.stderr +++ b/tests/ui/error-codes/E0119.stderr @@ -7,6 +7,6 @@ LL | impl<T> MyTrait for T { LL | impl MyTrait for Foo { | ^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Foo` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0119`. diff --git a/tests/ui/error-codes/E0120.stderr b/tests/ui/error-codes/E0120.stderr index 75778f1f9..aef777ad0 100644 --- a/tests/ui/error-codes/E0120.stderr +++ b/tests/ui/error-codes/E0120.stderr @@ -4,6 +4,6 @@ error[E0120]: the `Drop` trait may only be implemented for local structs, enums, LL | impl Drop for dyn MyTrait { | ^^^^^^^^^^^ must be a struct, enum, or union in the current crate -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0120`. diff --git a/tests/ui/error-codes/E0124.stderr b/tests/ui/error-codes/E0124.stderr index 73819a89d..f33495806 100644 --- a/tests/ui/error-codes/E0124.stderr +++ b/tests/ui/error-codes/E0124.stderr @@ -6,6 +6,6 @@ LL | field1: i32, LL | field1: i32, | ^^^^^^^^^^^ field already declared -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0124`. diff --git a/tests/ui/error-codes/E0128.stderr b/tests/ui/error-codes/E0128.stderr index eb66d4693..c1ccb4c9e 100644 --- a/tests/ui/error-codes/E0128.stderr +++ b/tests/ui/error-codes/E0128.stderr @@ -4,6 +4,6 @@ error[E0128]: generic parameters with a default cannot use forward declared iden LL | struct Foo<T=U, U=()> { | ^ defaulted generic parameters cannot be forward declared -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0128`. diff --git a/tests/ui/error-codes/E0130.stderr b/tests/ui/error-codes/E0130.stderr index a45571f40..a31517218 100644 --- a/tests/ui/error-codes/E0130.stderr +++ b/tests/ui/error-codes/E0130.stderr @@ -4,6 +4,6 @@ error[E0130]: patterns aren't allowed in foreign function declarations LL | fn foo((a, b): (u32, u32)); | ^^^^^^ pattern not allowed in foreign function -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0130`. diff --git a/tests/ui/error-codes/E0131.stderr b/tests/ui/error-codes/E0131.stderr index 4467e19e9..3a485cdf3 100644 --- a/tests/ui/error-codes/E0131.stderr +++ b/tests/ui/error-codes/E0131.stderr @@ -4,6 +4,6 @@ error[E0131]: `main` function is not allowed to have generic parameters LL | fn main<T>() { | ^^^ `main` cannot have generic parameters -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0131`. diff --git a/tests/ui/error-codes/E0132.stderr b/tests/ui/error-codes/E0132.stderr index d4ddc07b5..b1990afa3 100644 --- a/tests/ui/error-codes/E0132.stderr +++ b/tests/ui/error-codes/E0132.stderr @@ -4,6 +4,6 @@ error[E0132]: `#[start]` function is not allowed to have type parameters LL | fn f< T >() {} | ^^^^^ `#[start]` function cannot have type parameters -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0132`. diff --git a/tests/ui/error-codes/E0133.mir.stderr b/tests/ui/error-codes/E0133.mir.stderr index b11d5e2c2..f8703ef06 100644 --- a/tests/ui/error-codes/E0133.mir.stderr +++ b/tests/ui/error-codes/E0133.mir.stderr @@ -6,6 +6,6 @@ LL | f(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/error-codes/E0133.thir.stderr b/tests/ui/error-codes/E0133.thir.stderr index f1d7aba2a..fd4d42bcb 100644 --- a/tests/ui/error-codes/E0133.thir.stderr +++ b/tests/ui/error-codes/E0133.thir.stderr @@ -6,6 +6,6 @@ LL | f(); | = note: consult the function's documentation for information on how to avoid undefined behavior -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0133`. diff --git a/tests/ui/error-codes/E0138.stderr b/tests/ui/error-codes/E0138.stderr index fa8c39427..04877ab40 100644 --- a/tests/ui/error-codes/E0138.stderr +++ b/tests/ui/error-codes/E0138.stderr @@ -7,6 +7,6 @@ LL | fn foo(argc: isize, argv: *const *const u8) -> isize { 0 } LL | fn f(argc: isize, argv: *const *const u8) -> isize { 0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ multiple `start` functions -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0138`. diff --git a/tests/ui/error-codes/E0152.stderr b/tests/ui/error-codes/E0152.stderr index 29f7e4ad6..dbea7e6d2 100644 --- a/tests/ui/error-codes/E0152.stderr +++ b/tests/ui/error-codes/E0152.stderr @@ -2,12 +2,12 @@ error[E0152]: found duplicate lang item `owned_box` --> $DIR/E0152.rs:5:1 | LL | struct Foo<T>(T); - | ^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^ | = note: the lang item is first defined in crate `alloc` (which `std` depends on) = note: first definition in `alloc` loaded from SYSROOT/liballoc-*.rlib = note: second definition in the local crate (`E0152`) -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0152`. diff --git a/tests/ui/error-codes/E0161.base.stderr b/tests/ui/error-codes/E0161.base.stderr index ae82e6702..d80de66b2 100644 --- a/tests/ui/error-codes/E0161.base.stderr +++ b/tests/ui/error-codes/E0161.base.stderr @@ -4,6 +4,6 @@ error[E0161]: cannot move a value of type `dyn Bar` LL | x.f(); | ^ the size of `dyn Bar` cannot be statically determined -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0161`. diff --git a/tests/ui/error-codes/E0164.stderr b/tests/ui/error-codes/E0164.stderr index 5a80d6ec3..1ed5b0a8f 100644 --- a/tests/ui/error-codes/E0164.stderr +++ b/tests/ui/error-codes/E0164.stderr @@ -4,6 +4,6 @@ error[E0164]: expected tuple struct or tuple variant, found associated constant LL | Foo::B(i) => i, | ^^^^^^^^^ not a tuple struct or tuple variant -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0164`. diff --git a/tests/ui/error-codes/E0184.stderr b/tests/ui/error-codes/E0184.stderr index 52f1f30a4..625c6685a 100644 --- a/tests/ui/error-codes/E0184.stderr +++ b/tests/ui/error-codes/E0184.stderr @@ -6,6 +6,6 @@ LL | #[derive(Copy)] | = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0184`. diff --git a/tests/ui/error-codes/E0185.stderr b/tests/ui/error-codes/E0185.stderr index 8a99c0688..40d6ad3f2 100644 --- a/tests/ui/error-codes/E0185.stderr +++ b/tests/ui/error-codes/E0185.stderr @@ -7,6 +7,6 @@ LL | fn foo(); LL | fn foo(&self) {} | ^^^^^^^^^^^^^ `&self` used in impl -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0185`. diff --git a/tests/ui/error-codes/E0186.stderr b/tests/ui/error-codes/E0186.stderr index 8971d61fc..59b210927 100644 --- a/tests/ui/error-codes/E0186.stderr +++ b/tests/ui/error-codes/E0186.stderr @@ -7,6 +7,6 @@ LL | fn foo(&self); LL | fn foo() {} | ^^^^^^^^ expected `&self` in impl -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0186`. diff --git a/tests/ui/error-codes/E0191.stderr b/tests/ui/error-codes/E0191.stderr index 57eda4785..63974fd6c 100644 --- a/tests/ui/error-codes/E0191.stderr +++ b/tests/ui/error-codes/E0191.stderr @@ -7,6 +7,6 @@ LL | type Bar; LL | type Foo = dyn Trait; | ^^^^^ help: specify the associated type: `Trait<Bar = Type>` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0191`. diff --git a/tests/ui/error-codes/E0194.stderr b/tests/ui/error-codes/E0194.stderr index f2c908eea..25fc1a3b7 100644 --- a/tests/ui/error-codes/E0194.stderr +++ b/tests/ui/error-codes/E0194.stderr @@ -7,6 +7,6 @@ LL | fn do_something(&self) -> T; LL | fn do_something_else<T: Clone>(&self, bar: T); | ^ already used -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0403`. diff --git a/tests/ui/error-codes/E0195.stderr b/tests/ui/error-codes/E0195.stderr index 6eaa1750e..b88064b7f 100644 --- a/tests/ui/error-codes/E0195.stderr +++ b/tests/ui/error-codes/E0195.stderr @@ -7,6 +7,6 @@ LL | fn bar<'a,'b:'a>(x: &'a str, y: &'b str); LL | fn bar<'a,'b>(x: &'a str, y: &'b str) { | ^^^^^^^ lifetimes do not match method in trait -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0195`. diff --git a/tests/ui/error-codes/E0197.stderr b/tests/ui/error-codes/E0197.stderr index 35e104264..c06777396 100644 --- a/tests/ui/error-codes/E0197.stderr +++ b/tests/ui/error-codes/E0197.stderr @@ -6,6 +6,6 @@ LL | unsafe impl Foo { } | | | unsafe because of this -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0197`. diff --git a/tests/ui/error-codes/E0198.stderr b/tests/ui/error-codes/E0198.stderr index bb2efefb4..65b4f5364 100644 --- a/tests/ui/error-codes/E0198.stderr +++ b/tests/ui/error-codes/E0198.stderr @@ -7,6 +7,6 @@ LL | unsafe impl !Send for Foo { } | | negative because of this | unsafe because of this -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0198`. diff --git a/tests/ui/error-codes/E0199.stderr b/tests/ui/error-codes/E0199.stderr index 68c308b15..a61a18d17 100644 --- a/tests/ui/error-codes/E0199.stderr +++ b/tests/ui/error-codes/E0199.stderr @@ -10,6 +10,6 @@ LL - unsafe impl Bar for Foo { } LL + impl Bar for Foo { } | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0199`. diff --git a/tests/ui/error-codes/E0200.stderr b/tests/ui/error-codes/E0200.stderr index c70a2d4f3..fe8353dee 100644 --- a/tests/ui/error-codes/E0200.stderr +++ b/tests/ui/error-codes/E0200.stderr @@ -10,6 +10,6 @@ help: add `unsafe` to this trait implementation LL | unsafe impl Bar for Foo { } | ++++++ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0200`. diff --git a/tests/ui/error-codes/E0206.stderr b/tests/ui/error-codes/E0206.stderr index 60d8d7bfe..d19f2e33a 100644 --- a/tests/ui/error-codes/E0206.stderr +++ b/tests/ui/error-codes/E0206.stderr @@ -4,6 +4,6 @@ error[E0206]: the trait `Copy` cannot be implemented for this type LL | impl Copy for &'static mut Bar { } | ^^^^^^^^^^^^^^^^ type is not a structure or enumeration -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0206`. diff --git a/tests/ui/error-codes/E0207.stderr b/tests/ui/error-codes/E0207.stderr index 5ef51ed86..01d7c4185 100644 --- a/tests/ui/error-codes/E0207.stderr +++ b/tests/ui/error-codes/E0207.stderr @@ -4,6 +4,6 @@ error[E0207]: the type parameter `T` is not constrained by the impl trait, self LL | impl<T: Default> Foo { | ^ unconstrained type parameter -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0207`. diff --git a/tests/ui/error-codes/E0208.stderr b/tests/ui/error-codes/E0208.stderr index 2c7072a7e..77b6ceae4 100644 --- a/tests/ui/error-codes/E0208.stderr +++ b/tests/ui/error-codes/E0208.stderr @@ -4,5 +4,5 @@ error: [+, o] LL | struct Foo<'a, T> { | ^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/error-codes/E0214.stderr b/tests/ui/error-codes/E0214.stderr index e0179aac2..76b11f309 100644 --- a/tests/ui/error-codes/E0214.stderr +++ b/tests/ui/error-codes/E0214.stderr @@ -9,6 +9,6 @@ help: use angle brackets instead LL | let v: Vec<&str> = vec!["foo"]; | ~ ~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0214`. diff --git a/tests/ui/error-codes/E0221.stderr b/tests/ui/error-codes/E0221.stderr index e600acf78..07e7485b6 100644 --- a/tests/ui/error-codes/E0221.stderr +++ b/tests/ui/error-codes/E0221.stderr @@ -28,7 +28,7 @@ LL | fn test() { LL | let _: Self::Err; | ^^^^^^^^^ ambiguous associated type `Err` | - = note: associated type `Self` could derive from `FromStr` + = note: associated type `Err` could derive from `FromStr` help: use fully-qualified syntax to disambiguate | LL | let _: <Self as My>::Err; diff --git a/tests/ui/error-codes/E0223.stderr b/tests/ui/error-codes/E0223.stderr index 1299ba5f5..e985a4c9b 100644 --- a/tests/ui/error-codes/E0223.stderr +++ b/tests/ui/error-codes/E0223.stderr @@ -4,6 +4,6 @@ error[E0223]: ambiguous associated type LL | let foo: MyTrait::X; | ^^^^^^^^^^ help: use fully-qualified syntax: `<MyStruct as MyTrait>::X` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0223`. diff --git a/tests/ui/error-codes/E0227.stderr b/tests/ui/error-codes/E0227.stderr index 26de5b4c4..c77a2e98a 100644 --- a/tests/ui/error-codes/E0227.stderr +++ b/tests/ui/error-codes/E0227.stderr @@ -4,6 +4,6 @@ error[E0227]: ambiguous lifetime bound, explicit lifetime bound required LL | baz: dyn FooBar<'foo, 'bar>, | ^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0227`. diff --git a/tests/ui/error-codes/E0229.stderr b/tests/ui/error-codes/E0229.stderr index 46793314b..e981fb91c 100644 --- a/tests/ui/error-codes/E0229.stderr +++ b/tests/ui/error-codes/E0229.stderr @@ -4,6 +4,6 @@ error[E0229]: associated type bindings are not allowed here LL | fn baz<I>(x: &<I as Foo<A=Bar>>::A) {} | ^^^^^ 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/error-codes/E0252.stderr b/tests/ui/error-codes/E0252.stderr index 2722dfe5e..efbb9ec96 100644 --- a/tests/ui/error-codes/E0252.stderr +++ b/tests/ui/error-codes/E0252.stderr @@ -12,6 +12,6 @@ help: you can use `as` to change the binding name of the import LL | use bar::baz as other_baz; | ~~~~~~~~~~~~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0252`. diff --git a/tests/ui/error-codes/E0253.stderr b/tests/ui/error-codes/E0253.stderr index 8f21a0aab..4ee36b70f 100644 --- a/tests/ui/error-codes/E0253.stderr +++ b/tests/ui/error-codes/E0253.stderr @@ -4,6 +4,6 @@ error[E0253]: `do_something` is not directly importable LL | use foo::MyTrait::do_something; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be imported directly -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0253`. diff --git a/tests/ui/error-codes/E0254.stderr b/tests/ui/error-codes/E0254.stderr index b098f8e1a..d89497b28 100644 --- a/tests/ui/error-codes/E0254.stderr +++ b/tests/ui/error-codes/E0254.stderr @@ -13,6 +13,6 @@ help: you can use `as` to change the binding name of the import LL | use foo::alloc as other_alloc; | ~~~~~~~~~~~~~~~~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0254`. diff --git a/tests/ui/error-codes/E0255.stderr b/tests/ui/error-codes/E0255.stderr index 352c5ba5b..e5f908217 100644 --- a/tests/ui/error-codes/E0255.stderr +++ b/tests/ui/error-codes/E0255.stderr @@ -13,6 +13,6 @@ help: you can use `as` to change the binding name of the import LL | use bar::foo as other_foo; | ~~~~~~~~~~~~~~~~~~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0255`. diff --git a/tests/ui/error-codes/E0259.stderr b/tests/ui/error-codes/E0259.stderr index 06cbc5b4f..6e086268f 100644 --- a/tests/ui/error-codes/E0259.stderr +++ b/tests/ui/error-codes/E0259.stderr @@ -13,6 +13,6 @@ help: you can use `as` to change the binding name of the import LL | extern crate libc as other_alloc; | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0259`. diff --git a/tests/ui/error-codes/E0260.stderr b/tests/ui/error-codes/E0260.stderr index 2d3305bd1..35698c653 100644 --- a/tests/ui/error-codes/E0260.stderr +++ b/tests/ui/error-codes/E0260.stderr @@ -13,6 +13,6 @@ help: you can use `as` to change the binding name of the import LL | extern crate alloc as other_alloc; | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0260`. diff --git a/tests/ui/error-codes/E0262.stderr b/tests/ui/error-codes/E0262.stderr index ad90b7171..092db22ed 100644 --- a/tests/ui/error-codes/E0262.stderr +++ b/tests/ui/error-codes/E0262.stderr @@ -4,6 +4,6 @@ error[E0262]: invalid lifetime parameter name: `'static` LL | fn foo<'static>(x: &'static str) { } | ^^^^^^^ 'static is a reserved lifetime name -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0262`. diff --git a/tests/ui/error-codes/E0263.stderr b/tests/ui/error-codes/E0263.stderr index e3f9aea29..dcf57d8e3 100644 --- a/tests/ui/error-codes/E0263.stderr +++ b/tests/ui/error-codes/E0263.stderr @@ -6,6 +6,6 @@ LL | fn foo<'a, 'b, 'a>(x: &'a str, y: &'b str) { | | | first use of `'a` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0403`. diff --git a/tests/ui/error-codes/E0264.stderr b/tests/ui/error-codes/E0264.stderr index e8e35a12c..3503fb229 100644 --- a/tests/ui/error-codes/E0264.stderr +++ b/tests/ui/error-codes/E0264.stderr @@ -2,8 +2,8 @@ error[E0264]: unknown external lang item: `cake` --> $DIR/E0264.rs:5:5 | LL | fn cake(); - | ^^^^^^^^^ + | ^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0264`. diff --git a/tests/ui/error-codes/E0267.stderr b/tests/ui/error-codes/E0267.stderr index 1f8657373..81f9005d6 100644 --- a/tests/ui/error-codes/E0267.stderr +++ b/tests/ui/error-codes/E0267.stderr @@ -6,6 +6,6 @@ LL | let w = || { break; }; | | | enclosing closure -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0267`. diff --git a/tests/ui/error-codes/E0268.stderr b/tests/ui/error-codes/E0268.stderr index 6422e8a94..8d03103da 100644 --- a/tests/ui/error-codes/E0268.stderr +++ b/tests/ui/error-codes/E0268.stderr @@ -4,6 +4,6 @@ error[E0268]: `break` outside of a loop or labeled block LL | break; | ^^^^^ cannot `break` outside of a loop or labeled block -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0268`. diff --git a/tests/ui/error-codes/E0271.stderr b/tests/ui/error-codes/E0271.stderr index 1e2f43834..0e456eb0d 100644 --- a/tests/ui/error-codes/E0271.stderr +++ b/tests/ui/error-codes/E0271.stderr @@ -17,6 +17,6 @@ note: required by a bound in `foo` LL | fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { | ^^^^^^^^^^^^^^^^^^ required by this bound in `foo` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0271`. diff --git a/tests/ui/error-codes/E0275.stderr b/tests/ui/error-codes/E0275.stderr index c702c3790..b50754083 100644 --- a/tests/ui/error-codes/E0275.stderr +++ b/tests/ui/error-codes/E0275.stderr @@ -13,6 +13,6 @@ LL | impl<T> Foo for T where Bar<T>: Foo {} = note: 126 redundant requirements hidden = note: required for `Bar<T>` to implement `Foo` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0275`. diff --git a/tests/ui/error-codes/E0276.stderr b/tests/ui/error-codes/E0276.stderr index 1013f041b..eb004370a 100644 --- a/tests/ui/error-codes/E0276.stderr +++ b/tests/ui/error-codes/E0276.stderr @@ -7,6 +7,6 @@ LL | fn foo<T>(x: T); LL | fn foo<T>(x: T) where T: Copy {} | ^^^^ impl has extra requirement `T: Copy` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0276`. diff --git a/tests/ui/error-codes/E0277-2.stderr b/tests/ui/error-codes/E0277-2.stderr index a2abf3793..9a262f755 100644 --- a/tests/ui/error-codes/E0277-2.stderr +++ b/tests/ui/error-codes/E0277-2.stderr @@ -26,6 +26,6 @@ note: required by a bound in `is_send` LL | fn is_send<T: Send>() { } | ^^^^ required by this bound in `is_send` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0277`. diff --git a/tests/ui/error-codes/E0277-3.stderr b/tests/ui/error-codes/E0277-3.stderr index 0d4782935..6cdfaa04f 100644 --- a/tests/ui/error-codes/E0277-3.stderr +++ b/tests/ui/error-codes/E0277-3.stderr @@ -18,6 +18,6 @@ LL + #[derive(PartialEq)] LL | struct S; | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0277`. diff --git a/tests/ui/error-codes/E0282.stderr b/tests/ui/error-codes/E0282.stderr index 58332454a..295e84803 100644 --- a/tests/ui/error-codes/E0282.stderr +++ b/tests/ui/error-codes/E0282.stderr @@ -9,6 +9,6 @@ help: consider giving `x` an explicit type LL | let x: /* Type */; | ++++++++++++ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0282`. diff --git a/tests/ui/error-codes/E0297.stderr b/tests/ui/error-codes/E0297.stderr index 293028f5f..3bfe8a668 100644 --- a/tests/ui/error-codes/E0297.stderr +++ b/tests/ui/error-codes/E0297.stderr @@ -6,6 +6,6 @@ LL | for Some(x) in xs {} | = note: the matched value is of type `Option<i32>` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0005`. diff --git a/tests/ui/error-codes/E0308-2.stderr b/tests/ui/error-codes/E0308-2.stderr index 3a8a81a73..b14977917 100644 --- a/tests/ui/error-codes/E0308-2.stderr +++ b/tests/ui/error-codes/E0308-2.stderr @@ -13,6 +13,6 @@ LL | impl Eq for &dyn DynEq {} | ^ = note: ...does not necessarily outlive the static lifetime -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0308`. diff --git a/tests/ui/error-codes/E0308-4.stderr b/tests/ui/error-codes/E0308-4.stderr index 39c067637..9f33220a5 100644 --- a/tests/ui/error-codes/E0308-4.stderr +++ b/tests/ui/error-codes/E0308-4.stderr @@ -8,6 +8,6 @@ LL | 0u8..=3i8 => (), | | | this is of type `u8` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0308`. diff --git a/tests/ui/error-codes/E0308.stderr b/tests/ui/error-codes/E0308.stderr index 141abed60..bc6c5a632 100644 --- a/tests/ui/error-codes/E0308.stderr +++ b/tests/ui/error-codes/E0308.stderr @@ -7,6 +7,6 @@ LL | fn size_of<T>(); = note: expected signature `extern "rust-intrinsic" fn() -> usize` found signature `extern "rust-intrinsic" fn()` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0308`. diff --git a/tests/ui/error-codes/E0311.stderr b/tests/ui/error-codes/E0311.stderr index 96546b83f..bac18596f 100644 --- a/tests/ui/error-codes/E0311.stderr +++ b/tests/ui/error-codes/E0311.stderr @@ -11,6 +11,6 @@ help: consider adding an explicit lifetime bound LL | fn no_restriction<'a, T: 'a>(x: &'a ()) -> &'a () { | +++ ++++ ++ ++ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0311`. diff --git a/tests/ui/error-codes/E0328.stderr b/tests/ui/error-codes/E0328.stderr index 70e6baf69..1143c3834 100644 --- a/tests/ui/error-codes/E0328.stderr +++ b/tests/ui/error-codes/E0328.stderr @@ -4,6 +4,6 @@ error[E0328]: explicit impls for the `Unsize` trait are not permitted LL | impl<T> Unsize<T> for MyType {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl of `Unsize` not allowed -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0328`. diff --git a/tests/ui/error-codes/E0365.stderr b/tests/ui/error-codes/E0365.stderr index 5bfcf1394..d6eb9d6c3 100644 --- a/tests/ui/error-codes/E0365.stderr +++ b/tests/ui/error-codes/E0365.stderr @@ -6,6 +6,6 @@ LL | pub use foo as foo2; | = note: consider declaring type or module `foo` with `pub` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0365`. diff --git a/tests/ui/error-codes/E0370.stderr b/tests/ui/error-codes/E0370.stderr index 7fb622ee8..7bcd99b95 100644 --- a/tests/ui/error-codes/E0370.stderr +++ b/tests/ui/error-codes/E0370.stderr @@ -6,6 +6,6 @@ LL | Y, | = note: explicitly set `Y = -9223372036854775808` if that is desired outcome -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0370`. diff --git a/tests/ui/error-codes/E0374.stderr b/tests/ui/error-codes/E0374.stderr index 49ec0bce4..148fa1348 100644 --- a/tests/ui/error-codes/E0374.stderr +++ b/tests/ui/error-codes/E0374.stderr @@ -7,6 +7,6 @@ LL | | where T: CoerceUnsized<U> {} | = note: expected a single field to be coerced, none found -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0374`. diff --git a/tests/ui/error-codes/E0375.stderr b/tests/ui/error-codes/E0375.stderr index a68b3af5a..0a5e4128a 100644 --- a/tests/ui/error-codes/E0375.stderr +++ b/tests/ui/error-codes/E0375.stderr @@ -7,6 +7,6 @@ LL | impl<T, U> CoerceUnsized<Foo<U, T>> for Foo<T, U> {} = note: `CoerceUnsized` may only be implemented for a coercion between structures with one field being coerced = note: currently, 2 fields need coercions: `b` (`T` to `U`), `c` (`U` to `T`) -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0375`. diff --git a/tests/ui/error-codes/E0376.stderr b/tests/ui/error-codes/E0376.stderr index e91efb045..46668e05a 100644 --- a/tests/ui/error-codes/E0376.stderr +++ b/tests/ui/error-codes/E0376.stderr @@ -4,6 +4,6 @@ error[E0376]: the trait `CoerceUnsized` may only be implemented for a coercion b LL | impl<T, U> CoerceUnsized<U> for Foo<T> {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0376`. diff --git a/tests/ui/error-codes/E0377.stderr b/tests/ui/error-codes/E0377.stderr index 9cb11e5a3..5d710d8e1 100644 --- a/tests/ui/error-codes/E0377.stderr +++ b/tests/ui/error-codes/E0377.stderr @@ -6,6 +6,6 @@ LL | impl<T, U> CoerceUnsized<Bar<U>> for Foo<T> where T: CoerceUnsized<U> {} | = note: expected coercion between the same definition; expected `Foo`, found `Bar` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0377`. diff --git a/tests/ui/error-codes/E0389.stderr b/tests/ui/error-codes/E0389.stderr index e4001856c..156bff7f0 100644 --- a/tests/ui/error-codes/E0389.stderr +++ b/tests/ui/error-codes/E0389.stderr @@ -9,6 +9,6 @@ help: consider changing this to be a mutable reference LL | let fancy_ref = &mut (&mut fancy); | +++ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0594`. diff --git a/tests/ui/error-codes/E0392.stderr b/tests/ui/error-codes/E0392.stderr index 622402999..ecbfd5584 100644 --- a/tests/ui/error-codes/E0392.stderr +++ b/tests/ui/error-codes/E0392.stderr @@ -7,6 +7,6 @@ LL | enum Foo<T> { Bar } = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` = help: if you intended `T` to be a const parameter, use `const T: usize` instead -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0392`. diff --git a/tests/ui/error-codes/E0393.stderr b/tests/ui/error-codes/E0393.stderr index d9f70b729..4083fa23e 100644 --- a/tests/ui/error-codes/E0393.stderr +++ b/tests/ui/error-codes/E0393.stderr @@ -9,6 +9,6 @@ LL | fn together_we_will_rule_the_galaxy(son: &dyn A) {} | = note: because of the default `Self` reference, type parameters must be specified on object types -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0393`. diff --git a/tests/ui/error-codes/E0396-fixed.stderr b/tests/ui/error-codes/E0396-fixed.stderr index e77b2ce9a..2f8ea7993 100644 --- a/tests/ui/error-codes/E0396-fixed.stderr +++ b/tests/ui/error-codes/E0396-fixed.stderr @@ -4,6 +4,6 @@ error[E0080]: evaluation of constant value failed LL | const VALUE: u8 = unsafe { *REG_ADDR }; | ^^^^^^^^^ memory access failed: 0x5f3759df[noalloc] is a dangling pointer (it has no provenance) -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0080`. diff --git a/tests/ui/error-codes/E0401.stderr b/tests/ui/error-codes/E0401.stderr index 0a069e8d3..d27fade48 100644 --- a/tests/ui/error-codes/E0401.stderr +++ b/tests/ui/error-codes/E0401.stderr @@ -55,7 +55,7 @@ error[E0283]: type annotations needed LL | bfnr(x); | ^^^^ cannot infer type of the type parameter `W` declared on the function `bfnr` | - = note: multiple `impl`s satisfying `_: Fn<()>` found in the following crates: `alloc`, `core`: + = note: multiple `impl`s satisfying `_: Fn()` found in the following crates: `alloc`, `core`: - impl<A, F> Fn<A> for &F where A: Tuple, F: Fn<A>, F: ?Sized; - impl<Args, F, A> Fn<Args> for Box<F, A> diff --git a/tests/ui/error-codes/E0403.stderr b/tests/ui/error-codes/E0403.stderr index d76a58a7c..02f255b7e 100644 --- a/tests/ui/error-codes/E0403.stderr +++ b/tests/ui/error-codes/E0403.stderr @@ -6,6 +6,6 @@ LL | fn foo<T, T>(s: T, u: T) {} | | | first use of `T` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0403`. diff --git a/tests/ui/error-codes/E0405.stderr b/tests/ui/error-codes/E0405.stderr index a22afe6f3..1fb115c9e 100644 --- a/tests/ui/error-codes/E0405.stderr +++ b/tests/ui/error-codes/E0405.stderr @@ -4,6 +4,6 @@ error[E0405]: cannot find trait `SomeTrait` in this scope LL | impl SomeTrait for Foo {} | ^^^^^^^^^ not found in this scope -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0405`. diff --git a/tests/ui/error-codes/E0407.stderr b/tests/ui/error-codes/E0407.stderr index 6f6d1ff6a..889668f58 100644 --- a/tests/ui/error-codes/E0407.stderr +++ b/tests/ui/error-codes/E0407.stderr @@ -7,6 +7,6 @@ LL | fn b() {} | | help: there is an associated function with a similar name: `a` | not a member of trait `Foo` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0407`. diff --git a/tests/ui/error-codes/E0408.stderr b/tests/ui/error-codes/E0408.stderr index 132a94322..45ac48006 100644 --- a/tests/ui/error-codes/E0408.stderr +++ b/tests/ui/error-codes/E0408.stderr @@ -6,6 +6,6 @@ LL | Some(y) | None => {} | | | variable not in all patterns -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0408`. diff --git a/tests/ui/error-codes/E0411.stderr b/tests/ui/error-codes/E0411.stderr index 4c99f9fcb..16da10348 100644 --- a/tests/ui/error-codes/E0411.stderr +++ b/tests/ui/error-codes/E0411.stderr @@ -6,6 +6,6 @@ LL | fn main() { LL | <Self>::foo; | ^^^^ `Self` is only available in impls, traits, and type definitions -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0411`. diff --git a/tests/ui/error-codes/E0412.stderr b/tests/ui/error-codes/E0412.stderr index 7bdaa1807..7c1172642 100644 --- a/tests/ui/error-codes/E0412.stderr +++ b/tests/ui/error-codes/E0412.stderr @@ -4,6 +4,6 @@ error[E0412]: cannot find type `Something` in this scope LL | impl Something {} | ^^^^^^^^^ not found in this scope -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0412`. diff --git a/tests/ui/error-codes/E0415.stderr b/tests/ui/error-codes/E0415.stderr index c2b8fdc7c..77e5752de 100644 --- a/tests/ui/error-codes/E0415.stderr +++ b/tests/ui/error-codes/E0415.stderr @@ -4,6 +4,6 @@ error[E0415]: identifier `f` is bound more than once in this parameter list LL | fn foo(f: i32, f: i32) {} | ^ used as parameter more than once -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0415`. diff --git a/tests/ui/error-codes/E0416.stderr b/tests/ui/error-codes/E0416.stderr index 78acac5c6..643b99087 100644 --- a/tests/ui/error-codes/E0416.stderr +++ b/tests/ui/error-codes/E0416.stderr @@ -4,6 +4,6 @@ error[E0416]: identifier `x` is bound more than once in the same pattern LL | (x, x) => {} | ^ used in a pattern more than once -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0416`. diff --git a/tests/ui/error-codes/E0425.stderr b/tests/ui/error-codes/E0425.stderr index 9ef4608da..db78dc3f7 100644 --- a/tests/ui/error-codes/E0425.stderr +++ b/tests/ui/error-codes/E0425.stderr @@ -4,6 +4,6 @@ error[E0425]: cannot find value `elf` in this scope LL | elf; | ^^^ not found in this scope -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0425`. diff --git a/tests/ui/error-codes/E0426.stderr b/tests/ui/error-codes/E0426.stderr index 035f2eb86..3e03030df 100644 --- a/tests/ui/error-codes/E0426.stderr +++ b/tests/ui/error-codes/E0426.stderr @@ -4,6 +4,6 @@ error[E0426]: use of undeclared label `'a` LL | break 'a; | ^^ undeclared label `'a` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0426`. diff --git a/tests/ui/error-codes/E0428.stderr b/tests/ui/error-codes/E0428.stderr index 205bcf342..b5bb84e2e 100644 --- a/tests/ui/error-codes/E0428.stderr +++ b/tests/ui/error-codes/E0428.stderr @@ -8,6 +8,6 @@ LL | struct Bar; | = note: `Bar` must be defined only once in the type namespace of this module -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0428`. diff --git a/tests/ui/error-codes/E0429.stderr b/tests/ui/error-codes/E0429.stderr index 08b99232e..d2d9ba209 100644 --- a/tests/ui/error-codes/E0429.stderr +++ b/tests/ui/error-codes/E0429.stderr @@ -14,6 +14,6 @@ help: alternatively, use the multi-path `use` syntax to import `self` LL | use std::fmt::{self}; | + + -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0429`. diff --git a/tests/ui/error-codes/E0431.stderr b/tests/ui/error-codes/E0431.stderr index adfd2d923..f77c62bec 100644 --- a/tests/ui/error-codes/E0431.stderr +++ b/tests/ui/error-codes/E0431.stderr @@ -4,6 +4,6 @@ error[E0431]: `self` import can only appear in an import list with a non-empty p LL | use {self}; | ^^^^ can only appear in an import list with a non-empty prefix -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0431`. diff --git a/tests/ui/error-codes/E0432.stderr b/tests/ui/error-codes/E0432.stderr index ed9536f16..473e82f86 100644 --- a/tests/ui/error-codes/E0432.stderr +++ b/tests/ui/error-codes/E0432.stderr @@ -6,6 +6,6 @@ LL | use something::Foo; | = help: consider adding `extern crate something` to use the `something` crate -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0432`. diff --git a/tests/ui/error-codes/E0433.stderr b/tests/ui/error-codes/E0433.stderr index 265d8885c..1ac8c3ebc 100644 --- a/tests/ui/error-codes/E0433.stderr +++ b/tests/ui/error-codes/E0433.stderr @@ -4,6 +4,6 @@ error[E0433]: failed to resolve: use of undeclared type `NonExistingMap` LL | let map = NonExistingMap::new(); | ^^^^^^^^^^^^^^ use of undeclared type `NonExistingMap` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0433`. diff --git a/tests/ui/error-codes/E0434.stderr b/tests/ui/error-codes/E0434.stderr index 14508ccbc..db9b087f5 100644 --- a/tests/ui/error-codes/E0434.stderr +++ b/tests/ui/error-codes/E0434.stderr @@ -6,6 +6,6 @@ LL | y | = help: use the `|| { ... }` closure form instead -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0434`. diff --git a/tests/ui/error-codes/E0435.stderr b/tests/ui/error-codes/E0435.stderr index fc08fade9..68d6ddba2 100644 --- a/tests/ui/error-codes/E0435.stderr +++ b/tests/ui/error-codes/E0435.stderr @@ -6,6 +6,6 @@ LL | let foo: usize = 42; LL | let _: [u8; foo]; | ^^^ non-constant value -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0435`. diff --git a/tests/ui/error-codes/E0437.stderr b/tests/ui/error-codes/E0437.stderr index 217b16403..b011fa40e 100644 --- a/tests/ui/error-codes/E0437.stderr +++ b/tests/ui/error-codes/E0437.stderr @@ -4,6 +4,6 @@ error[E0437]: type `Bar` is not a member of trait `Foo` LL | type Bar = bool; | ^^^^^^^^^^^^^^^^ not a member of trait `Foo` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0437`. diff --git a/tests/ui/error-codes/E0438.stderr b/tests/ui/error-codes/E0438.stderr index 853f0c3c2..701c007af 100644 --- a/tests/ui/error-codes/E0438.stderr +++ b/tests/ui/error-codes/E0438.stderr @@ -4,6 +4,6 @@ error[E0438]: const `BAR` is not a member of trait `Bar` LL | const BAR: bool = true; | ^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `Bar` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0438`. diff --git a/tests/ui/error-codes/E0454.stderr b/tests/ui/error-codes/E0454.stderr index b9a506fee..e16982542 100644 --- a/tests/ui/error-codes/E0454.stderr +++ b/tests/ui/error-codes/E0454.stderr @@ -4,6 +4,6 @@ error[E0454]: link name must not be empty LL | #[link(name = "")] extern "C" {} | ^^ empty link name -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0454`. diff --git a/tests/ui/error-codes/E0458.stderr b/tests/ui/error-codes/E0458.stderr index e641bba54..c13ae4e78 100644 --- a/tests/ui/error-codes/E0458.stderr +++ b/tests/ui/error-codes/E0458.stderr @@ -1,4 +1,4 @@ -error[E0458]: unknown link kind `wonderful_unicorn`, expected one of: static, dylib, framework, raw-dylib +error[E0458]: unknown link kind `wonderful_unicorn`, expected one of: static, dylib, framework, raw-dylib, link-arg --> $DIR/E0458.rs:1:15 | LL | #[link(kind = "wonderful_unicorn")] extern "C" {} diff --git a/tests/ui/error-codes/E0459.stderr b/tests/ui/error-codes/E0459.stderr index 8f0dd25e0..21c1a50bf 100644 --- a/tests/ui/error-codes/E0459.stderr +++ b/tests/ui/error-codes/E0459.stderr @@ -4,6 +4,6 @@ error[E0459]: `#[link]` attribute requires a `name = "string"` argument LL | #[link(kind = "dylib")] extern "C" {} | ^^^^^^^^^^^^^^^^^^^^^^^ missing `name` argument -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0459`. diff --git a/tests/ui/error-codes/E0462.stderr b/tests/ui/error-codes/E0462.stderr index 43e27965f..18f20d793 100644 --- a/tests/ui/error-codes/E0462.stderr +++ b/tests/ui/error-codes/E0462.stderr @@ -8,6 +8,6 @@ LL | extern crate found_staticlib; crate `found_staticlib`: $TEST_BUILD_DIR/error-codes/E0462/auxiliary/libfound_staticlib.somelib = help: please recompile that crate using --crate-type lib -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0462`. diff --git a/tests/ui/error-codes/E0464.stderr b/tests/ui/error-codes/E0464.stderr index 574270f94..edb0b1cf4 100644 --- a/tests/ui/error-codes/E0464.stderr +++ b/tests/ui/error-codes/E0464.stderr @@ -8,6 +8,6 @@ LL | extern crate crateresolve1; = note: candidate #2: $TEST_BUILD_DIR/error-codes/E0464/auxiliary/libcrateresolve1-2.somelib = note: candidate #3: $TEST_BUILD_DIR/error-codes/E0464/auxiliary/libcrateresolve1-3.somelib -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0464`. diff --git a/tests/ui/error-codes/E0476.stderr b/tests/ui/error-codes/E0476.next.stderr index 0378ac6e8..454dbecc7 100644 --- a/tests/ui/error-codes/E0476.stderr +++ b/tests/ui/error-codes/E0476.next.stderr @@ -1,5 +1,5 @@ error[E0119]: conflicting implementations of trait `CoerceUnsized<&Wrapper<_>>` for type `&Wrapper<_>` - --> $DIR/E0476.rs:9:1 + --> $DIR/E0476.rs:11:1 | LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -9,18 +9,18 @@ LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S where 'b: 'a, T: Unsize<U>, T: ?Sized, U: ?Sized; error[E0476]: lifetime of the source pointer does not outlive lifetime bound of the object type - --> $DIR/E0476.rs:9:1 + --> $DIR/E0476.rs:11:1 | LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: object type is valid for the lifetime `'a` as defined here - --> $DIR/E0476.rs:9:6 + --> $DIR/E0476.rs:11:6 | LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {} | ^^ note: source pointer is only valid for the lifetime `'b` as defined here - --> $DIR/E0476.rs:9:10 + --> $DIR/E0476.rs:11:10 | LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {} | ^^ diff --git a/tests/ui/error-codes/E0476.old.stderr b/tests/ui/error-codes/E0476.old.stderr new file mode 100644 index 000000000..454dbecc7 --- /dev/null +++ b/tests/ui/error-codes/E0476.old.stderr @@ -0,0 +1,31 @@ +error[E0119]: conflicting implementations of trait `CoerceUnsized<&Wrapper<_>>` for type `&Wrapper<_>` + --> $DIR/E0476.rs:11:1 + | +LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: conflicting implementation in crate `core`: + - impl<'a, 'b, T, U> CoerceUnsized<&'a U> for &'b T + where 'b: 'a, T: Unsize<U>, T: ?Sized, U: ?Sized; + +error[E0476]: lifetime of the source pointer does not outlive lifetime bound of the object type + --> $DIR/E0476.rs:11:1 + | +LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | +note: object type is valid for the lifetime `'a` as defined here + --> $DIR/E0476.rs:11:6 + | +LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {} + | ^^ +note: source pointer is only valid for the lifetime `'b` as defined here + --> $DIR/E0476.rs:11:10 + | +LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {} + | ^^ + +error: aborting due to 2 previous errors + +Some errors have detailed explanations: E0119, E0476. +For more information about an error, try `rustc --explain E0119`. diff --git a/tests/ui/error-codes/E0476.rs b/tests/ui/error-codes/E0476.rs index d5e4b8d23..d87916198 100644 --- a/tests/ui/error-codes/E0476.rs +++ b/tests/ui/error-codes/E0476.rs @@ -1,3 +1,5 @@ +// revisions: old next +//[next] compile-flags: -Znext-solver=coherence #![feature(coerce_unsized)] #![feature(unsize)] diff --git a/tests/ui/error-codes/E0478.stderr b/tests/ui/error-codes/E0478.stderr index ec650085a..6ecde0e14 100644 --- a/tests/ui/error-codes/E0478.stderr +++ b/tests/ui/error-codes/E0478.stderr @@ -15,6 +15,6 @@ note: but lifetime parameter must outlive the lifetime `'kiss` as defined here LL | struct Prince<'kiss, 'SnowWhite> { | ^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0478`. diff --git a/tests/ui/error-codes/E0496.stderr b/tests/ui/error-codes/E0496.stderr index 80ca2b1fb..2d60aee77 100644 --- a/tests/ui/error-codes/E0496.stderr +++ b/tests/ui/error-codes/E0496.stderr @@ -6,6 +6,6 @@ LL | impl<'a> Foo<'a> { LL | fn f<'a>(x: &'a i32) { | ^^ lifetime `'a` already in scope -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0496`. diff --git a/tests/ui/error-codes/E0499.stderr b/tests/ui/error-codes/E0499.stderr index d56baf722..03f2bad6c 100644 --- a/tests/ui/error-codes/E0499.stderr +++ b/tests/ui/error-codes/E0499.stderr @@ -9,6 +9,6 @@ LL | a.use_mut(); LL | x.use_mut(); | - first borrow later used here -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0499`. diff --git a/tests/ui/error-codes/E0502.stderr b/tests/ui/error-codes/E0502.stderr index cade6d718..88d914c0e 100644 --- a/tests/ui/error-codes/E0502.stderr +++ b/tests/ui/error-codes/E0502.stderr @@ -8,6 +8,6 @@ LL | bar(a); LL | y.use_ref(); | - immutable borrow later used here -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0502`. diff --git a/tests/ui/error-codes/E0503.stderr b/tests/ui/error-codes/E0503.stderr index 275abb23f..f1469cdc5 100644 --- a/tests/ui/error-codes/E0503.stderr +++ b/tests/ui/error-codes/E0503.stderr @@ -8,6 +8,6 @@ LL | let _sum = value + 1; LL | _borrow.use_mut(); | ------- borrow later used here -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0503`. diff --git a/tests/ui/error-codes/E0504.stderr b/tests/ui/error-codes/E0504.stderr index 20e16a538..c8a48961c 100644 --- a/tests/ui/error-codes/E0504.stderr +++ b/tests/ui/error-codes/E0504.stderr @@ -14,6 +14,6 @@ LL | println!("child function: {}", fancy_num.num); LL | println!("main function: {}", fancy_ref.num); | ------------- borrow later used here -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0505`. diff --git a/tests/ui/error-codes/E0505.stderr b/tests/ui/error-codes/E0505.stderr index 1a85e0317..250680d2c 100644 --- a/tests/ui/error-codes/E0505.stderr +++ b/tests/ui/error-codes/E0505.stderr @@ -11,6 +11,6 @@ LL | eat(x); LL | _ref_to_val.use_ref(); | ----------- borrow later used here -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0505`. diff --git a/tests/ui/error-codes/E0506.stderr b/tests/ui/error-codes/E0506.stderr index 17ad7c611..2cc2885f7 100644 --- a/tests/ui/error-codes/E0506.stderr +++ b/tests/ui/error-codes/E0506.stderr @@ -9,6 +9,6 @@ LL | LL | println!("Num: {}, Ref: {}", fancy_num.num, fancy_ref.num); | ------------- borrow later used here -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0506`. diff --git a/tests/ui/error-codes/E0507.stderr b/tests/ui/error-codes/E0507.stderr index 089939516..767fedfcc 100644 --- a/tests/ui/error-codes/E0507.stderr +++ b/tests/ui/error-codes/E0507.stderr @@ -12,6 +12,6 @@ note: `TheDarkKnight::nothing_is_true` takes ownership of the receiver `self`, w LL | fn nothing_is_true(self) {} | ^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0507`. diff --git a/tests/ui/error-codes/E0508-fail.stderr b/tests/ui/error-codes/E0508-fail.stderr index 208ba3072..1153b1d09 100644 --- a/tests/ui/error-codes/E0508-fail.stderr +++ b/tests/ui/error-codes/E0508-fail.stderr @@ -12,6 +12,6 @@ help: consider borrowing here LL | let _value = &array[0]; | + -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0508`. diff --git a/tests/ui/error-codes/E0508.stderr b/tests/ui/error-codes/E0508.stderr index df2d3b0d3..4c864e241 100644 --- a/tests/ui/error-codes/E0508.stderr +++ b/tests/ui/error-codes/E0508.stderr @@ -12,6 +12,6 @@ help: consider borrowing here LL | let _value = &array[0]; | + -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0508`. diff --git a/tests/ui/error-codes/E0509.stderr b/tests/ui/error-codes/E0509.stderr index c00d9142e..59843a549 100644 --- a/tests/ui/error-codes/E0509.stderr +++ b/tests/ui/error-codes/E0509.stderr @@ -12,6 +12,6 @@ help: consider borrowing here LL | let fancy_field = &drop_struct.fancy; | + -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0509`. diff --git a/tests/ui/error-codes/E0511.stderr b/tests/ui/error-codes/E0511.stderr index d797b10d5..59eb19d2e 100644 --- a/tests/ui/error-codes/E0511.stderr +++ b/tests/ui/error-codes/E0511.stderr @@ -4,6 +4,6 @@ error[E0511]: invalid monomorphization of `simd_add` intrinsic: expected SIMD in LL | unsafe { simd_add(0, 1); } | ^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0511`. diff --git a/tests/ui/error-codes/E0512.stderr b/tests/ui/error-codes/E0512.stderr index 3fecce542..eb8ce8b17 100644 --- a/tests/ui/error-codes/E0512.stderr +++ b/tests/ui/error-codes/E0512.stderr @@ -7,6 +7,6 @@ LL | unsafe { takes_u8(::std::mem::transmute(0u16)); } = note: source type: `u16` (16 bits) = note: target type: `u8` (8 bits) -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0512`. diff --git a/tests/ui/error-codes/E0516.stderr b/tests/ui/error-codes/E0516.stderr index 5243b7caf..62e70a466 100644 --- a/tests/ui/error-codes/E0516.stderr +++ b/tests/ui/error-codes/E0516.stderr @@ -9,6 +9,6 @@ help: consider replacing `typeof(...)` with an actual type LL | let x: i32 = 92; | ~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0516`. diff --git a/tests/ui/error-codes/E0519.stderr b/tests/ui/error-codes/E0519.stderr index e24fc4aaa..4fbd26813 100644 --- a/tests/ui/error-codes/E0519.stderr +++ b/tests/ui/error-codes/E0519.stderr @@ -4,6 +4,6 @@ error[E0519]: the current crate is indistinguishable from one of its dependencie LL | extern crate crateresolve1; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0519`. diff --git a/tests/ui/error-codes/E0520.stderr b/tests/ui/error-codes/E0520.stderr index 06658a49b..833192030 100644 --- a/tests/ui/error-codes/E0520.stderr +++ b/tests/ui/error-codes/E0520.stderr @@ -19,6 +19,6 @@ LL | default fn fly(&self) {} | = note: to specialize, `fly` in the parent `impl` must be marked `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 E0520`. diff --git a/tests/ui/error-codes/E0522.stderr b/tests/ui/error-codes/E0522.stderr index 0a8a41598..66359cbac 100644 --- a/tests/ui/error-codes/E0522.stderr +++ b/tests/ui/error-codes/E0522.stderr @@ -4,6 +4,6 @@ error[E0522]: definition of an unknown language item: `cookie` LL | #[lang = "cookie"] | ^^^^^^^^^^^^^^^^^^ definition of unknown language item `cookie` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0522`. diff --git a/tests/ui/error-codes/E0523.stderr b/tests/ui/error-codes/E0523.stderr index 8e3eb2159..c6e65b55e 100644 --- a/tests/ui/error-codes/E0523.stderr +++ b/tests/ui/error-codes/E0523.stderr @@ -8,6 +8,6 @@ LL | extern crate crateresolve1; = note: candidate #2: $TEST_BUILD_DIR/error-codes/E0523/auxiliary/libcrateresolve1-2.somelib = note: candidate #3: $TEST_BUILD_DIR/error-codes/E0523/auxiliary/libcrateresolve1-3.somelib -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0464`. diff --git a/tests/ui/error-codes/E0527.stderr b/tests/ui/error-codes/E0527.stderr index a2e6288b2..80d8412a5 100644 --- a/tests/ui/error-codes/E0527.stderr +++ b/tests/ui/error-codes/E0527.stderr @@ -4,6 +4,6 @@ error[E0527]: pattern requires 2 elements but array has 4 LL | &[a, b] => { | ^^^^^^ expected 4 elements -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0527`. diff --git a/tests/ui/error-codes/E0528.stderr b/tests/ui/error-codes/E0528.stderr index 21615f954..94c83d36e 100644 --- a/tests/ui/error-codes/E0528.stderr +++ b/tests/ui/error-codes/E0528.stderr @@ -4,6 +4,6 @@ error[E0528]: pattern requires at least 3 elements but array has 2 LL | &[a, b, c, rest @ ..] => { | ^^^^^^^^^^^^^^^^^^^^ pattern cannot match array of 2 elements -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0528`. diff --git a/tests/ui/error-codes/E0529.stderr b/tests/ui/error-codes/E0529.stderr index 96b22bb22..b3e25a965 100644 --- a/tests/ui/error-codes/E0529.stderr +++ b/tests/ui/error-codes/E0529.stderr @@ -4,6 +4,6 @@ error[E0529]: expected an array or slice, found `f32` LL | [a, b] => { | ^^^^^^ pattern cannot match with input type `f32` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0529`. diff --git a/tests/ui/error-codes/E0530.stderr b/tests/ui/error-codes/E0530.stderr index c31214413..125b60bc9 100644 --- a/tests/ui/error-codes/E0530.stderr +++ b/tests/ui/error-codes/E0530.stderr @@ -7,6 +7,6 @@ LL | static TEST: i32 = 0; LL | TEST => {} | ^^^^ cannot be named the same as a static -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0530`. diff --git a/tests/ui/error-codes/E0532.stderr b/tests/ui/error-codes/E0532.stderr index eeccadccc..0cd276a3c 100644 --- a/tests/ui/error-codes/E0532.stderr +++ b/tests/ui/error-codes/E0532.stderr @@ -4,6 +4,6 @@ error[E0532]: expected tuple struct or tuple variant, found constant `StructCons LL | StructConst1(_) => { }, | ^^^^^^^^^^^^ not a tuple struct or tuple variant -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/error-codes/E0534.stderr b/tests/ui/error-codes/E0534.stderr index 23f9cd7ce..6983de7ab 100644 --- a/tests/ui/error-codes/E0534.stderr +++ b/tests/ui/error-codes/E0534.stderr @@ -4,6 +4,6 @@ error[E0534]: expected one argument LL | #[inline()] | ^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0534`. diff --git a/tests/ui/error-codes/E0559.stderr b/tests/ui/error-codes/E0559.stderr index 63ee1cd78..59317780f 100644 --- a/tests/ui/error-codes/E0559.stderr +++ b/tests/ui/error-codes/E0559.stderr @@ -6,6 +6,6 @@ LL | let s = Field::Fool { joke: 0 }; | = note: available fields are: `x` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0559`. diff --git a/tests/ui/error-codes/E0560.stderr b/tests/ui/error-codes/E0560.stderr index bb5ce478a..934bc41cc 100644 --- a/tests/ui/error-codes/E0560.stderr +++ b/tests/ui/error-codes/E0560.stderr @@ -6,6 +6,6 @@ LL | let s = Simba { mother: 1, father: 0 }; | = note: all struct fields are already assigned -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0560`. diff --git a/tests/ui/error-codes/E0565-1.stderr b/tests/ui/error-codes/E0565-1.stderr index 1283a9c5e..806eed2a6 100644 --- a/tests/ui/error-codes/E0565-1.stderr +++ b/tests/ui/error-codes/E0565-1.stderr @@ -4,6 +4,6 @@ error[E0565]: item in `deprecated` must be a key/value pair LL | #[deprecated("since")] | ^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0565`. diff --git a/tests/ui/error-codes/E0565-2.stderr b/tests/ui/error-codes/E0565-2.stderr index 097871bd3..42199351c 100644 --- a/tests/ui/error-codes/E0565-2.stderr +++ b/tests/ui/error-codes/E0565-2.stderr @@ -6,6 +6,6 @@ LL | #[deprecated(since = b"1.29", note = "hi")] | | | help: consider removing the prefix -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0565`. diff --git a/tests/ui/error-codes/E0565.stderr b/tests/ui/error-codes/E0565.stderr index 6ed90c0ae..68f4a37dc 100644 --- a/tests/ui/error-codes/E0565.stderr +++ b/tests/ui/error-codes/E0565.stderr @@ -4,6 +4,6 @@ error[E0565]: meta item in `repr` must be an identifier LL | #[repr("C")] | ^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0565`. diff --git a/tests/ui/error-codes/E0572.stderr b/tests/ui/error-codes/E0572.stderr index 36619f8de..e0f59ec84 100644 --- a/tests/ui/error-codes/E0572.stderr +++ b/tests/ui/error-codes/E0572.stderr @@ -4,6 +4,6 @@ error[E0572]: return statement outside of function body LL | const FOO: u32 = return 0; | ^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0572`. diff --git a/tests/ui/error-codes/E0583.stderr b/tests/ui/error-codes/E0583.stderr index 6707f2864..cad61dde4 100644 --- a/tests/ui/error-codes/E0583.stderr +++ b/tests/ui/error-codes/E0583.stderr @@ -7,6 +7,6 @@ LL | mod module_that_doesnt_exist; = help: to create the module `module_that_doesnt_exist`, create file "$DIR/module_that_doesnt_exist.rs" or "$DIR/module_that_doesnt_exist/mod.rs" = note: if there is a `mod module_that_doesnt_exist` elsewhere in the crate already, import it with `use crate::...` instead -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0583`. diff --git a/tests/ui/error-codes/E0585.stderr b/tests/ui/error-codes/E0585.stderr index 53c82fb41..f0464cc0b 100644 --- a/tests/ui/error-codes/E0585.stderr +++ b/tests/ui/error-codes/E0585.stderr @@ -6,6 +6,6 @@ LL | /// Hello! I'm useless... | = help: doc comments must come before what they document, if a comment was intended use `//` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0585`. diff --git a/tests/ui/error-codes/E0586.stderr b/tests/ui/error-codes/E0586.stderr index 0bbf9a608..f562e358c 100644 --- a/tests/ui/error-codes/E0586.stderr +++ b/tests/ui/error-codes/E0586.stderr @@ -6,6 +6,6 @@ LL | let x = &tmp[1..=]; | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0586`. diff --git a/tests/ui/error-codes/E0594.stderr b/tests/ui/error-codes/E0594.stderr index f4d96f4e4..e010cda83 100644 --- a/tests/ui/error-codes/E0594.stderr +++ b/tests/ui/error-codes/E0594.stderr @@ -4,6 +4,6 @@ error[E0594]: cannot assign to immutable static item `NUM` LL | NUM = 20; | ^^^^^^^^ cannot assign -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0594`. diff --git a/tests/ui/error-codes/E0596.stderr b/tests/ui/error-codes/E0596.stderr index 3f9aebcc8..9f1092d88 100644 --- a/tests/ui/error-codes/E0596.stderr +++ b/tests/ui/error-codes/E0596.stderr @@ -9,6 +9,6 @@ help: consider changing this to be mutable LL | let mut x = 1; | +++ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0596`. diff --git a/tests/ui/error-codes/E0597.stderr b/tests/ui/error-codes/E0597.stderr index 82e3481b6..d3206112b 100644 --- a/tests/ui/error-codes/E0597.stderr +++ b/tests/ui/error-codes/E0597.stderr @@ -14,6 +14,6 @@ LL | } | = note: values in a scope are dropped in the opposite order they are defined -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0597`. diff --git a/tests/ui/error-codes/E0599.stderr b/tests/ui/error-codes/E0599.stderr index a1fb58f48..5c1c71d39 100644 --- a/tests/ui/error-codes/E0599.stderr +++ b/tests/ui/error-codes/E0599.stderr @@ -7,6 +7,6 @@ LL | struct Foo; LL | || if let Foo::NotEvenReal() = Foo {}; | ^^^^^^^^^^^ associated item not found in `Foo` -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/error-codes/E0600.stderr b/tests/ui/error-codes/E0600.stderr index 95ac4510c..a76f2354d 100644 --- a/tests/ui/error-codes/E0600.stderr +++ b/tests/ui/error-codes/E0600.stderr @@ -4,6 +4,6 @@ error[E0600]: cannot apply unary operator `!` to type `&'static str` LL | !"a"; | ^^^^ cannot apply unary operator `!` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0600`. diff --git a/tests/ui/error-codes/E0601.stderr b/tests/ui/error-codes/E0601.stderr index a687f5756..41a4a8f7d 100644 --- a/tests/ui/error-codes/E0601.stderr +++ b/tests/ui/error-codes/E0601.stderr @@ -4,6 +4,6 @@ error[E0601]: `main` function not found in crate `E0601` LL | | ^ consider adding a `main` function to `$DIR/E0601.rs` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0601`. diff --git a/tests/ui/error-codes/E0603.stderr b/tests/ui/error-codes/E0603.stderr index ee902584f..1ac1bbd89 100644 --- a/tests/ui/error-codes/E0603.stderr +++ b/tests/ui/error-codes/E0603.stderr @@ -10,6 +10,6 @@ note: the constant `PRIVATE` is defined here LL | const PRIVATE: u32 = 0x_a_bad_1dea_u32; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0603`. diff --git a/tests/ui/error-codes/E0604.stderr b/tests/ui/error-codes/E0604.stderr index 68da03928..e91f74d6b 100644 --- a/tests/ui/error-codes/E0604.stderr +++ b/tests/ui/error-codes/E0604.stderr @@ -7,6 +7,6 @@ LL | 1u32 as char; | invalid cast | help: try `char::from_u32` instead: `char::from_u32(1u32)` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0604`. diff --git a/tests/ui/error-codes/E0607.stderr b/tests/ui/error-codes/E0607.stderr index a0fe02c1c..835ababf4 100644 --- a/tests/ui/error-codes/E0607.stderr +++ b/tests/ui/error-codes/E0607.stderr @@ -4,6 +4,6 @@ error[E0607]: cannot cast thin pointer `*const u8` to fat pointer `*const [u8]` LL | v as *const [u8]; | ^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0607`. diff --git a/tests/ui/error-codes/E0608.stderr b/tests/ui/error-codes/E0608.stderr index f23f9977b..da7be1478 100644 --- a/tests/ui/error-codes/E0608.stderr +++ b/tests/ui/error-codes/E0608.stderr @@ -4,6 +4,6 @@ error[E0608]: cannot index into a value of type `u8` LL | 0u8[2]; | ^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0608`. diff --git a/tests/ui/error-codes/E0609-private-method.stderr b/tests/ui/error-codes/E0609-private-method.stderr index d2a11e906..c889765be 100644 --- a/tests/ui/error-codes/E0609-private-method.stderr +++ b/tests/ui/error-codes/E0609-private-method.stderr @@ -4,6 +4,6 @@ error[E0609]: no field `method` on type `Foo` LL | f.method; | ^^^^^^ unknown field -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0609`. diff --git a/tests/ui/error-codes/E0609.stderr b/tests/ui/error-codes/E0609.stderr index 797e95d02..cad857553 100644 --- a/tests/ui/error-codes/E0609.stderr +++ b/tests/ui/error-codes/E0609.stderr @@ -4,7 +4,7 @@ error[E0609]: no field `foo` on type `Foo` LL | let _ = x.foo; | ^^^ unknown field | - = note: available fields are: `x` + = note: available field is: `x` error[E0609]: no field `1` on type `Bar` --> $DIR/E0609.rs:11:7 diff --git a/tests/ui/error-codes/E0610.stderr b/tests/ui/error-codes/E0610.stderr index a2966eea4..4263368ff 100644 --- a/tests/ui/error-codes/E0610.stderr +++ b/tests/ui/error-codes/E0610.stderr @@ -4,6 +4,6 @@ error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields LL | let _ = x.foo; | ^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0610`. diff --git a/tests/ui/error-codes/E0614.stderr b/tests/ui/error-codes/E0614.stderr index 598117c2b..ae7c2ce9a 100644 --- a/tests/ui/error-codes/E0614.stderr +++ b/tests/ui/error-codes/E0614.stderr @@ -4,6 +4,6 @@ error[E0614]: type `u32` cannot be dereferenced LL | *y; | ^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0614`. diff --git a/tests/ui/error-codes/E0615.stderr b/tests/ui/error-codes/E0615.stderr index c12e1a3a6..13446a475 100644 --- a/tests/ui/error-codes/E0615.stderr +++ b/tests/ui/error-codes/E0615.stderr @@ -9,6 +9,6 @@ help: use parentheses to call the method LL | f.method(); | ++ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0615`. diff --git a/tests/ui/error-codes/E0616.stderr b/tests/ui/error-codes/E0616.stderr index da349ed2f..73eb64ab4 100644 --- a/tests/ui/error-codes/E0616.stderr +++ b/tests/ui/error-codes/E0616.stderr @@ -4,6 +4,6 @@ error[E0616]: field `x` of struct `Foo` is private LL | f.x; | ^ private field -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0616`. diff --git a/tests/ui/error-codes/E0620.stderr b/tests/ui/error-codes/E0620.stderr index 65152b2b7..5bc890362 100644 --- a/tests/ui/error-codes/E0620.stderr +++ b/tests/ui/error-codes/E0620.stderr @@ -10,6 +10,6 @@ help: consider using an implicit coercion to `&[usize]` instead LL | let _foo = &[1_usize, 2] as [usize]; | ^^^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0620`. diff --git a/tests/ui/error-codes/E0621-does-not-trigger-for-closures.stderr b/tests/ui/error-codes/E0621-does-not-trigger-for-closures.stderr index b9edeb834..2d96926a2 100644 --- a/tests/ui/error-codes/E0621-does-not-trigger-for-closures.stderr +++ b/tests/ui/error-codes/E0621-does-not-trigger-for-closures.stderr @@ -7,5 +7,5 @@ LL | invoke(&x, |a, b| if a > b { a } else { b }); | |return type of closure is &'2 i32 | has type `&'1 i32` -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/error-codes/E0622.stderr b/tests/ui/error-codes/E0622.stderr index 8466dfe38..c59776b21 100644 --- a/tests/ui/error-codes/E0622.stderr +++ b/tests/ui/error-codes/E0622.stderr @@ -4,6 +4,6 @@ error[E0622]: intrinsic must be a function LL | pub static breakpoint : unsafe extern "rust-intrinsic" fn(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a function -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0622`. diff --git a/tests/ui/error-codes/E0624.stderr b/tests/ui/error-codes/E0624.stderr index 23a8ea8a8..b2bc2c92d 100644 --- a/tests/ui/error-codes/E0624.stderr +++ b/tests/ui/error-codes/E0624.stderr @@ -7,6 +7,6 @@ LL | fn method(&self) {} LL | foo.method(); | ^^^^^^ private method -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0624`. diff --git a/tests/ui/error-codes/E0646.stderr b/tests/ui/error-codes/E0646.stderr index 069401b3f..7f8d7ae70 100644 --- a/tests/ui/error-codes/E0646.stderr +++ b/tests/ui/error-codes/E0646.stderr @@ -4,6 +4,6 @@ error[E0646]: `main` function is not allowed to have a `where` clause LL | fn main() where (): Copy {} | ^^^^^^^^^^^^^^ `main` cannot have a `where` clause -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0646`. diff --git a/tests/ui/error-codes/E0647.stderr b/tests/ui/error-codes/E0647.stderr index 9d1ab9671..4b444e5a3 100644 --- a/tests/ui/error-codes/E0647.stderr +++ b/tests/ui/error-codes/E0647.stderr @@ -4,6 +4,6 @@ error[E0647]: `#[start]` function is not allowed to have a `where` clause LL | fn start(_: isize, _: *const *const u8) -> isize where (): Copy { | ^^^^^^^^^^^^^^ `#[start]` function cannot have a `where` clause -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0647`. diff --git a/tests/ui/error-codes/E0648.stderr b/tests/ui/error-codes/E0648.stderr index 1a65825c7..e995e5313 100644 --- a/tests/ui/error-codes/E0648.stderr +++ b/tests/ui/error-codes/E0648.stderr @@ -4,6 +4,6 @@ error[E0648]: `export_name` may not contain null characters LL | #[export_name="\0foo"] | ^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0648`. diff --git a/tests/ui/error-codes/E0658.stderr b/tests/ui/error-codes/E0658.stderr index 8d4234845..686394b6d 100644 --- a/tests/ui/error-codes/E0658.stderr +++ b/tests/ui/error-codes/E0658.stderr @@ -7,6 +7,6 @@ LL | enum Foo { = note: see issue #56071 <https://github.com/rust-lang/rust/issues/56071> for more information = help: add `#![feature(repr128)]` to the crate attributes to enable -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0658`. diff --git a/tests/ui/error-codes/E0659.stderr b/tests/ui/error-codes/E0659.stderr index b0c73c636..dbb72bb67 100644 --- a/tests/ui/error-codes/E0659.stderr +++ b/tests/ui/error-codes/E0659.stderr @@ -18,6 +18,6 @@ LL | pub use earth::*; | ^^^^^^^^ = help: consider adding an explicit import of `foo` to disambiguate -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0659`. diff --git a/tests/ui/error-codes/E0705.rs b/tests/ui/error-codes/E0705.rs deleted file mode 100644 index 05abcb629..000000000 --- a/tests/ui/error-codes/E0705.rs +++ /dev/null @@ -1,10 +0,0 @@ -// check-pass - -// This is a stub feature that doesn't control anything, so to make tidy happy, -// gate-test-test_2018_feature - -#![feature(test_2018_feature)] -//~^ WARN the feature `test_2018_feature` is included in the Rust 2018 edition -#![feature(rust_2018_preview)] - -fn main() {} diff --git a/tests/ui/error-codes/E0705.stderr b/tests/ui/error-codes/E0705.stderr deleted file mode 100644 index 6fa843158..000000000 --- a/tests/ui/error-codes/E0705.stderr +++ /dev/null @@ -1,9 +0,0 @@ -warning[E0705]: the feature `test_2018_feature` is included in the Rust 2018 edition - --> $DIR/E0705.rs:6:12 - | -LL | #![feature(test_2018_feature)] - | ^^^^^^^^^^^^^^^^^ - -warning: 1 warning emitted - -For more information about this error, try `rustc --explain E0705`. diff --git a/tests/ui/error-codes/E0718.stderr b/tests/ui/error-codes/E0718.stderr index 30378dd16..9a3db136d 100644 --- a/tests/ui/error-codes/E0718.stderr +++ b/tests/ui/error-codes/E0718.stderr @@ -4,6 +4,6 @@ error[E0718]: `owned_box` language item must be applied to a struct LL | #[lang = "owned_box"] | ^^^^^^^^^^^^^^^^^^^^^ attribute should be applied to a struct, not a static item -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0718`. diff --git a/tests/ui/error-codes/E0730.stderr b/tests/ui/error-codes/E0730.stderr index 067e8c57c..5e996ac35 100644 --- a/tests/ui/error-codes/E0730.stderr +++ b/tests/ui/error-codes/E0730.stderr @@ -4,6 +4,6 @@ error[E0730]: cannot pattern-match on an array without a fixed length LL | [1, 2, ..] => true, | ^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0730`. diff --git a/tests/ui/error-codes/E0771.stderr b/tests/ui/error-codes/E0771.stderr index 9450c61c2..e1384effe 100644 --- a/tests/ui/error-codes/E0771.stderr +++ b/tests/ui/error-codes/E0771.stderr @@ -15,6 +15,6 @@ LL | #![feature(adt_const_params)] = note: see issue #95174 <https://github.com/rust-lang/rust/issues/95174> for more information = note: `#[warn(incomplete_features)]` 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 E0770`. diff --git a/tests/ui/error-codes/E0778.stderr b/tests/ui/error-codes/E0778.stderr index 42647e5c6..7eb24c493 100644 --- a/tests/ui/error-codes/E0778.stderr +++ b/tests/ui/error-codes/E0778.stderr @@ -4,6 +4,6 @@ error[E0778]: `#[instruction_set]` requires an argument LL | #[instruction_set()] | ^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0778`. diff --git a/tests/ui/error-codes/E0779.stderr b/tests/ui/error-codes/E0779.stderr index 7c6a119a0..a01aa98b9 100644 --- a/tests/ui/error-codes/E0779.stderr +++ b/tests/ui/error-codes/E0779.stderr @@ -4,6 +4,6 @@ error[E0779]: invalid instruction set specified LL | #[instruction_set(arm::magic)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0779`. diff --git a/tests/ui/error-codes/e0119/complex-impl.stderr b/tests/ui/error-codes/e0119/complex-impl.stderr index 654073eec..c0519c60e 100644 --- a/tests/ui/error-codes/e0119/complex-impl.stderr +++ b/tests/ui/error-codes/e0119/complex-impl.stderr @@ -9,6 +9,6 @@ LL | impl<R> External for (Q, R) {} | = note: define and implement a trait or new type instead -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0117`. diff --git a/tests/ui/error-codes/e0119/issue-23563.stderr b/tests/ui/error-codes/e0119/issue-23563.stderr index 1b2d64282..86737742f 100644 --- a/tests/ui/error-codes/e0119/issue-23563.stderr +++ b/tests/ui/error-codes/e0119/issue-23563.stderr @@ -8,6 +8,6 @@ LL | impl<'a, T> LolFrom<&'a [T]> for LocalType<T> { - impl<T, U> LolFrom<T> for U where T: LolInto<U>; -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0119`. diff --git a/tests/ui/error-codes/e0119/issue-27403.stderr b/tests/ui/error-codes/e0119/issue-27403.stderr index 9b3345c23..b0918a3d6 100644 --- a/tests/ui/error-codes/e0119/issue-27403.stderr +++ b/tests/ui/error-codes/e0119/issue-27403.stderr @@ -8,6 +8,6 @@ LL | impl<S> Into<S> for GenX<S> { - impl<T, U> Into<U> for T where U: From<T>; -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0119`. diff --git a/tests/ui/error-codes/e0119/issue-28981.stderr b/tests/ui/error-codes/e0119/issue-28981.stderr index 97b570bc7..be3e4aea5 100644 --- a/tests/ui/error-codes/e0119/issue-28981.stderr +++ b/tests/ui/error-codes/e0119/issue-28981.stderr @@ -7,6 +7,6 @@ LL | impl<Foo> Deref for Foo { } = note: implementing a foreign trait is only possible if at least one of the types for which it is implemented is local = note: only traits defined in the current crate can be implemented for a type parameter -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0210`. diff --git a/tests/ui/error-codes/e0119/so-37347311.stderr b/tests/ui/error-codes/e0119/so-37347311.stderr index 99367e808..869b11b19 100644 --- a/tests/ui/error-codes/e0119/so-37347311.stderr +++ b/tests/ui/error-codes/e0119/so-37347311.stderr @@ -7,6 +7,6 @@ LL | impl<S: Storage> From<S::Error> for MyError<S> { = note: conflicting implementation in crate `core`: - impl<T> From<T> for T; -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0119`. diff --git a/tests/ui/error-codes/ex-E0611.stderr b/tests/ui/error-codes/ex-E0611.stderr index 1da7b33be..fb61eba15 100644 --- a/tests/ui/error-codes/ex-E0611.stderr +++ b/tests/ui/error-codes/ex-E0611.stderr @@ -4,6 +4,6 @@ error[E0616]: field `0` of struct `Foo` is private LL | y.0; | ^ private field -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0616`. diff --git a/tests/ui/error-codes/ex-E0612.stderr b/tests/ui/error-codes/ex-E0612.stderr index b21b6fdfc..23c1697b9 100644 --- a/tests/ui/error-codes/ex-E0612.stderr +++ b/tests/ui/error-codes/ex-E0612.stderr @@ -2,8 +2,13 @@ error[E0609]: no field `1` on type `Foo` --> $DIR/ex-E0612.rs:5:6 | LL | y.1; - | ^ help: a field with a similar name exists: `0` + | ^ unknown field + | +help: a field with a similar name exists + | +LL | y.0; + | ~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0609`. |