Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Mar 16, 2018
1 parent 910bf84 commit b1d872b
Show file tree
Hide file tree
Showing 33 changed files with 68 additions and 15 deletions.
2 changes: 2 additions & 0 deletions src/test/ui-fulldeps/custom-derive/issue-36935.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ LL | #[derive(Foo, Bar)] //~ ERROR proc-macro derive panicked
|
= help: message: lolnope

error: aborting due to previous error

2 changes: 2 additions & 0 deletions src/test/ui-fulldeps/proc-macro/load-panic.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ LL | #[derive(A)]
|
= help: message: nope!

error: aborting due to previous error

3 changes: 2 additions & 1 deletion src/test/ui/codemap_tests/two_files.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ error[E0404]: expected trait, found type alias `Bar`
LL | impl Bar for Baz { } //~ ERROR expected trait, found type alias
| ^^^ type aliases cannot be used for traits

error: cannot continue compilation due to previous error
error: aborting due to previous error

For more information about this error, try `rustc --explain E0404`.
2 changes: 2 additions & 0 deletions src/test/ui/cross-file-errors/main.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ LL | _
LL | underscore!();
| -------------- in this macro invocation

error: aborting due to previous error

2 changes: 2 additions & 0 deletions src/test/ui/did_you_mean/recursion_limit_macro.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ LL | recurse!(0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9);
|
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate

error: aborting due to previous error

3 changes: 2 additions & 1 deletion src/test/ui/error-codes/E0404.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ error[E0404]: expected trait, found struct `Foo`
LL | fn baz<T: Foo>(_: T) {} //~ ERROR E0404
| ^^^ not a trait

error: cannot continue compilation due to previous error
error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0404`.
3 changes: 2 additions & 1 deletion src/test/ui/error-codes/E0405.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ error[E0405]: cannot find trait `SomeTrait` in this scope
LL | impl SomeTrait for Foo {} //~ ERROR E0405
| ^^^^^^^^^ not found in this scope

error: cannot continue compilation due to previous error
error: aborting due to previous error

For more information about this error, try `rustc --explain E0405`.
2 changes: 2 additions & 0 deletions src/test/ui/feature-gate-fn_must_use-cap-lints-allow.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ error: compilation successful
LL | fn main() {} //~ ERROR compilation successful
| ^^^^^^^^^^^^

error: aborting due to previous error

2 changes: 2 additions & 0 deletions src/test/ui/feature-gate-fn_must_use.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ error: compilation successful
LL | fn main() {} //~ ERROR compilation successful
| ^^^^^^^^^^^^

error: aborting due to previous error

Original file line number Diff line number Diff line change
Expand Up @@ -1316,3 +1316,5 @@ LL | | println!("Hello World");
LL | | }
| |_^

error: aborting due to previous error

Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ LL | | println!("Hello World");
LL | | }
| |_^

error: aborting due to previous error

4 changes: 3 additions & 1 deletion src/test/ui/impl-trait/universal_wrong_bounds.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ help: possible candidate is found in another module, you can import it into scop
LL | use std::fmt::Debug;
|

error: cannot continue compilation due to previous error
error: aborting due to 3 previous errors

Some errors occurred: E0405, E0425.
For more information about an error, try `rustc --explain E0405`.
2 changes: 2 additions & 0 deletions src/test/ui/issue-22644.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,5 @@ error: expected type, found `4`
LL | println!("{}", a: &mut 4); //~ ERROR expected type, found `4`
| ^ expecting a type here because of type ascription

error: aborting due to 9 previous errors

2 changes: 2 additions & 0 deletions src/test/ui/issue-44406.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ LL | bar(baz: $rest)
LL | foo!(true); //~ ERROR expected type, found keyword
| ^^^^ expecting a type here because of type ascription

error: aborting due to 2 previous errors

2 changes: 2 additions & 0 deletions src/test/ui/lint-output-format-2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ LL | | let _y = bar();
LL | | }
| |_^

error: aborting due to previous error

2 changes: 2 additions & 0 deletions src/test/ui/loops-reject-duplicate-labels-2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ LL | | foo();
LL | | }
| |_^

error: aborting due to previous error

2 changes: 2 additions & 0 deletions src/test/ui/loops-reject-duplicate-labels.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ LL | | foo();
LL | | }
| |_^

error: aborting due to previous error

2 changes: 2 additions & 0 deletions src/test/ui/loops-reject-labels-shadowing-lifetimes.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,5 @@ LL | | foo();
LL | | }
| |_^

error: aborting due to previous error

2 changes: 2 additions & 0 deletions src/test/ui/loops-reject-lifetime-shadowing-label.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ LL | | foo();
LL | | }
| |_^

error: aborting due to previous error

2 changes: 2 additions & 0 deletions src/test/ui/macro-context.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ LL | () => ( i ; typeof ); //~ ERROR expected expression, found reserved k
LL | m!();
| ----- in this macro invocation

error: aborting due to 4 previous errors

3 changes: 2 additions & 1 deletion src/test/ui/macros/macro_path_as_generic_bound.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ error[E0433]: failed to resolve. Use of undeclared type or module `m`
LL | foo!(m::m2::A); //~ ERROR failed to resolve
| ^ Use of undeclared type or module `m`

error: cannot continue compilation due to previous error
error: aborting due to previous error

For more information about this error, try `rustc --explain E0433`.
2 changes: 2 additions & 0 deletions src/test/ui/macros/trace_faulty_macros.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ LL | my_recursive_macro!();
= note: expanding `my_recursive_macro! { }`
= note: to `my_recursive_macro ! ( ) ;`

error: aborting due to 2 previous errors

2 changes: 2 additions & 0 deletions src/test/ui/raw_string.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ LL | let x = r##"lol"#;
|
= note: this raw string should be terminated with `"##`

