Ignore error details with $SRC_DIR
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Tue, 8 Sep 2020 16:38:19 +0000 (17:38 +0100)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Tue, 8 Sep 2020 16:38:19 +0000 (17:38 +0100)
Bug: https://github.com/rust-lang/rust/issues/53081

We build with --remap-path-prefix so it doesn't work, see bug below
===================================================================

Gbp-Pq: Name d-ignore-error-detail-diff.patch

18 files changed:
src/test/ui/async-await/issues/issue-62009-1.stderr
src/test/ui/closures/closure-move-sync.stderr
src/test/ui/consts/const-size_of-cycle.stderr
src/test/ui/consts/offset_from_ub.stderr
src/test/ui/derives/derives-span-Hash-enum-struct-variant.stderr
src/test/ui/derives/derives-span-Hash-enum.stderr
src/test/ui/derives/derives-span-Hash-struct.stderr
src/test/ui/derives/derives-span-Hash-tuple-struct.stderr
src/test/ui/impl-trait/impl-generic-mismatch.stderr
src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr
src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr
src/test/ui/interior-mutability/interior-mutability.stderr
src/test/ui/issues/issue-21160.stderr
src/test/ui/issues/issue-27033.stderr
src/test/ui/no-send-res-ports.stderr
src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr
src/test/ui/traits/trait-suggest-where-clause.stderr
src/test/ui/type_length_limit.stderr

index 6c8e0d0a5c4037cd1a5815efbcfd556c3858082a..81273c4bf562a737dcd2f95fe3a2fc935b2b7621 100644 (file)
@@ -32,11 +32,6 @@ error[E0277]: the trait bound `[closure@$DIR/issue-62009-1.rs:13:5: 13:15]: std:
    |
 LL |     (|_| 2333).await;
    |     ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:13:5: 13:15]`
-   | 
-  ::: $SRC_DIR/libstd/future.rs:LL:COL
-   |
-LL |     F: Future
-   |        ------ required by this bound in `std::future::poll_with_tls_context`
 
 error: aborting due to 4 previous errors
 
index ac5e3ccb42187d660992b4e9c25feec26da46e2c..fc5efd08c287e37092d281335561d5fa3156eef2 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: `std::sync::mpsc::Receiver<()>` cannot be shared between threads s
    |
 LL |     let t = thread::spawn(|| {
    |             ^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
-   | 
-  ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL
-   |
-LL |     F: FnOnce() -> T, F: Send + 'static, T: Send + 'static
-   |                          ---- required by this bound in `std::thread::spawn`
    |
    = 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<()>`
@@ -18,11 +13,6 @@ error[E0277]: `std::sync::mpsc::Sender<()>` cannot be shared between threads saf
    |
 LL |     thread::spawn(|| tx.send(()).unwrap());
    |     ^^^^^^^^^^^^^ `std::sync::mpsc::Sender<()>` cannot be shared between threads safely
-   | 
-  ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL
-   |
-LL |     F: FnOnce() -> T, F: Send + 'static, T: Send + 'static
-   |                          ---- required by this bound in `std::thread::spawn`
    |
    = 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<()>`
index db1932a92098e98ed658049e771ad221a900cde2..a773c73056a9d2b8b84646c15c81fb1509bd0fbf 100644 (file)
@@ -15,15 +15,7 @@ note: ...which requires const-evaluating `Foo::bytes::{{constant}}#0`...
 LL |     bytes: [u8; std::mem::size_of::<Foo>()]
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
 note: ...which requires const-evaluating `std::mem::size_of`...
-  --> $SRC_DIR/libcore/mem/mod.rs:LL:COL
-   |
-LL |     intrinsics::size_of::<T>()
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
 note: ...which requires const-evaluating + checking `std::intrinsics::size_of`...
-  --> $SRC_DIR/libcore/intrinsics.rs:LL:COL
-   |
-LL |     pub fn size_of<T>() -> usize;
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: ...which requires computing layout of `Foo`...
    = note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All, def_id: None }, value: [u8; _] }`...
    = note: ...which again requires const-evaluating + checking `Foo::bytes::{{constant}}#0`, completing the cycle
