Skip to content

Commit

Permalink
RUST_NEW_ERROR_FORMAT is no more
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn committed Aug 16, 2016
1 parent 13ff307 commit d52eb1a
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 41 deletions.
1 change: 0 additions & 1 deletion src/test/ui/codemap_tests/empty_span.rs
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT
#![feature(optin_builtin_traits)]
fn main() {
struct Foo;
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/codemap_tests/empty_span.stderr
@@ -1,7 +1,7 @@
error[E0321]: cross-crate traits with a default impl, like `std::marker::Send`, can only be implemented for a struct/enum type, not `&'static main::Foo`
--> $DIR/empty_span.rs:18:5
--> $DIR/empty_span.rs:17:5
|
18 | unsafe impl Send for &'static Foo { }
17 | unsafe impl Send for &'static Foo { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error
Expand Down
7 changes: 2 additions & 5 deletions src/test/ui/codemap_tests/huge_multispan_highlight.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT

fn main() {
let x = "foo";

Expand Down Expand Up @@ -96,9 +94,8 @@ fn main() {




let y = &mut x;
}



let y = &mut x;
}
2 changes: 1 addition & 1 deletion src/test/ui/codemap_tests/huge_multispan_highlight.stderr
@@ -1,7 +1,7 @@
error: cannot borrow immutable local variable `x` as mutable
--> $DIR/huge_multispan_highlight.rs:100:18
|
14 | let x = "foo";
12 | let x = "foo";
| - use `mut x` here to make mutable
...
100 | let y = &mut x;
Expand Down
5 changes: 1 addition & 4 deletions src/test/ui/codemap_tests/issue-11715.rs
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT




Expand Down Expand Up @@ -99,6 +99,3 @@ fn main() {
let y = &mut x;
let z = &mut x;
}



2 changes: 0 additions & 2 deletions src/test/ui/codemap_tests/one_line.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT

fn main() {
let mut v = vec![Some("foo"), Some("bar")];
v.push(v.pop().unwrap());
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/codemap_tests/one_line.stderr
@@ -1,7 +1,7 @@
error[E0499]: cannot borrow `v` as mutable more than once at a time
--> $DIR/one_line.rs:15:12
--> $DIR/one_line.rs:13:12
|
15 | v.push(v.pop().unwrap());
13 | v.push(v.pop().unwrap());
| - ^ - first borrow ends here
| | |
| | second mutable borrow occurs here
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/codemap_tests/overlapping_spans.rs
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT
#[derive(Debug)]
struct Foo { }

Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/codemap_tests/overlapping_spans.stderr
@@ -1,7 +1,7 @@
error[E0509]: cannot move out of type `S`, which implements the `Drop` trait
--> $DIR/overlapping_spans.rs:22:9
--> $DIR/overlapping_spans.rs:21:9
|
22 | S {f:_s} => {}
21 | S {f:_s} => {}
| ^^^^^--^
| | |
| | hint: to prevent move, use `ref _s` or `ref mut _s`
Expand Down
3 changes: 1 addition & 2 deletions src/test/ui/codemap_tests/tab.rs
Expand Up @@ -8,9 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT
// ignore-tidy-tab

fn main() {
bar;
}

1 change: 0 additions & 1 deletion src/test/ui/codemap_tests/two_files.rs
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT
include!("two_files_data.rs");

struct Baz { }
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/codemap_tests/two_files.stderr
@@ -1,7 +1,7 @@
error[E0404]: `Bar` is not a trait
--> $DIR/two_files.rs:16:6
--> $DIR/two_files.rs:15:6
|
16 | impl Bar for Baz { }
15 | impl Bar for Baz { }
| ^^^ not a trait
|
= note: type aliases cannot be used for traits
Expand Down
3 changes: 1 addition & 2 deletions src/test/ui/codemap_tests/two_files_data.rs
Expand Up @@ -8,9 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT
// ignore-test

trait Foo { }

type Bar = Foo;

1 change: 0 additions & 1 deletion src/test/ui/codemap_tests/unicode.rs
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT
extern "路濫狼á́́" fn foo() {}

fn main() { }
4 changes: 2 additions & 2 deletions src/test/ui/codemap_tests/unicode.stderr
@@ -1,7 +1,7 @@
error: invalid ABI: expected one of [cdecl, stdcall, fastcall, vectorcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call, platform-intrinsic], found `路濫狼á́́`
--> $DIR/unicode.rs:12:8
--> $DIR/unicode.rs:11:8
|
12 | extern "路濫狼á́́" fn foo() {}
11 | extern "路濫狼á́́" fn foo() {}
| ^^^^^^^^

error: aborting due to previous error
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/mismatched_types/issue-26480.rs
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT
extern {
fn write(fildes: i32, buf: *const i8, nbyte: u64) -> i64;
}
Expand Down
12 changes: 6 additions & 6 deletions src/test/ui/mismatched_types/issue-26480.stderr
@@ -1,16 +1,16 @@
error[E0308]: mismatched types
--> $DIR/issue-26480.rs:27:19
--> $DIR/issue-26480.rs:26:19
|
27 | $arr.len() * size_of($arr[0]));
26 | $arr.len() * size_of($arr[0]));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u64, found usize
$DIR/issue-26480.rs:38:5: 38:19 note: in this expansion of write! (defined in $DIR/issue-26480.rs)
$DIR/issue-26480.rs:37:5: 37:19 note: in this expansion of write! (defined in $DIR/issue-26480.rs)

error: non-scalar cast: `{integer}` as `()`
--> $DIR/issue-26480.rs:33:19
--> $DIR/issue-26480.rs:32:19
|
33 | ($x:expr) => ($x as ())
32 | ($x:expr) => ($x as ())
| ^^^^^^^^
$DIR/issue-26480.rs:39:5: 39:14 note: in this expansion of cast! (defined in $DIR/issue-26480.rs)
$DIR/issue-26480.rs:38:5: 38:14 note: in this expansion of cast! (defined in $DIR/issue-26480.rs)

error: aborting due to 2 previous errors

2 changes: 0 additions & 2 deletions src/test/ui/mismatched_types/main.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// rustc-env:RUST_NEW_ERROR_FORMAT

fn main() {
let x: u32 = (
);
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/mismatched_types/main.stderr
@@ -1,7 +1,7 @@
error[E0308]: mismatched types
--> $DIR/main.rs:14:18
--> $DIR/main.rs:12:18
|
14 | let x: u32 = (
12 | let x: u32 = (
| ^ expected u32, found ()
|
= note: expected type `u32`
Expand Down

0 comments on commit d52eb1a

Please sign in to comment.