Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 13, 2018
1 parent 8c75e18 commit 2e104a7
Show file tree
Hide file tree
Showing 1,044 changed files with 1,153 additions and 1,163 deletions.
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr
Expand Up @@ -21,4 +21,4 @@ LL | #[allow(test_lint)]

error: aborting due to 2 previous errors

If you want more information on this error, try using "rustc --explain E0453"
For more information about this error, try `rustc --explain E0453`.
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/proc-macro/signature.stderr
Expand Up @@ -12,4 +12,4 @@ LL | | }

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
2 changes: 1 addition & 1 deletion src/test/ui/anonymous-higher-ranked-lifetime.stderr
Expand Up @@ -154,4 +154,4 @@ LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<Fn(&())>, &'t0 (), fn(&(), &()

error: aborting due to 11 previous errors

If you want more information on this error, try using "rustc --explain E0631"
For more information about this error, try `rustc --explain E0631`.
2 changes: 1 addition & 1 deletion src/test/ui/arbitrary-self-types-not-object-safe.stderr
Expand Up @@ -17,4 +17,4 @@ LL | let x = Box::new(5usize) as Box<Foo>;

error: aborting due to 2 previous errors

If you want more information on this error, try using "rustc --explain E0038"
For more information about this error, try `rustc --explain E0038`.
2 changes: 1 addition & 1 deletion src/test/ui/asm-out-assign-imm.stderr
Expand Up @@ -9,4 +9,4 @@ LL | asm!("mov $1, $0" : "=r"(x) : "r"(5));

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0384"
For more information about this error, try `rustc --explain E0384`.
2 changes: 1 addition & 1 deletion src/test/ui/associated-const-impl-wrong-lifetime.stderr
Expand Up @@ -15,4 +15,4 @@ LL | impl<'a> Foo for &'a () {

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
2 changes: 1 addition & 1 deletion src/test/ui/associated-const-impl-wrong-type.stderr
Expand Up @@ -9,4 +9,4 @@ LL | const BAR: i32 = -1;

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0326"
For more information about this error, try `rustc --explain E0326`.
Expand Up @@ -42,5 +42,5 @@ LL | fn paint<C:BoxCar>(c: C, d: C::Color) {

error: aborting due to 4 previous errors

You've got a few errors: E0191, E0221
If you want more information on an error, try using "rustc --explain E0191"
Some errors occurred: E0191, E0221.
For more information about an error, try `rustc --explain E0191`.
Expand Up @@ -6,4 +6,4 @@ LL | r = r + a;

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0277"
For more information about this error, try `rustc --explain E0277`.
2 changes: 1 addition & 1 deletion src/test/ui/associated-types-in-ambiguous-context.stderr
Expand Up @@ -24,4 +24,4 @@ LL | fn grab(&self) -> Grab::Value;

error: aborting due to 3 previous errors

If you want more information on this error, try using "rustc --explain E0223"
For more information about this error, try `rustc --explain E0223`.
2 changes: 1 addition & 1 deletion src/test/ui/attr-usage-repr.stderr
Expand Up @@ -40,4 +40,4 @@ LL | enum ESimd { A, B }

error: aborting due to 5 previous errors

If you want more information on this error, try using "rustc --explain E0517"
For more information about this error, try `rustc --explain E0517`.
4 changes: 2 additions & 2 deletions src/test/ui/augmented-assignments.stderr
Expand Up @@ -20,5 +20,5 @@ LL | x; //~ value moved here

error: aborting due to 2 previous errors

You've got a few errors: E0382, E0596
If you want more information on an error, try using "rustc --explain E0382"
Some errors occurred: E0382, E0596.
For more information about an error, try `rustc --explain E0382`.
2 changes: 1 addition & 1 deletion src/test/ui/binary-op-on-double-ref.stderr
Expand Up @@ -9,4 +9,4 @@ LL | x % 2 == 0

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0369"
For more information about this error, try `rustc --explain E0369`.
2 changes: 1 addition & 1 deletion src/test/ui/blind-item-item-shadow.stderr
Expand Up @@ -15,4 +15,4 @@ LL | use foo::foo as other_foo;

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0255"
For more information about this error, try `rustc --explain E0255`.
Expand Up @@ -9,4 +9,4 @@ LL | true //~ ERROR mismatched types

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
Expand Up @@ -11,4 +11,4 @@ LL | true //~ ERROR mismatched types

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
Expand Up @@ -9,4 +9,4 @@ LL | true //~ ERROR mismatched types

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
Expand Up @@ -28,4 +28,4 @@ LL | | }

error: aborting due to 2 previous errors

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
2 changes: 1 addition & 1 deletion src/test/ui/block-result/issue-11714.stderr
Expand Up @@ -15,4 +15,4 @@ LL | | }

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
2 changes: 1 addition & 1 deletion src/test/ui/block-result/issue-13428.stderr
Expand Up @@ -31,4 +31,4 @@ LL | | }

