Skip to content

Commit aa71057

Browse files
authored
Rollup merge of rust-lang#66049 - RalfJung:missing-spans, r=alexcrichton
consistent handling of missing sysroot spans Due to rust-lang#53081, sysroot spans (pointing to code in libcore/libstd/...) fails to print on some x86 runners. This consolidates the ignore directives for that and references the relevant issue. I also did that for the generated derive-error-span tests -- but there the script and the tests were not entirely in sync any more since rust-lang#64151. Cc @estebank @varkor
2 parents 9430418 + 1808968 commit aa71057

File tree

86 files changed

+114
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+114
-106
lines changed

src/etc/generate-deriving-span-tests.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
os.path.join(os.path.dirname(__file__), '../test/ui/derives/'))
1515

1616
TEMPLATE = """\
17-
// ignore-x86
18-
// ^ due to stderr output differences
17+
// ignore-x86 FIXME: missing sysroot spans (#53081)
1918
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
2019
2120
{error_deriving}

src/test/ui/async-await/issues/issue-62009-1.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// edition:2018
2-
// ignore-x86
3-
// ^ due to stderr output differences
2+
// ignore-x86 FIXME: missing sysroot spans (#53081)
43

54
async fn print_dur() {}
65

src/test/ui/async-await/issues/issue-62009-1.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0728]: `await` is only allowed inside `async` functions and blocks
2-
--> $DIR/issue-62009-1.rs:8:5
2+
--> $DIR/issue-62009-1.rs:7:5
33
|
44
LL | fn main() {
55
| ---- this is not `async`
66
LL | async { let (); }.await;
77
| ^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks
88

99
error[E0728]: `await` is only allowed inside `async` functions and blocks
10-
--> $DIR/issue-62009-1.rs:10:5
10+
--> $DIR/issue-62009-1.rs:9:5
1111
|
1212
LL | fn main() {
1313
| ---- this is not `async`
@@ -19,19 +19,19 @@ LL | | }.await;
1919
| |___________^ only allowed inside `async` functions and blocks
2020

2121
error[E0728]: `await` is only allowed inside `async` functions and blocks
22-
--> $DIR/issue-62009-1.rs:14:5
22+
--> $DIR/issue-62009-1.rs:13:5
2323
|
2424
LL | fn main() {
2525
| ---- this is not `async`
2626
...
2727
LL | (|_| 2333).await;
2828
| ^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks
2929

30-
error[E0277]: the trait bound `[closure@$DIR/issue-62009-1.rs:14:5: 14:15]: std::future::Future` is not satisfied
31-
--> $DIR/issue-62009-1.rs:14:5
30+
error[E0277]: the trait bound `[closure@$DIR/issue-62009-1.rs:13:5: 13:15]: std::future::Future` is not satisfied
31+
--> $DIR/issue-62009-1.rs:13:5
3232
|
3333
LL | (|_| 2333).await;
34-
| ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:14:5: 14:15]`
34+
| ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:13:5: 13:15]`
3535
|
3636
::: $SRC_DIR/libstd/future.rs:LL:COL
3737
|

src/test/ui/closures/closure-move-sync.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// ignore-x86
2-
// ^ due to stderr output differences
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
32
use std::thread;
43
use std::sync::mpsc::channel;
54

src/test/ui/closures/closure-move-sync.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
2-
--> $DIR/closure-move-sync.rs:8:13
2+
--> $DIR/closure-move-sync.rs:7:13
33
|
44
LL | let t = thread::spawn(|| {
55
| ^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
@@ -11,10 +11,10 @@ LL | F: FnOnce() -> T, F: Send + 'static, T: Send + 'static
1111
|
1212
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Receiver<()>`
1313
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Receiver<()>`
14-
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:8:27: 11:6 recv:&std::sync::mpsc::Receiver<()>]`
14+
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:7:27: 10:6 recv:&std::sync::mpsc::Receiver<()>]`
1515

1616
error[E0277]: `std::sync::mpsc::Sender<()>` cannot be shared between threads safely
17-
--> $DIR/closure-move-sync.rs:20:5
17+
--> $DIR/closure-move-sync.rs:19:5
1818
|
1919
LL | thread::spawn(|| tx.send(()).unwrap());
2020
| ^^^^^^^^^^^^^ `std::sync::mpsc::Sender<()>` cannot be shared between threads safely
@@ -26,7 +26,7 @@ LL | F: FnOnce() -> T, F: Send + 'static, T: Send + 'static
2626
|
2727
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Sender<()>`
2828
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Sender<()>`
29-
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:20:19: 20:42 tx:&std::sync::mpsc::Sender<()>]`
29+
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:19:19: 19:42 tx:&std::sync::mpsc::Sender<()>]`
3030

3131
error: aborting due to 2 previous errors
3232

src/test/ui/consts/const-size_of-cycle.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// ignore-musl
2-
// ignore-x86
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
32
// error-pattern: cycle detected
43

54
struct Foo {

src/test/ui/consts/const-size_of-cycle.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0391]: cycle detected when const-evaluating + checking `Foo::bytes::{{constant}}#0`
2-
--> $DIR/const-size_of-cycle.rs:6:17
2+
--> $DIR/const-size_of-cycle.rs:5:17
33
|
44
LL | bytes: [u8; std::mem::size_of::<Foo>()]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: ...which requires const-evaluating + checking `Foo::bytes::{{constant}}#0`...
8-
--> $DIR/const-size_of-cycle.rs:6:17
8+
--> $DIR/const-size_of-cycle.rs:5:17
99
|
1010
LL | bytes: [u8; std::mem::size_of::<Foo>()]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL | pub fn size_of<T>() -> usize;
2323
= note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All, def_id: None }, value: [u8; _] }`...
2424
= note: ...which again requires const-evaluating + checking `Foo::bytes::{{constant}}#0`, completing the cycle
2525
note: cycle used when processing `Foo`
26-
--> $DIR/const-size_of-cycle.rs:5:1
26+
--> $DIR/const-size_of-cycle.rs:4:1
2727
|
2828
LL | struct Foo {
2929
| ^^^^^^^^^^

src/test/ui/derives/derives-span-Clone-enum-struct-variant.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Clone-enum-struct-variant.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::clone::Clone` is not satisfied
2-
--> $DIR/derives-span-Clone-enum-struct-variant.rs:9:6
2+
--> $DIR/derives-span-Clone-enum-struct-variant.rs:10:6
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::clone::Clone` is not implemented for `Error`

src/test/ui/derives/derives-span-Clone-enum.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Clone-enum.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::clone::Clone` is not satisfied
2-
--> $DIR/derives-span-Clone-enum.rs:9:6
2+
--> $DIR/derives-span-Clone-enum.rs:10:6
33
|
44
LL | Error
55
| ^^^^^ the trait `std::clone::Clone` is not implemented for `Error`

src/test/ui/derives/derives-span-Clone-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Clone-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::clone::Clone` is not satisfied
2-
--> $DIR/derives-span-Clone-struct.rs:8:5
2+
--> $DIR/derives-span-Clone-struct.rs:9:5
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::clone::Clone` is not implemented for `Error`

src/test/ui/derives/derives-span-Clone-tuple-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Clone-tuple-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::clone::Clone` is not satisfied
2-
--> $DIR/derives-span-Clone-tuple-struct.rs:8:5
2+
--> $DIR/derives-span-Clone-tuple-struct.rs:9:5
33
|
44
LL | Error
55
| ^^^^^ the trait `std::clone::Clone` is not implemented for `Error`

src/test/ui/derives/derives-span-Debug-enum-struct-variant.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Debug-enum-struct-variant.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: `Error` doesn't implement `std::fmt::Debug`
2-
--> $DIR/derives-span-Debug-enum-struct-variant.rs:9:6
2+
--> $DIR/derives-span-Debug-enum-struct-variant.rs:10:6
33
|
44
LL | x: Error
55
| ^^^^^^^^ `Error` cannot be formatted using `{:?}`

src/test/ui/derives/derives-span-Debug-enum.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Debug-enum.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: `Error` doesn't implement `std::fmt::Debug`
2-
--> $DIR/derives-span-Debug-enum.rs:9:6
2+
--> $DIR/derives-span-Debug-enum.rs:10:6
33
|
44
LL | Error
55
| ^^^^^ `Error` cannot be formatted using `{:?}`

src/test/ui/derives/derives-span-Debug-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Debug-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: `Error` doesn't implement `std::fmt::Debug`
2-
--> $DIR/derives-span-Debug-struct.rs:8:5
2+
--> $DIR/derives-span-Debug-struct.rs:9:5
33
|
44
LL | x: Error
55
| ^^^^^^^^ `Error` cannot be formatted using `{:?}`

src/test/ui/derives/derives-span-Debug-tuple-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Debug-tuple-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: `Error` doesn't implement `std::fmt::Debug`
2-
--> $DIR/derives-span-Debug-tuple-struct.rs:8:5
2+
--> $DIR/derives-span-Debug-tuple-struct.rs:9:5
33
|
44
LL | Error
55
| ^^^^^ `Error` cannot be formatted using `{:?}`

src/test/ui/derives/derives-span-Default-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Default-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::default::Default` is not satisfied
2-
--> $DIR/derives-span-Default-struct.rs:8:5
2+
--> $DIR/derives-span-Default-struct.rs:9:5
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::default::Default` is not implemented for `Error`

src/test/ui/derives/derives-span-Default-tuple-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34

src/test/ui/derives/derives-span-Default-tuple-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::default::Default` is not satisfied
2-
--> $DIR/derives-span-Default-tuple-struct.rs:8:5
2+
--> $DIR/derives-span-Default-tuple-struct.rs:9:5
33
|
44
LL | Error
55
| ^^^^^ the trait `std::default::Default` is not implemented for `Error`

src/test/ui/derives/derives-span-Eq-enum-struct-variant.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34
#[derive(PartialEq)]

src/test/ui/derives/derives-span-Eq-enum-struct-variant.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::cmp::Eq` is not satisfied
2-
--> $DIR/derives-span-Eq-enum-struct-variant.rs:9:6
2+
--> $DIR/derives-span-Eq-enum-struct-variant.rs:10:6
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`

src/test/ui/derives/derives-span-Eq-enum.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34
#[derive(PartialEq)]

src/test/ui/derives/derives-span-Eq-enum.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::cmp::Eq` is not satisfied
2-
--> $DIR/derives-span-Eq-enum.rs:9:6
2+
--> $DIR/derives-span-Eq-enum.rs:10:6
33
|
44
LL | Error
55
| ^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`

src/test/ui/derives/derives-span-Eq-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34
#[derive(PartialEq)]

src/test/ui/derives/derives-span-Eq-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::cmp::Eq` is not satisfied
2-
--> $DIR/derives-span-Eq-struct.rs:8:5
2+
--> $DIR/derives-span-Eq-struct.rs:9:5
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`

src/test/ui/derives/derives-span-Eq-tuple-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34
#[derive(PartialEq)]

src/test/ui/derives/derives-span-Eq-tuple-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::cmp::Eq` is not satisfied
2-
--> $DIR/derives-span-Eq-tuple-struct.rs:8:5
2+
--> $DIR/derives-span-Eq-tuple-struct.rs:9:5
33
|
44
LL | Error
55
| ^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`

src/test/ui/derives/derives-span-Hash-enum-struct-variant.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// ignore-x86
2-
// ^ due to stderr output differences
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
32
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
43

54

src/test/ui/derives/derives-span-Hash-enum-struct-variant.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
2-
--> $DIR/derives-span-Hash-enum-struct-variant.rs:11:6
2+
--> $DIR/derives-span-Hash-enum-struct-variant.rs:10:6
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`

src/test/ui/derives/derives-span-Hash-enum.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// ignore-x86
2-
// ^ due to stderr output differences
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
32
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
43

54

src/test/ui/derives/derives-span-Hash-enum.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
2-
--> $DIR/derives-span-Hash-enum.rs:11:6
2+
--> $DIR/derives-span-Hash-enum.rs:10:6
33
|
44
LL | Error
55
| ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`

src/test/ui/derives/derives-span-Hash-struct.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// ignore-x86
2-
// ^ due to stderr output differences
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
32
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
43

54

src/test/ui/derives/derives-span-Hash-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
2-
--> $DIR/derives-span-Hash-struct.rs:10:5
2+
--> $DIR/derives-span-Hash-struct.rs:9:5
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`

src/test/ui/derives/derives-span-Hash-tuple-struct.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// ignore-x86
2-
// ^ due to stderr output differences
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
32
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
43

54

src/test/ui/derives/derives-span-Hash-tuple-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
2-
--> $DIR/derives-span-Hash-tuple-struct.rs:10:5
2+
--> $DIR/derives-span-Hash-tuple-struct.rs:9:5
33
|
44
LL | Error
55
| ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`

src/test/ui/derives/derives-span-Ord-enum-struct-variant.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34
#[derive(Eq,PartialOrd,PartialEq)]

src/test/ui/derives/derives-span-Ord-enum-struct-variant.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::cmp::Ord` is not satisfied
2-
--> $DIR/derives-span-Ord-enum-struct-variant.rs:9:6
2+
--> $DIR/derives-span-Ord-enum-struct-variant.rs:10:6
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`

src/test/ui/derives/derives-span-Ord-enum.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34
#[derive(Eq,PartialOrd,PartialEq)]

src/test/ui/derives/derives-span-Ord-enum.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::cmp::Ord` is not satisfied
2-
--> $DIR/derives-span-Ord-enum.rs:9:6
2+
--> $DIR/derives-span-Ord-enum.rs:10:6
33
|
44
LL | Error
55
| ^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`

src/test/ui/derives/derives-span-Ord-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34
#[derive(Eq,PartialOrd,PartialEq)]

src/test/ui/derives/derives-span-Ord-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::cmp::Ord` is not satisfied
2-
--> $DIR/derives-span-Ord-struct.rs:8:5
2+
--> $DIR/derives-span-Ord-struct.rs:9:5
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`

src/test/ui/derives/derives-span-Ord-tuple-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
12
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
23

34
#[derive(Eq,PartialOrd,PartialEq)]

src/test/ui/derives/derives-span-Ord-tuple-struct.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::cmp::Ord` is not satisfied
2-
--> $DIR/derives-span-Ord-tuple-struct.rs:8:5
2+
--> $DIR/derives-span-Ord-tuple-struct.rs:9:5
33
|
44
LL | Error
55
| ^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`

0 commit comments

Comments
 (0)