index 1bd09034bfc91978f479cf10c6dcf923e484828c..7c1c09c2ce0b0a25b83444586667f376ae2c976f 100644 (file)
@@ -1,11 +1,4 @@
 error: any use of this value will cause an error
-  --> $SRC_DIR/libcore/ptr/mod.rs:LL:COL
-   |
-LL |           intrinsics::ptr_offset_from(self, origin)
-   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |           |
-   |           ptr_offset_from cannot compute offset of pointers into different allocations.
-   |           inside call to `std::ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:19:27
    | 
   ::: $DIR/offset_from_ub.rs:13:1
    |
@@ -21,13 +14,6 @@ LL | | };
    = note: `#[deny(const_err)]` on by default
 
 error: any use of this value will cause an error
-  --> $SRC_DIR/libcore/ptr/mod.rs:LL:COL
-   |
-LL |           intrinsics::ptr_offset_from(self, origin)
-   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |           |
-   |           a memory access tried to interpret some bytes as a pointer
-   |           inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:25:14
    | 
   ::: $DIR/offset_from_ub.rs:23:1
    |
@@ -38,13 +24,6 @@ LL | | };
    | |__-
 
 error: any use of this value will cause an error
-  --> $SRC_DIR/libcore/ptr/mod.rs:LL:COL
-   |
-LL |           intrinsics::ptr_offset_from(self, origin)
-   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |           |
-   |           exact_div: 1 cannot be divided by 2 without remainder
-   |           inside call to `std::ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:33:14
    | 
   ::: $DIR/offset_from_ub.rs:28:1
    |
@@ -58,13 +37,6 @@ LL | | };
    | |__-
 
 error: any use of this value will cause an error
-  --> $SRC_DIR/libcore/ptr/mod.rs:LL:COL
-   |
-LL |           intrinsics::ptr_offset_from(self, origin)
-   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |           |
-   |           invalid use of NULL pointer
-   |           inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:39:14
    | 
   ::: $DIR/offset_from_ub.rs:36:1
    |
@@ -76,13 +48,6 @@ LL | | };
    | |__-
 
 error: any use of this value will cause an error
-  --> $SRC_DIR/libcore/ptr/mod.rs:LL:COL
-   |
-LL |           intrinsics::ptr_offset_from(self, origin)
-   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |           |
-   |           a memory access tried to interpret some bytes as a pointer
-   |           inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:46:14
    | 
   ::: $DIR/offset_from_ub.rs:42:1
    |
index cc1caf78041864c39195416c54c4e4264aa185a2..d13e66d63520f9f885417d016082f6ef25ab911c 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
    |
 LL |      x: Error
    |      ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
-   | 
-  ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
-   |
-LL |     fn hash<H: Hasher>(&self, state: &mut H);
-   |             - required by this bound in `std::hash::Hash::hash`
 
 error: aborting due to previous error
 
index 246d821ed2bf632584b673beaa7623e7c3dd5f83..792c31ef8dc696277db847baf0fcf0ef33d89fbd 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
    |
 LL |      Error
    |      ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
-   | 
-  ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
-   |
-LL |     fn hash<H: Hasher>(&self, state: &mut H);
-   |             - required by this bound in `std::hash::Hash::hash`
 
 error: aborting due to previous error
 
index 720c127635e624b8ba3aa96b432f3a23805ac72d..ab9ba2757ebd9dd348404552e81e5ea45c5923ec 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
    |
 LL |     x: Error
    |     ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
-   | 
-  ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
-   |
-LL |     fn hash<H: Hasher>(&self, state: &mut H);
-   |             - required by this bound in `std::hash::Hash::hash`
 
 error: aborting due to previous error
 
index 1fd1e601eca013ebc1b6a05274c59b9c4ff8aac1..f1b5325be3491b61900d525fe8e3462c9941bd1d 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
    |
 LL |     Error
    |     ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
-   | 
-  ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
-   |
-LL |     fn hash<H: Hasher>(&self, state: &mut H);
-   |             - required by this bound in `std::hash::Hash::hash`
 
 error: aborting due to previous error
 
index 2278519e95ad18389fe4709835f1e913724a1df4..5ca57b06e5e0a66e53080427e21400cd1f4f401d 100644 (file)
@@ -31,11 +31,6 @@ error[E0643]: method `hash` has incompatible signature for trait
    |
 LL |     fn hash(&self, hasher: &mut impl Hasher) {}
    |                                 ^^^^^^^^^^^ expected generic parameter, found `impl Trait`
-   | 
-  ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
-   |
-LL |     fn hash<H: Hasher>(&self, state: &mut H);
-   |             - declaration in trait here
 
 error: aborting due to 3 previous errors
 
index 7a55abe42556c7e963d43507b8c445421f4f0e29..90ec54edb852b8bb64ee865dd72cb6ebd9f3d1a0 100644 (file)
@@ -22,10 +22,6 @@ LL |         extern crate std as Vec;
 LL | define_vec!();
    | -------------- in this macro invocation
 note: `Vec` could also refer to the struct defined here
-  --> $SRC_DIR/libstd/prelude/v1.rs:LL:COL
-   |
-LL | pub use crate::vec::Vec;
-   |         ^^^^^^^^^^^^^^^
 
 error: aborting due to 2 previous errors
 
index 8086d3f1fbc646c23d0914e4d70e85bb814ea2c6..7d71c9361d6a2c85282cfad915a7f35c232a85ed 100644 (file)
@@ -3,11 +3,6 @@ error: `impl` item signature doesn't match `trait` item signature
    |
 LL |     fn deref(&self) -> &dyn Trait {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found fn(&Struct) -> &dyn Trait
-   | 
-  ::: $SRC_DIR/libcore/ops/deref.rs:LL:COL
-   |
-LL |     fn deref(&self) -> &Self::Target;
-   |     --------------------------------- expected fn(&Struct) -> &(dyn Trait + 'static)
    |
    = note: expected `fn(&Struct) -> &(dyn Trait + 'static)`
               found `fn(&Struct) -> &dyn Trait`
index 5c129524f51b4aae7f4575b77fd20cc9cd0deb0d..702a581d41d1cfa5f49d4537435030abf3e5b94d 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: the type `std::cell::UnsafeCell<i32>` may contain interior mutabil
    |
 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
-   | 
-  ::: $SRC_DIR/libstd/panic.rs:LL:COL
-   |
-LL | pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
-   |                                        ---------- required by this bound in `std::panic::catch_unwind`
    |
    = 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>`
index 65ba64b49d06d8bb8f32de4a18442a0469731d32..e64fe9aa3709a2f2c2cb53e087a98eebf85aa410 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Bar: std::hash::Hash` is not satisfied
    |
 LL | struct Foo(Bar);
    |            ^^^ the trait `std::hash::Hash` is not implemented for `Bar`
-   | 
-  ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
-   |
-LL |     fn hash<H: Hasher>(&self, state: &mut H);
-   |             - required by this bound in `std::hash::Hash::hash`
 
 error: aborting due to previous error
 
index d3f8407f8e262688a4b91327fd21c8ec73411a2e..aa7e5c7d6ab84a4cfea722b2d09000cf82920437 100644 (file)
@@ -3,11 +3,6 @@ error[E0530]: match bindings cannot shadow unit variants
    |
 LL |         None @ _ => {}
    |         ^^^^ cannot be named the same as a unit variant
-   | 
-  ::: $SRC_DIR/libstd/prelude/v1.rs:LL:COL
-   |
-LL | pub use crate::option::Option::{self, None, Some};
-   |                                       ---- the unit variant `None` is defined here
 
 error[E0530]: match bindings cannot shadow constants
   --> $DIR/issue-27033.rs:8:9
index f23a3bf832ab6c9336d053f1c85c586fafe66c43..17c55609e2b3a0094db9090203ac54c9f115f8a4 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely
    |
 LL |     thread::spawn(move|| {
    |     ^^^^^^^^^^^^^ `std::rc::Rc<()>` cannot be sent between threads safely
-   | 
-  ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL
-   |
-LL |     F: FnOnce() -> T, F: Send + 'static, T: Send + 'static
-   |                          ---- required by this bound in `std::thread::spawn`
    |
    = help: within `[closure@$DIR/no-send-res-ports.rs:26:19: 30:6 x:main::Foo]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>`
    = note: required because it appears within the type `Port<()>`
index 9cefef58bf53ae18fe877f337af9f934d1e6cbca..bd76155cf8edbdba8dd48b95cc4ff9550d999e60 100644 (file)
@@ -5,11 +5,6 @@ LL | / fn can_parse_zero_as_f32() -> Result<f32, ParseFloatError> {
 LL | |     "0".parse()
 LL | | }
    | |_^ `main` can only return types that implement `std::process::Termination`
-   | 
-  ::: $SRC_DIR/libtest/lib.rs:LL:COL
-   |
-LL |   pub fn assert_test_result<T: Termination>(result: T) {
-   |                                ----------- required by this bound in `test::assert_test_result`
    |
    = help: the trait `std::process::Termination` is not implemented for `std::result::Result<f32, std::num::ParseFloatError>`
 
index 2bb7defdac710c22fb0ec0cc24d1caa1ded3761a..339f3493b2070582cad030d4639f53317a6275d2 100644 (file)
@@ -6,11 +6,6 @@ LL | fn check<T: Iterator, U: ?Sized>() {
 LL |     // suggest a where-clause, if needed
 LL |     mem::size_of::<U>();
    |                    ^ doesn't have a size known at compile-time
-   | 
-  ::: $SRC_DIR/libcore/mem/mod.rs:LL:COL
-   |
-LL | pub const fn size_of<T>() -> usize {
-   |                      - required by this bound in `std::mem::size_of`
    |
    = help: the trait `std::marker::Sized` is not implemented for `U`
    = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
@@ -23,11 +18,6 @@ LL | fn check<T: Iterator, U: ?Sized>() {
 ...
 LL |     mem::size_of::<Misc<U>>();
    |     ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
-   | 
-  ::: $SRC_DIR/libcore/mem/mod.rs:LL:COL
-   |
-LL | pub const fn size_of<T>() -> usize {
-   |                      - required by this bound in `std::mem::size_of`
    |
    = help: within `Misc<U>`, the trait `std::marker::Sized` is not implemented for `U`
    = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
@@ -62,11 +52,6 @@ error[E0277]: the size for values of type `[T]` cannot be known at compilation t
    |
 LL |     mem::size_of::<[T]>();
    |                    ^^^ doesn't have a size known at compile-time
-   | 
-  ::: $SRC_DIR/libcore/mem/mod.rs:LL:COL
-   |
-LL | pub const fn size_of<T>() -> usize {
-   |                      - required by this bound in `std::mem::size_of`
    |
    = help: the trait `std::marker::Sized` is not implemented for `[T]`
    = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
@@ -76,11 +61,6 @@ error[E0277]: the size for values of type `[&U]` cannot be known at compilation
    |
 LL |     mem::size_of::<[&U]>();
    |     ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
-   | 
-  ::: $SRC_DIR/libcore/mem/mod.rs:LL:COL
-   |
-LL | pub const fn size_of<T>() -> usize {
-   |                      - required by this bound in `std::mem::size_of`
    |
    = help: the trait `std::marker::Sized` is not implemented for `[&U]`
    = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
index 7e308f107ba00049bbc71b69f57afec35b51bc60..83a61ce79f5175f4972debb687c779404373e74c 100644 (file)
@@ -1,8 +1,4 @@
 error: reached the type-length limit while instantiating `std::mem::drop::<std::option::Op... G), (G, G, G), (G, G, G))))))>>`
-  --> $SRC_DIR/libcore/mem/mod.rs:LL:COL
-   |
-LL | pub fn drop<T>(_x: T) { }
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: consider adding a `#![type_length_limit="1094"]` attribute to your crate