mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 20:34:06 +00:00
tests: remove ignore directives from tests that mention core/alloc/std spans.
This commit is contained in:
parent
f5892c00ac
commit
8deff18529
@ -15,9 +15,6 @@ TEST_DIR = os.path.abspath(
|
||||
os.path.join(os.path.dirname(__file__), '../test/ui/derives/'))
|
||||
|
||||
TEMPLATE = """\
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
{error_deriving}
|
||||
|
@ -1,8 +1,4 @@
|
||||
// edition:2018
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
async fn print_dur() {}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0728]: `await` is only allowed inside `async` functions and blocks
|
||||
--> $DIR/issue-62009-1.rs:10:5
|
||||
--> $DIR/issue-62009-1.rs:6:5
|
||||
|
|
||||
LL | fn main() {
|
||||
| ---- this is not `async`
|
||||
@ -7,7 +7,7 @@ LL | async { let (); }.await;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks
|
||||
|
||||
error[E0728]: `await` is only allowed inside `async` functions and blocks
|
||||
--> $DIR/issue-62009-1.rs:12:5
|
||||
--> $DIR/issue-62009-1.rs:8:5
|
||||
|
|
||||
LL | fn main() {
|
||||
| ---- this is not `async`
|
||||
@ -19,7 +19,7 @@ LL | | }.await;
|
||||
| |___________^ only allowed inside `async` functions and blocks
|
||||
|
||||
error[E0728]: `await` is only allowed inside `async` functions and blocks
|
||||
--> $DIR/issue-62009-1.rs:16:5
|
||||
--> $DIR/issue-62009-1.rs:12:5
|
||||
|
|
||||
LL | fn main() {
|
||||
| ---- this is not `async`
|
||||
@ -27,11 +27,11 @@ LL | fn main() {
|
||||
LL | (|_| 2333).await;
|
||||
| ^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks
|
||||
|
||||
error[E0277]: the trait bound `[closure@$DIR/issue-62009-1.rs:16:5: 16:15]: std::future::Future` is not satisfied
|
||||
--> $DIR/issue-62009-1.rs:16:5
|
||||
error[E0277]: the trait bound `[closure@$DIR/issue-62009-1.rs:12:5: 12:15]: std::future::Future` is not satisfied
|
||||
--> $DIR/issue-62009-1.rs:12:5
|
||||
|
|
||||
LL | (|_| 2333).await;
|
||||
| ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:16:5: 16:15]`
|
||||
| ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:12:5: 12:15]`
|
||||
|
|
||||
::: $SRC_DIR/libcore/future/mod.rs:LL:COL
|
||||
|
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
use std::thread;
|
||||
use std::sync::mpsc::channel;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
|
||||
--> $DIR/closure-move-sync.rs:10:13
|
||||
--> $DIR/closure-move-sync.rs:6:13
|
||||
|
|
||||
LL | let t = thread::spawn(|| {
|
||||
| ^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
|
||||
@ -11,10 +11,10 @@ LL | F: Send + 'static,
|
||||
|
|
||||
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Receiver<()>`
|
||||
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Receiver<()>`
|
||||
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:10:27: 13:6 recv:&std::sync::mpsc::Receiver<()>]`
|
||||
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:6:27: 9:6 recv:&std::sync::mpsc::Receiver<()>]`
|
||||
|
||||
error[E0277]: `std::sync::mpsc::Sender<()>` cannot be shared between threads safely
|
||||
--> $DIR/closure-move-sync.rs:22:5
|
||||
--> $DIR/closure-move-sync.rs:18:5
|
||||
|
|
||||
LL | thread::spawn(|| tx.send(()).unwrap());
|
||||
| ^^^^^^^^^^^^^ `std::sync::mpsc::Sender<()>` cannot be shared between threads safely
|
||||
@ -26,7 +26,7 @@ LL | F: Send + 'static,
|
||||
|
|
||||
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Sender<()>`
|
||||
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Sender<()>`
|
||||
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:22:19: 22:42 tx:&std::sync::mpsc::Sender<()>]`
|
||||
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:18:19: 18:42 tx:&std::sync::mpsc::Sender<()>]`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// error-pattern: cycle detected
|
||||
|
||||
struct Foo {
|
||||
|
@ -1,16 +1,16 @@
|
||||
error[E0391]: cycle detected when const-evaluating + checking `Foo::bytes::{{constant}}#0`
|
||||
--> $DIR/const-size_of-cycle.rs:8:17
|
||||
--> $DIR/const-size_of-cycle.rs:4:17
|
||||
|
|
||||
LL | bytes: [u8; std::mem::size_of::<Foo>()]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: ...which requires const-evaluating + checking `Foo::bytes::{{constant}}#0`...
|
||||
--> $DIR/const-size_of-cycle.rs:8:17
|
||||
--> $DIR/const-size_of-cycle.rs:4:17
|
||||
|
|
||||
LL | bytes: [u8; std::mem::size_of::<Foo>()]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: ...which requires const-evaluating `Foo::bytes::{{constant}}#0`...
|
||||
--> $DIR/const-size_of-cycle.rs:8:17
|
||||
--> $DIR/const-size_of-cycle.rs:4:17
|
||||
|
|
||||
LL | bytes: [u8; std::mem::size_of::<Foo>()]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@ -28,7 +28,7 @@ LL | pub fn size_of<T>() -> usize;
|
||||
= note: ...which requires normalizing `[u8; _]`...
|
||||
= note: ...which again requires const-evaluating + checking `Foo::bytes::{{constant}}#0`, completing the cycle
|
||||
note: cycle used when processing `Foo`
|
||||
--> $DIR/const-size_of-cycle.rs:7:1
|
||||
--> $DIR/const-size_of-cycle.rs:3:1
|
||||
|
|
||||
LL | struct Foo {
|
||||
| ^^^^^^^^^^
|
||||
|
@ -1,8 +1,4 @@
|
||||
// compile-flags: -Zunleash-the-miri-inside-of-you
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// error-pattern: calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
|
||||
#![deny(const_err)]
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
warning: skipping const checks
|
||||
--> $DIR/drop.rs:21:9
|
||||
--> $DIR/drop.rs:17:9
|
||||
|
|
||||
LL | let _v: Vec<i32> = Vec::new();
|
||||
| ^^
|
||||
@ -17,10 +17,10 @@ LL | | }
|
||||
| |_calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
|
||||
| inside `std::intrinsics::drop_in_place::<std::vec::Vec<i32>> - shim(Some(std::vec::Vec<i32>))` at $SRC_DIR/libcore/ptr/mod.rs:LL:COL
|
||||
|
|
||||
::: $DIR/drop.rs:23:1
|
||||
::: $DIR/drop.rs:19:1
|
||||
|
|
||||
LL | };
|
||||
| - inside `TEST_BAD` at $DIR/drop.rs:23:1
|
||||
| - inside `TEST_BAD` at $DIR/drop.rs:19:1
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -1,8 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
#![feature(const_raw_ptr_deref)]
|
||||
#![feature(const_ptr_offset_from)]
|
||||
#![feature(ptr_offset_from)]
|
||||
|
@ -6,9 +6,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
|
||||
| |
|
||||
| ptr_offset_from cannot compute offset of pointers into different allocations.
|
||||
| inside `std::ptr::const_ptr::<impl *const Struct>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
|
||||
| inside `DIFFERENT_ALLOC` at $DIR/offset_from_ub.rs:22:27
|
||||
| inside `DIFFERENT_ALLOC` at $DIR/offset_from_ub.rs:17:27
|
||||
|
|
||||
::: $DIR/offset_from_ub.rs:16:1
|
||||
::: $DIR/offset_from_ub.rs:11:1
|
||||
|
|
||||
LL | / pub const DIFFERENT_ALLOC: usize = {
|
||||
LL | |
|
||||
@ -29,9 +29,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
|
||||
| |
|
||||
| unable to turn bytes into a pointer
|
||||
| inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
|
||||
| inside `NOT_PTR` at $DIR/offset_from_ub.rs:28:14
|
||||
| inside `NOT_PTR` at $DIR/offset_from_ub.rs:23:14
|
||||
|
|
||||
::: $DIR/offset_from_ub.rs:26:1
|
||||
::: $DIR/offset_from_ub.rs:21:1
|
||||
|
|
||||
LL | / pub const NOT_PTR: usize = {
|
||||
LL | |
|
||||
@ -47,9 +47,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
|
||||
| |
|
||||
| exact_div: 1isize cannot be divided by 2isize without remainder
|
||||
| inside `std::ptr::const_ptr::<impl *const u16>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
|
||||
| inside `NOT_MULTIPLE_OF_SIZE` at $DIR/offset_from_ub.rs:36:14
|
||||
| inside `NOT_MULTIPLE_OF_SIZE` at $DIR/offset_from_ub.rs:31:14
|
||||
|
|
||||
::: $DIR/offset_from_ub.rs:31:1
|
||||
::: $DIR/offset_from_ub.rs:26:1
|
||||
|
|
||||
LL | / pub const NOT_MULTIPLE_OF_SIZE: isize = {
|
||||
LL | |
|
||||
@ -68,9 +68,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
|
||||
| |
|
||||
| invalid use of NULL pointer
|
||||
| inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
|
||||
| inside `OFFSET_FROM_NULL` at $DIR/offset_from_ub.rs:42:14
|
||||
| inside `OFFSET_FROM_NULL` at $DIR/offset_from_ub.rs:37:14
|
||||
|
|
||||
::: $DIR/offset_from_ub.rs:39:1
|
||||
::: $DIR/offset_from_ub.rs:34:1
|
||||
|
|
||||
LL | / pub const OFFSET_FROM_NULL: isize = {
|
||||
LL | |
|
||||
@ -87,9 +87,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
|
||||
| |
|
||||
| unable to turn bytes into a pointer
|
||||
| inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
|
||||
| inside `DIFFERENT_INT` at $DIR/offset_from_ub.rs:49:14
|
||||
| inside `DIFFERENT_INT` at $DIR/offset_from_ub.rs:44:14
|
||||
|
|
||||
::: $DIR/offset_from_ub.rs:45:1
|
||||
::: $DIR/offset_from_ub.rs:40:1
|
||||
|
|
||||
LL | / pub const DIFFERENT_INT: isize = { // offset_from with two different integers: like DIFFERENT_ALLOC
|
||||
LL | |
|
||||
|
@ -1,8 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Foo {
|
||||
i: isize,
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0599]: no method named `clone` found for struct `Foo` in the current scope
|
||||
--> $DIR/copy-a-resource.rs:23:16
|
||||
--> $DIR/copy-a-resource.rs:18:16
|
||||
|
|
||||
LL | struct Foo {
|
||||
| ---------- method `clone` not found for this
|
||||
|
@ -1,8 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
trait Foo {
|
||||
type X;
|
||||
fn method(&self) {}
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0599]: no method named `clone` found for struct `Bar<NotClone>` in the current scope
|
||||
--> $DIR/derive-assoc-type-not-impl.rs:23:30
|
||||
--> $DIR/derive-assoc-type-not-impl.rs:18:30
|
||||
|
|
||||
LL | struct Bar<T: Foo> {
|
||||
| ------------------
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::clone::Clone` is not satisfied
|
||||
--> $DIR/derives-span-Clone-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-Clone-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `std::clone::Clone` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::clone::Clone` is not satisfied
|
||||
--> $DIR/derives-span-Clone-enum.rs:13:6
|
||||
--> $DIR/derives-span-Clone-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ the trait `std::clone::Clone` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::clone::Clone` is not satisfied
|
||||
--> $DIR/derives-span-Clone-struct.rs:12:5
|
||||
--> $DIR/derives-span-Clone-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `std::clone::Clone` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::clone::Clone` is not satisfied
|
||||
--> $DIR/derives-span-Clone-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-Clone-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ the trait `std::clone::Clone` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: `Error` doesn't implement `std::fmt::Debug`
|
||||
--> $DIR/derives-span-Debug-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-Debug-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ `Error` cannot be formatted using `{:?}`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: `Error` doesn't implement `std::fmt::Debug`
|
||||
--> $DIR/derives-span-Debug-enum.rs:13:6
|
||||
--> $DIR/derives-span-Debug-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ `Error` cannot be formatted using `{:?}`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: `Error` doesn't implement `std::fmt::Debug`
|
||||
--> $DIR/derives-span-Debug-struct.rs:12:5
|
||||
--> $DIR/derives-span-Debug-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ `Error` cannot be formatted using `{:?}`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: `Error` doesn't implement `std::fmt::Debug`
|
||||
--> $DIR/derives-span-Debug-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-Debug-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ `Error` cannot be formatted using `{:?}`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::default::Default` is not satisfied
|
||||
--> $DIR/derives-span-Default-struct.rs:12:5
|
||||
--> $DIR/derives-span-Default-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `std::default::Default` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::default::Default` is not satisfied
|
||||
--> $DIR/derives-span-Default-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-Default-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ the trait `std::default::Default` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::cmp::Eq` is not satisfied
|
||||
--> $DIR/derives-span-Eq-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-Eq-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::cmp::Eq` is not satisfied
|
||||
--> $DIR/derives-span-Eq-enum.rs:13:6
|
||||
--> $DIR/derives-span-Eq-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::cmp::Eq` is not satisfied
|
||||
--> $DIR/derives-span-Eq-struct.rs:12:5
|
||||
--> $DIR/derives-span-Eq-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::cmp::Eq` is not satisfied
|
||||
--> $DIR/derives-span-Eq-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-Eq-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
|
||||
--> $DIR/derives-span-Hash-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-Hash-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
struct Error;
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
|
||||
--> $DIR/derives-span-Hash-enum.rs:12:6
|
||||
--> $DIR/derives-span-Hash-enum.rs:8:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
|
||||
--> $DIR/derives-span-Hash-struct.rs:12:5
|
||||
--> $DIR/derives-span-Hash-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
|
||||
--> $DIR/derives-span-Hash-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-Hash-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(Eq,PartialOrd,PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::cmp::Ord` is not satisfied
|
||||
--> $DIR/derives-span-Ord-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-Ord-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(Eq,PartialOrd,PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::cmp::Ord` is not satisfied
|
||||
--> $DIR/derives-span-Ord-enum.rs:13:6
|
||||
--> $DIR/derives-span-Ord-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(Eq,PartialOrd,PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::cmp::Ord` is not satisfied
|
||||
--> $DIR/derives-span-Ord-struct.rs:12:5
|
||||
--> $DIR/derives-span-Ord-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(Eq,PartialOrd,PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Error: std::cmp::Ord` is not satisfied
|
||||
--> $DIR/derives-span-Ord-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-Ord-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0369]: binary operation `==` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-PartialEq-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^
|
||||
@ -8,7 +8,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0369]: binary operation `!=` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-PartialEq-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0369]: binary operation `==` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-enum.rs:13:6
|
||||
--> $DIR/derives-span-PartialEq-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^
|
||||
@ -8,7 +8,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0369]: binary operation `!=` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-enum.rs:13:6
|
||||
--> $DIR/derives-span-PartialEq-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0369]: binary operation `==` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialEq-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^
|
||||
@ -8,7 +8,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0369]: binary operation `!=` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialEq-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0369]: binary operation `==` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialEq-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^
|
||||
@ -8,7 +8,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0369]: binary operation `!=` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialEq-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -9,7 +9,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -19,7 +19,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -29,7 +29,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -39,7 +39,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:9:6
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -9,7 +9,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -19,7 +19,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -29,7 +29,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -39,7 +39,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:13:6
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:9:6
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -9,7 +9,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -19,7 +19,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -29,7 +29,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -39,7 +39,7 @@ LL | x: Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:8:5
|
||||
|
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -9,7 +9,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -19,7 +19,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -29,7 +29,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
@ -39,7 +39,7 @@ LL | Error
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:12:5
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:8:5
|
||||
|
|
||||
LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
#[derive(Eqr)]
|
||||
//~^ ERROR cannot find derive macro `Eqr` in this scope
|
||||
//~| ERROR cannot find derive macro `Eqr` in this scope
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: cannot find derive macro `Eqr` in this scope
|
||||
--> $DIR/deriving-meta-unknown-trait.rs:5:10
|
||||
--> $DIR/deriving-meta-unknown-trait.rs:1:10
|
||||
|
|
||||
LL | #[derive(Eqr)]
|
||||
| ^^^ help: a derive macro with a similar name exists: `Eq`
|
||||
@ -10,7 +10,7 @@ LL | pub macro Eq($item:item) {
|
||||
| ------------------------ similarly named derive macro `Eq` defined here
|
||||
|
||||
error: cannot find derive macro `Eqr` in this scope
|
||||
--> $DIR/deriving-meta-unknown-trait.rs:5:10
|
||||
--> $DIR/deriving-meta-unknown-trait.rs:1:10
|
||||
|
|
||||
LL | #[derive(Eqr)]
|
||||
| ^^^ help: a derive macro with a similar name exists: `Eq`
|
||||
|
@ -1,8 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
fn main() {
|
||||
let x = Some(1);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0004]: non-exhaustive patterns: `None` and `Some(_)` not covered
|
||||
--> $DIR/E0004-2.rs:9:11
|
||||
--> $DIR/E0004-2.rs:4:11
|
||||
|
|
||||
LL | match x { }
|
||||
| ^ patterns `None` and `Some(_)` not covered
|
||||
|
@ -1,8 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
fn main() {
|
||||
let x = Some(1);
|
||||
let Some(y) = x; //~ ERROR E0005
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0005]: refutable pattern in local binding: `None` not covered
|
||||
--> $DIR/E0005.rs:8:9
|
||||
--> $DIR/E0005.rs:3:9
|
||||
|
|
||||
LL | let Some(y) = x;
|
||||
| ^^^^^^^ pattern `None` not covered
|
||||
|
@ -1,8 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
fn main() {
|
||||
let xs : Vec<Option<i32>> = vec![Some(1), None];
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0005]: refutable pattern in `for` loop binding: `None` not covered
|
||||
--> $DIR/E0297.rs:9:9
|
||||
--> $DIR/E0297.rs:4:9
|
||||
|
|
||||
LL | for Some(x) in xs {}
|
||||
| ^^^^^^^ pattern `None` not covered
|
||||
|
@ -1,8 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
#![feature(never_type)]
|
||||
|
||||
fn foo() -> Result<u32, !> {
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0005]: refutable pattern in local binding: `Err(_)` not covered
|
||||
--> $DIR/feature-gate-exhaustive-patterns.rs:13:9
|
||||
--> $DIR/feature-gate-exhaustive-patterns.rs:8:9
|
||||
|
|
||||
LL | let Ok(_x) = foo();
|
||||
| ^^^^^^ pattern `Err(_)` not covered
|
||||
|
@ -1,8 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
#![allow(incomplete_features)]
|
||||
#![feature(generic_associated_types)]
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0271]: type mismatch resolving `for<'a> <<std::vec::Vec<T> as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <std::vec::Vec<T> as Iterable>::Item<'a>`
|
||||
--> $DIR/iterable.rs:20:5
|
||||
--> $DIR/iterable.rs:15:5
|
||||
|
|
||||
LL | impl<T> Iterable for Vec<T> {
|
||||
| --------------------------- in this `impl` item
|
||||
@ -17,7 +17,7 @@ LL | type Item;
|
||||
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
|
||||
|
||||
error[E0271]: type mismatch resolving `for<'a> <<[T] as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <[T] as Iterable>::Item<'a>`
|
||||
--> $DIR/iterable.rs:32:5
|
||||
--> $DIR/iterable.rs:27:5
|
||||
|
|
||||
LL | impl<T> Iterable for [T] {
|
||||
| ------------------------ in this `impl` item
|
||||
@ -35,7 +35,7 @@ LL | type Item;
|
||||
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
|
||||
|
||||
error[E0271]: type mismatch resolving `for<'a> <<std::vec::Vec<T> as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <std::vec::Vec<T> as Iterable>::Item<'a>`
|
||||
--> $DIR/iterable.rs:24:30
|
||||
--> $DIR/iterable.rs:19:30
|
||||
|
|
||||
LL | trait Iterable {
|
||||
| -------------- required by `Iterable`
|
||||
@ -49,7 +49,7 @@ LL | fn iter<'a>(&'a self) -> Self::Iter<'a> {
|
||||
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
|
||||
|
||||
error[E0271]: type mismatch resolving `for<'a> <<[T] as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <[T] as Iterable>::Item<'a>`
|
||||
--> $DIR/iterable.rs:36:30
|
||||
--> $DIR/iterable.rs:31:30
|
||||
|
|
||||
LL | trait Iterable {
|
||||
| -------------- required by `Iterable`
|
||||
|
@ -1,8 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
|
||||
use std::fmt::Debug;
|
||||
|
||||
trait Foo {
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0643]: method `foo` has incompatible signature for trait
|
||||
--> $DIR/impl-generic-mismatch.rs:13:12
|
||||
--> $DIR/impl-generic-mismatch.rs:8:12
|
||||
|
|
||||
LL | fn foo(&self, _: &impl Debug);
|
||||
| ---------- declaration in trait here
|
||||
@ -13,7 +13,7 @@ LL | fn foo(&self, _: &impl Debug) { }
|
||||
| -- ^^^^^^^^^^
|
||||
|
||||
error[E0643]: method `bar` has incompatible signature for trait
|
||||
--> $DIR/impl-generic-mismatch.rs:22:23
|
||||
--> $DIR/impl-generic-mismatch.rs:17:23
|
||||
|
|
||||
LL | fn bar<U: Debug>(&self, _: &U);
|
||||
| - declaration in trait here
|
||||
@ -27,7 +27,7 @@ LL | fn bar<U: Debug>(&self, _: &U) { }
|
||||
| ^^^^^^^^^^ ^
|
||||
|
||||
error[E0643]: method `hash` has incompatible signature for trait
|
||||
--> $DIR/impl-generic-mismatch.rs:33:33
|
||||
--> $DIR/impl-generic-mismatch.rs:28:33
|
||||
|
|
||||
LL | fn hash(&self, hasher: &mut impl Hasher) {}
|
||||
| ^^^^^^^^^^^ expected generic parameter, found `impl Trait`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
// aux-build:two_macros.rs
|
||||
|
||||
macro_rules! define_vec {
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|
||||
--> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:23:9
|
||||
--> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:19:9
|
||||
|
|
||||
LL | extern crate std as core;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@ -10,13 +10,13 @@ LL | define_other_core!();
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0659]: `Vec` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
|
||||
--> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:17:9
|
||||
--> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:13:9
|
||||
|
|
||||
LL | Vec::panic!();
|
||||
| ^^^ ambiguous name
|
||||
|
|
||||
note: `Vec` could refer to the crate imported here
|
||||
--> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:9:9
|
||||
--> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:5:9
|
||||
|
|
||||
LL | extern crate std as Vec;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
use std::ops::Deref;
|
||||
trait Trait {}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: `impl` item signature doesn't match `trait` item signature
|
||||
--> $DIR/mismatched_trait_impl-2.rs:12:5
|
||||
--> $DIR/mismatched_trait_impl-2.rs:8:5
|
||||
|
|
||||
LL | fn deref(&self) -> &dyn Trait {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found fn(&Struct) -> &dyn Trait
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
use std::cell::Cell;
|
||||
use std::panic::catch_unwind;
|
||||
fn main() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the type `std::cell::UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
|
||||
--> $DIR/interior-mutability.rs:9:5
|
||||
--> $DIR/interior-mutability.rs:5:5
|
||||
|
|
||||
LL | catch_unwind(|| { x.set(23); });
|
||||
| ^^^^^^^^^^^^ `std::cell::UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
|
||||
@ -12,7 +12,7 @@ LL | pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
|
||||
= help: within `std::cell::Cell<i32>`, the trait `std::panic::RefUnwindSafe` is not implemented for `std::cell::UnsafeCell<i32>`
|
||||
= note: required because it appears within the type `std::cell::Cell<i32>`
|
||||
= note: required because of the requirements on the impl of `std::panic::UnwindSafe` for `&std::cell::Cell<i32>`
|
||||
= note: required because it appears within the type `[closure@$DIR/interior-mutability.rs:9:18: 9:35 x:&std::cell::Cell<i32>]`
|
||||
= note: required because it appears within the type `[closure@$DIR/interior-mutability.rs:5:18: 5:35 x:&std::cell::Cell<i32>]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
use foo::MyEnum::Result;
|
||||
use foo::NoResult; // Through a re-export
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0573]: expected type, found variant `NoResult`
|
||||
--> $DIR/issue-17546.rs:16:17
|
||||
--> $DIR/issue-17546.rs:12:17
|
||||
|
|
||||
LL | fn new() -> NoResult<MyEnum, String> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@ -19,7 +19,7 @@ LL | fn new() -> Result<MyEnum, String> {
|
||||
| ^^^^^^
|
||||
|
||||
error[E0573]: expected type, found variant `Result`
|
||||
--> $DIR/issue-17546.rs:26:17
|
||||
--> $DIR/issue-17546.rs:22:17
|
||||
|
|
||||
LL | fn new() -> Result<foo::MyEnum, String> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
|
||||
@ -37,7 +37,7 @@ LL | use std::result::Result;
|
||||
and 1 other candidate
|
||||
|
||||
error[E0573]: expected type, found variant `Result`
|
||||
--> $DIR/issue-17546.rs:32:13
|
||||
--> $DIR/issue-17546.rs:28:13
|
||||
|
|
||||
LL | fn new() -> Result<foo::MyEnum, String> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
|
||||
@ -55,7 +55,7 @@ LL | use std::result::Result;
|
||||
and 1 other candidate
|
||||
|
||||
error[E0573]: expected type, found variant `NoResult`
|
||||
--> $DIR/issue-17546.rs:37:15
|
||||
--> $DIR/issue-17546.rs:33:15
|
||||
|
|
||||
LL | fn newer() -> NoResult<foo::MyEnum, String> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
struct Bar;
|
||||
|
||||
impl Bar {
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `Bar: std::hash::Hash` is not satisfied
|
||||
--> $DIR/issue-21160.rs:12:12
|
||||
--> $DIR/issue-21160.rs:8:12
|
||||
|
|
||||
LL | struct Foo(Bar);
|
||||
| ^^^ the trait `std::hash::Hash` is not implemented for `Bar`
|
||||
|
@ -1,7 +1,3 @@
|
||||
// FIXME: missing sysroot spans (#53081)
|
||||
// ignore-i586-unknown-linux-gnu
|
||||
// ignore-i586-unknown-linux-musl
|
||||
// ignore-i686-unknown-linux-musl
|
||||
fn main() {
|
||||
match Some(1) {
|
||||
None @ _ => {} //~ ERROR match bindings cannot shadow unit variants
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user