diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-04-10 16:40:12 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-04-10 18:10:30 -0700 |
| commit | 3ab97062cfddb6e5e5e32352dd15ca2243aba3ff (patch) | |
| tree | 5b09387f24047ed0a7188be9e3858bdc8f12f2c6 /src/test/ui/error-codes | |
| parent | 96d700f1b7bc9c53fa0d11567adb1ed2c1c27e79 (diff) | |
| download | rust-3ab97062cfddb6e5e5e32352dd15ca2243aba3ff.tar.gz rust-3ab97062cfddb6e5e5e32352dd15ca2243aba3ff.zip | |
Tweak unstable diagnostic output
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0395.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0395.stderr | 3 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0396.stderr | 3 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0658.stderr | 3 |
4 files changed, 9 insertions, 4 deletions
diff --git a/src/test/ui/error-codes/E0395.rs b/src/test/ui/error-codes/E0395.rs index 9657bbdeadc..bbefff27d7f 100644 --- a/src/test/ui/error-codes/E0395.rs +++ b/src/test/ui/error-codes/E0395.rs @@ -3,6 +3,8 @@ static FOO: i32 = 42; static BAR: i32 = 42; -static BAZ: bool = unsafe { (&FOO as *const i32) == (&BAR as *const i32) }; //~ ERROR issue #53020 +static BAZ: bool = unsafe { (&FOO as *const i32) == (&BAR as *const i32) }; +//~^ ERROR comparing raw pointers inside static + fn main() { } diff --git a/src/test/ui/error-codes/E0395.stderr b/src/test/ui/error-codes/E0395.stderr index 9d80acb515d..87976ba9872 100644 --- a/src/test/ui/error-codes/E0395.stderr +++ b/src/test/ui/error-codes/E0395.stderr @@ -1,9 +1,10 @@ -error[E0658]: comparing raw pointers inside static (see issue #53020) +error[E0658]: comparing raw pointers inside static --> $DIR/E0395.rs:6:29 | LL | static BAZ: bool = unsafe { (&FOO as *const i32) == (&BAR as *const i32) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | + = note: for more information, see tracking issue #53020 = help: add #![feature(const_compare_raw_pointers)] to the crate attributes to enable error: aborting due to previous error diff --git a/src/test/ui/error-codes/E0396.stderr b/src/test/ui/error-codes/E0396.stderr index 1006ff6dc54..cd65f6d4c02 100644 --- a/src/test/ui/error-codes/E0396.stderr +++ b/src/test/ui/error-codes/E0396.stderr @@ -1,9 +1,10 @@ -error[E0658]: dereferencing raw pointers in constants is unstable (see issue #51911) +error[E0658]: dereferencing raw pointers in constants is unstable --> $DIR/E0396.rs:5:28 | LL | const VALUE: u8 = unsafe { *REG_ADDR }; | ^^^^^^^^^ | + = note: for more information, see tracking issue #51911 = help: add #![feature(const_raw_ptr_deref)] to the crate attributes to enable error: aborting due to previous error diff --git a/src/test/ui/error-codes/E0658.stderr b/src/test/ui/error-codes/E0658.stderr index 292c49fa84e..47ec1548168 100644 --- a/src/test/ui/error-codes/E0658.stderr +++ b/src/test/ui/error-codes/E0658.stderr @@ -1,4 +1,4 @@ -error[E0658]: repr with 128-bit type is unstable (see issue #35118) +error[E0658]: repr with 128-bit type is unstable --> $DIR/E0658.rs:2:1 | LL | / enum Foo { @@ -6,6 +6,7 @@ LL | | Bar(u64), LL | | } | |_^ | + = note: for more information, see tracking issue #35118 = help: add #![feature(repr128)] to the crate attributes to enable error: aborting due to previous error |