error: aborting due to 2 previous errors

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
2 changes: 1 addition & 1 deletion src/test/ui/block-result/issue-13624.stderr
Expand Up @@ -20,4 +20,4 @@ LL | a::Enum::EnumStructVariant { x, y, z } => {

error: aborting due to 2 previous errors

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
4 changes: 2 additions & 2 deletions src/test/ui/block-result/issue-20862.stderr
Expand Up @@ -17,5 +17,5 @@ LL | let x = foo(5)(2);

error: aborting due to 2 previous errors

You've got a few errors: E0308, E0618
If you want more information on an error, try using "rustc --explain E0308"
Some errors occurred: E0308, E0618.
For more information about an error, try `rustc --explain E0308`.
4 changes: 2 additions & 2 deletions src/test/ui/block-result/issue-22645.stderr
Expand Up @@ -22,5 +22,5 @@ LL | b + 3 //~ ERROR E0277

error: aborting due to 2 previous errors

You've got a few errors: E0277, E0308
If you want more information on an error, try using "rustc --explain E0277"
Some errors occurred: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
2 changes: 1 addition & 1 deletion src/test/ui/block-result/issue-3563.stderr
Expand Up @@ -8,4 +8,4 @@ LL | || self.b()

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0599"
For more information about this error, try `rustc --explain E0599`.
2 changes: 1 addition & 1 deletion src/test/ui/block-result/issue-5500.stderr
Expand Up @@ -11,4 +11,4 @@ LL | &panic!()

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
2 changes: 1 addition & 1 deletion src/test/ui/block-result/unexpected-return-on-unit.stderr
Expand Up @@ -17,4 +17,4 @@ LL | fn bar() -> usize {

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
2 changes: 1 addition & 1 deletion src/test/ui/bogus-tag.stderr
Expand Up @@ -9,4 +9,4 @@ LL | color::hsl(h, s, l) => { println!("hsl"); }

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0599"
For more information about this error, try `rustc --explain E0599`.
4 changes: 2 additions & 2 deletions src/test/ui/borrowck/borrowck-box-insensitivity.stderr
Expand Up @@ -161,5 +161,5 @@ LL | }

error: aborting due to 16 previous errors

You've got a few errors: E0382, E0502, E0503, E0505
If you want more information on an error, try using "rustc --explain E0382"
Some errors occurred: E0382, E0502, E0503, E0505.
For more information about an error, try `rustc --explain E0382`.
2 changes: 1 addition & 1 deletion src/test/ui/borrowck/borrowck-closures-two-mut.stderr
Expand Up @@ -150,4 +150,4 @@ LL | }

error: aborting due to 10 previous errors

If you want more information on this error, try using "rustc --explain E0499"
For more information about this error, try `rustc --explain E0499`.
Expand Up @@ -12,4 +12,4 @@ LL | spawn(move || books.push(4));

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0373"
For more information about this error, try `rustc --explain E0373`.
Expand Up @@ -12,4 +12,4 @@ LL | Box::new(move || books.push(4))

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0373"
For more information about this error, try `rustc --explain E0373`.
2 changes: 1 addition & 1 deletion src/test/ui/borrowck/borrowck-in-static.stderr
Expand Up @@ -8,4 +8,4 @@ LL | Box::new(|| x) //~ ERROR cannot move out of captured outer variable

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0507"
For more information about this error, try `rustc --explain E0507`.
4 changes: 2 additions & 2 deletions src/test/ui/borrowck/borrowck-move-error-with-note.stderr
Expand Up @@ -34,5 +34,5 @@ LL | n => {

error: aborting due to 3 previous errors

You've got a few errors: E0507, E0509
If you want more information on an error, try using "rustc --explain E0507"
Some errors occurred: E0507, E0509.
For more information about an error, try `rustc --explain E0507`.
2 changes: 1 addition & 1 deletion src/test/ui/borrowck/borrowck-move-out-of-vec-tail.stderr
Expand Up @@ -15,4 +15,4 @@ LL | | Foo { string: b }] => {

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0508"
For more information about this error, try `rustc --explain E0508`.
2 changes: 1 addition & 1 deletion src/test/ui/borrowck/borrowck-reinit.stderr
Expand Up @@ -20,4 +20,4 @@ LL | let _ = (1,x); //~ ERROR use of moved value: `x` (Ast)

error: aborting due to 2 previous errors

If you want more information on this error, try using "rustc --explain E0382"
For more information about this error, try `rustc --explain E0382`.
Expand Up @@ -36,5 +36,5 @@ LL | };

