Ignore error details with $SRC_DIR
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sat, 18 May 2019 19:18:25 +0000 (20:18 +0100)
committerXimin Luo <infinity0@debian.org>
Sat, 18 May 2019 19:18:25 +0000 (20:18 +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

src/test/ui/consts/const-size_of-cycle.stderr
src/test/ui/impl-trait/impl-generic-mismatch.stderr

index 8f9498e834d8ff11bcdc6c80727b9e80eda9b566..70117718c21e4b85a225fbc62ec98888c2bb4a61 100644 (file)
@@ -5,10 +5,6 @@ LL |     bytes: [u8; std::mem::size_of::<Foo>()]
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: ...which requires const-evaluating `Foo::bytes::{{constant}}`...
-  --> $SRC_DIR/libcore/mem.rs:LL:COL
-   |
-LL |     intrinsics::size_of::<T>()
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
 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 requires const-evaluating + checking `Foo::bytes::{{constant}}`...
index fae8da9861f9db0c1a3059f9d74fb12388505432..e85583ab4e21997235a6ec2600114fae34561a38 100644 (file)
@@ -29,11 +29,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