error: aborting due to previous error

4 changes: 3 additions & 1 deletion src/test/ui/resolve/issue-21221-1.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@ help: possible candidate is found in another module, you can import it into scop
LL | use std::ops::Div;
|

error: cannot continue compilation due to previous error
error: aborting due to 4 previous errors

Some errors occurred: E0405, E0412.
For more information about an error, try `rustc --explain E0405`.
3 changes: 2 additions & 1 deletion src/test/ui/resolve/issue-21221-2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ help: possible candidate is found in another module, you can import it into scop
LL | use foo::bar::T;
|

error: cannot continue compilation due to previous error
error: aborting due to previous error

For more information about this error, try `rustc --explain E0405`.
3 changes: 2 additions & 1 deletion src/test/ui/resolve/issue-21221-3.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ help: possible candidate is found in another module, you can import it into scop
LL | use issue_21221_3::outer::OuterTrait;
|

error: cannot continue compilation due to previous error
error: aborting due to previous error

For more information about this error, try `rustc --explain E0405`.
3 changes: 2 additions & 1 deletion src/test/ui/resolve/issue-21221-4.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ help: possible candidate is found in another module, you can import it into scop
LL | use issue_21221_4::T;
|

error: cannot continue compilation due to previous error
error: aborting due to previous error

For more information about this error, try `rustc --explain E0405`.
3 changes: 2 additions & 1 deletion src/test/ui/resolve/issue-3907.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ help: possible better candidate is found in another module, you can import it in
LL | use issue_3907::Foo;
|

error: cannot continue compilation due to previous error
error: aborting due to previous error

For more information about this error, try `rustc --explain E0404`.
4 changes: 3 additions & 1 deletion src/test/ui/resolve/issue-5035.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ LL | impl K for isize {} //~ ERROR expected trait, found type alias `K`
| did you mean `I`?
| type aliases cannot be used for traits

error: cannot continue compilation due to previous error
error: aborting due to 2 previous errors

Some errors occurred: E0404, E0432.
For more information about an error, try `rustc --explain E0404`.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ error[E0404]: expected trait, found type alias `Typedef`
LL | fn g<F:Typedef(isize) -> isize>(x: F) {}
| ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used for traits

error: cannot continue compilation due to previous error
error: aborting due to 2 previous errors

Some errors occurred: E0404, E0405.
For more information about an error, try `rustc --explain E0404`.
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
error: cannot continue compilation due to previous error

2 changes: 2 additions & 0 deletions src/test/ui/span/issue-24690.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ LL | | println!("{}", theTwo);
LL | | }
| |_^

error: aborting due to previous error

3 changes: 2 additions & 1 deletion src/test/ui/span/issue-35987.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ help: possible better candidate is found in another module, you can import it in
LL | use std::ops::Add;
|

error: cannot continue compilation due to previous error
error: aborting due to previous error

For more information about this error, try `rustc --explain E0404`.

0 comments on commit b1d872b

Please sign in to comment.