error: aborting due to 3 previous errors

You've got a few errors: E0499, E0502
If you want more information on an error, try using "rustc --explain E0499"
Some errors occurred: E0499, E0502.
For more information about an error, try `rustc --explain E0499`.
4 changes: 2 additions & 2 deletions src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr
Expand Up @@ -80,5 +80,5 @@ LL | let a = vec[0]; //~ ERROR cannot move out

error: aborting due to 8 previous errors

You've got a few errors: E0506, E0508
If you want more information on an error, try using "rustc --explain E0506"
Some errors occurred: E0506, E0508.
For more information about an error, try `rustc --explain E0506`.
2 changes: 1 addition & 1 deletion src/test/ui/borrowck/immutable-arg.stderr
Expand Up @@ -16,4 +16,4 @@ LL | _x = 4;

error: aborting due to 2 previous errors

If you want more information on this error, try using "rustc --explain E0384"
For more information about this error, try `rustc --explain E0384`.
2 changes: 1 addition & 1 deletion src/test/ui/borrowck/issue-41962.stderr
Expand Up @@ -54,4 +54,4 @@ LL | if let Some(thing) = maybe {

error: aborting due to 5 previous errors

If you want more information on this error, try using "rustc --explain E0382"
For more information about this error, try `rustc --explain E0382`.
2 changes: 1 addition & 1 deletion src/test/ui/borrowck/mut-borrow-in-loop.stderr
Expand Up @@ -27,4 +27,4 @@ LL | }

error: aborting due to 3 previous errors

If you want more information on this error, try using "rustc --explain E0499"
For more information about this error, try `rustc --explain E0499`.
2 changes: 1 addition & 1 deletion src/test/ui/borrowck/mut-borrow-outside-loop.stderr
Expand Up @@ -21,4 +21,4 @@ LL | }

error: aborting due to 2 previous errors

