diff options
| author | Michael Goulet <michael@errs.io> | 2022-07-08 02:32:51 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-07-15 03:17:21 +0000 |
| commit | 03bfbe1fb3c22567e6e6f2f762945fe7c19f0b49 (patch) | |
| tree | b1af76bdb3a124471fd21d4d9763f9a0282926f3 /src | |
| parent | 78efaf43e4e9ef8864faa3da3a4fe1bd5c45dce1 (diff) | |
| download | rust-03bfbe1fb3c22567e6e6f2f762945fe7c19f0b49.tar.gz rust-03bfbe1fb3c22567e6e6f2f762945fe7c19f0b49.zip | |
Move item_span from check_item_type into each function
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/extern/extern-static-size-overflow.stderr | 6 | ||||
| -rw-r--r-- | src/test/ui/statics/uninhabited-static.stderr | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/test/ui/extern/extern-static-size-overflow.stderr b/src/test/ui/extern/extern-static-size-overflow.stderr index f5173feec75..1c926399591 100644 --- a/src/test/ui/extern/extern-static-size-overflow.stderr +++ b/src/test/ui/extern/extern-static-size-overflow.stderr @@ -2,19 +2,19 @@ error: extern static is too large for the current architecture --> $DIR/extern-static-size-overflow.rs:38:5 | LL | static BAZ: [u8; max_size()]; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: extern static is too large for the current architecture --> $DIR/extern-static-size-overflow.rs:39:5 | LL | static UWU: [usize; usize::MAX]; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: extern static is too large for the current architecture --> $DIR/extern-static-size-overflow.rs:40:5 | LL | static A: ReallyBig; - | ^^^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^^^ error: aborting due to 3 previous errors diff --git a/src/test/ui/statics/uninhabited-static.stderr b/src/test/ui/statics/uninhabited-static.stderr index 10b86bb4986..88ee4cbdc2e 100644 --- a/src/test/ui/statics/uninhabited-static.stderr +++ b/src/test/ui/statics/uninhabited-static.stderr @@ -2,7 +2,7 @@ error: static of uninhabited type --> $DIR/uninhabited-static.rs:6:5 | LL | static VOID: Void; - | ^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^ | note: the lint level is defined here --> $DIR/uninhabited-static.rs:2:9 @@ -17,7 +17,7 @@ error: static of uninhabited type --> $DIR/uninhabited-static.rs:8:5 | LL | static NEVER: !; - | ^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #74840 <https://github.com/rust-lang/rust/issues/74840> |