If you want more information on this error, try using "rustc --explain E0499"
For more information about this error, try `rustc --explain E0499`.
Expand Up @@ -46,5 +46,5 @@ LL | fn another_bound<'x: 't>(self, x: Inv<'x>, y: Inv<'t>) {

error: aborting due to 4 previous errors

You've got a few errors: E0195, E0276, E0308
If you want more information on an error, try using "rustc --explain E0195"
Some errors occurred: E0195, E0276, E0308.
For more information about an error, try `rustc --explain E0195`.
Expand Up @@ -9,4 +9,4 @@ LL | y.into_iter();

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0507"
For more information about this error, try `rustc --explain E0507`.
2 changes: 1 addition & 1 deletion src/test/ui/cast-as-bool.stderr
Expand Up @@ -8,4 +8,4 @@ LL | let u = 5 as bool;

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0054"
For more information about this error, try `rustc --explain E0054`.
2 changes: 1 addition & 1 deletion src/test/ui/cast-errors-issue-43825.stderr
Expand Up @@ -6,4 +6,4 @@ LL | let error = error; //~ ERROR cannot find value `error`

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0425"
For more information about this error, try `rustc --explain E0425`.
2 changes: 1 addition & 1 deletion src/test/ui/cast-rfc0401-2.stderr
Expand Up @@ -8,4 +8,4 @@ LL | let _ = 3 as bool;

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0054"
For more information about this error, try `rustc --explain E0054`.
2 changes: 1 addition & 1 deletion src/test/ui/cast-to-unsized-trait-object-suggestion.stderr
Expand Up @@ -16,4 +16,4 @@ LL | Box::new(1) as Send; //~ ERROR cast to unsized

error: aborting due to 2 previous errors

If you want more information on this error, try using "rustc --explain E0620"
For more information about this error, try `rustc --explain E0620`.
2 changes: 1 addition & 1 deletion src/test/ui/casts-differing-anon.stderr
Expand Up @@ -8,4 +8,4 @@ LL | b_raw = f_raw as *mut _; //~ ERROR is invalid

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0606"
For more information about this error, try `rustc --explain E0606`.
2 changes: 1 addition & 1 deletion src/test/ui/casts-issue-46365.stderr
Expand Up @@ -6,4 +6,4 @@ LL | ipsum: Ipsum //~ ERROR cannot find type `Ipsum`

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0412"
For more information about this error, try `rustc --explain E0412`.
2 changes: 1 addition & 1 deletion src/test/ui/changing-crates.stderr
Expand Up @@ -11,4 +11,4 @@ LL | extern crate b; //~ ERROR: found possibly newer version of crate `a` which

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0460"
For more information about this error, try `rustc --explain E0460`.
2 changes: 1 addition & 1 deletion src/test/ui/check_match/issue-35609.stderr
Expand Up @@ -48,4 +48,4 @@ LL | match Some(A) { //~ ERROR non-exhaustive

error: aborting due to 8 previous errors

If you want more information on this error, try using "rustc --explain E0004"
For more information about this error, try `rustc --explain E0004`.
Expand Up @@ -84,4 +84,4 @@ LL | f = Some(x);

error: aborting due to 5 previous errors

If you want more information on this error, try using "rustc --explain E0308"
For more information about this error, try `rustc --explain E0308`.
2 changes: 1 addition & 1 deletion src/test/ui/closure_context/issue-26046-fn-mut.stderr
Expand Up @@ -11,4 +11,4 @@ LL | Box::new(closure)

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0525"
For more information about this error, try `rustc --explain E0525`.
2 changes: 1 addition & 1 deletion src/test/ui/closure_context/issue-26046-fn-once.stderr
Expand Up @@ -11,4 +11,4 @@ LL | Box::new(closure)

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0525"
For more information about this error, try `rustc --explain E0525`.
2 changes: 1 addition & 1 deletion src/test/ui/closure_context/issue-42065.stderr
Expand Up @@ -14,4 +14,4 @@ LL | for (key, value) in dict {

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0382"
For more information about this error, try `rustc --explain E0382`.
Expand Up @@ -8,4 +8,4 @@ LL | impl C { fn f() {} }

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0592"
For more information about this error, try `rustc --explain E0592`.
2 changes: 1 addition & 1 deletion src/test/ui/codemap_tests/empty_span.stderr
Expand Up @@ -6,4 +6,4 @@ LL | unsafe impl Send for &'static Foo { } //~ ERROR cross-crate traits with

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0321"
For more information about this error, try `rustc --explain E0321`.
2 changes: 1 addition & 1 deletion src/test/ui/codemap_tests/huge_multispan_highlight.stderr
Expand Up @@ -9,4 +9,4 @@ LL | let y = &mut x; //~ ERROR cannot borrow

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0596"
For more information about this error, try `rustc --explain E0596`.
2 changes: 1 addition & 1 deletion src/test/ui/codemap_tests/issue-11715.stderr
Expand Up @@ -10,4 +10,4 @@ LL | }

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0499"
For more information about this error, try `rustc --explain E0499`.
2 changes: 1 addition & 1 deletion src/test/ui/codemap_tests/issue-28308.stderr
Expand Up @@ -8,4 +8,4 @@ LL | assert!("foo");

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0600"
For more information about this error, try `rustc --explain E0600`.
2 changes: 1 addition & 1 deletion src/test/ui/codemap_tests/one_line.stderr
Expand Up @@ -9,4 +9,4 @@ LL | v.push(v.pop().unwrap()); //~ ERROR cannot borrow

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0499"
For more information about this error, try `rustc --explain E0499`.
Expand Up @@ -29,4 +29,4 @@ LL | fn baz(&self) {}

error: aborting due to 3 previous errors

If you want more information on this error, try using "rustc --explain E0592"
For more information about this error, try `rustc --explain E0592`.
2 changes: 1 addition & 1 deletion src/test/ui/codemap_tests/overlapping_spans.stderr
Expand Up @@ -9,4 +9,4 @@ LL | S {f:_s} => {} //~ ERROR cannot move out

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0509"
For more information about this error, try `rustc --explain E0509`.

0 comments on commit 2e104a7

Please sign in to comment.