Ignore error details with $SRC_DIR
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Fri, 10 Apr 2020 10:33:25 +0000 (11:33 +0100)
committerXimin Luo <infinity0@debian.org>
Fri, 10 Apr 2020 10:33:25 +0000 (11:33 +0100)
Bug: https://github.com/rust-lang/rust/issues/53081

We build with --remap-path-prefix so it doesn't work, see bug below
some other small things (indentation, extra output) are also different between stock and Debian rustc

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

30 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/miri_unleashed/drop.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/derives/deriving-meta-unknown-trait.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-17546.stderr
src/test/ui/issues/issue-21160.stderr
src/test/ui/issues/issue-27033.stderr
src/test/ui/issues/issue-38857.stderr
src/test/ui/issues/issue-7607-1.stderr
src/test/ui/macros/macro-name-typo.stderr
src/test/ui/macros/macro-path-prelude-fail-3.stderr
src/test/ui/no-send-res-ports.stderr
src/test/ui/proc-macro/parent-source-spans.stderr
src/test/ui/proc-macro/resolve-error.stderr
src/test/ui/resolve/levenshtein.stderr
src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr
src/test/ui/stability-in-private-module.stderr
src/test/ui/suggestions/attribute-typos.stderr
src/test/ui/traits/trait-suggest-where-clause.stderr
src/test/ui/type_length_limit.stderr

index cd6670923c2c6ef4f05757cb6b7f295d1ec00783..66388098dc6f259b443875604edd8161d520cee2 100644 (file)
@@ -32,11 +32,6 @@ error[E0277]: the trait bound `[closure@$DIR/issue-62009-1.rs:16:5: 16:15]: std:
    |
 LL |     (|_| 2333).await;
    |     ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:16:5: 16: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 2187823d7582a7e34a9e683a5534551217b1af20..390b2e11fc8e85cf82a37ea0e908a5e5e76ca461 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: 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: 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 c03b7a19ffc6186b755d569dabd5d943a010f88f..99a9461abb28a9d42715b5c01d3eed19041b7ac1 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 2439d527bd1970752c3e8a5378c1ebbb6ef144ff..fd3281144d0fb69c120e4fd6853fba74be718c66 100644 (file)
@@ -5,14 +5,6 @@ LL |     let _v: Vec<i32> = Vec::new();
    |         ^^
 
 error[E0080]: could not evaluate static initializer
-  --> $SRC_DIR/libcore/ptr/mod.rs:LL:COL
-   |
-LL | / pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
-LL | |     // Code here does not matter - this is replaced by the
-LL | |     // real drop glue by the compiler.
-LL | |     drop_in_place(to_drop)
-LL | | }
-   | |_^ calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
    | 
   ::: $DIR/drop.rs:23:1
    |
index 24da983cf0868088db004d9d7b8f894b38bb202b..8becdc100930b481f0e340aef95170f53431d399 100644 (file)
@@ -1,11 +1,4 @@
 error: any use of this value will cause an error
-  --> $SRC_DIR/libcore/ptr/const_ptr.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::const_ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:22:27
    | 
   ::: $DIR/offset_from_ub.rs:16: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/const_ptr.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::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:28:14
    | 
   ::: $DIR/offset_from_ub.rs:26:1
    |
@@ -38,13 +24,6 @@ LL | | };
    | |__-
 
 error: any use of this value will cause an error
-  --> $SRC_DIR/libcore/ptr/const_ptr.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::const_ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:36:14
    | 
   ::: $DIR/offset_from_ub.rs:31:1
    |
@@ -58,13 +37,6 @@ LL | | };
    | |__-
 
 error: any use of this value will cause an error
-  --> $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
-   |
-LL |           intrinsics::ptr_offset_from(self, origin)
-   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |           |
-   |           invalid use of NULL pointer
-   |           inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:42:14
    | 
   ::: $DIR/offset_from_ub.rs:39:1
    |
@@ -76,13 +48,6 @@ LL | | };
    | |__-
 
 error: any use of this value will cause an error
-  --> $SRC_DIR/libcore/ptr/const_ptr.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::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:49:14
    | 
   ::: $DIR/offset_from_ub.rs:45:1
    |
index 00b033004ec8f9bccd41babae618936eede60cca..b24aa1fe614a6e21286f9632a19d3b5182c954c2 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 004cabf207ab90e9672edf2ff20c38b23b99bf78..ff13218ed8eaf82331ceb24c90c1b8ab04ad80b8 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 27b8ff3d11469f4c728521ec2546d6d43d0d8cca..8a3d8a0f34b6cd14dfa157bdf0e83c5fdf453040 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 f1142bc50332a249288dd4a4bd2ef5107c9bbf0c..1396e1c8f874cc0033115c9218c3f5fd3fcaaa6f 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 ead131323246ad01541afc7bd621a2b28f7b3caa..abe382fc4210248ab29adbb2024d57f21440ff4b 100644 (file)
@@ -1,24 +1,14 @@
 error: cannot find derive macro `Eqr` in this scope
   --> $DIR/deriving-meta-unknown-trait.rs:5:10
    |
-LL | #[derive(Eqr)]
-   |          ^^^ help: a derive macro with a similar name exists: `Eq`
-   | 
-  ::: $SRC_DIR/libcore/cmp.rs:LL:COL
-   |
-LL | pub macro Eq($item:item) {
-   | ------------------------ similarly named derive macro `Eq` defined here
+LL |   #[derive(Eqr)]
+   |            ^^^ help: a derive macro with a similar name exists: `Eq`
 
 error: cannot find derive macro `Eqr` in this scope
   --> $DIR/deriving-meta-unknown-trait.rs:5:10
    |
-LL | #[derive(Eqr)]
-   |          ^^^ help: a derive macro with a similar name exists: `Eq`
-   | 
-  ::: $SRC_DIR/libcore/cmp.rs:LL:COL
-   |
-LL | pub macro Eq($item:item) {
-   | ------------------------ similarly named derive macro `Eq` defined here
+LL |   #[derive(Eqr)]
+   |            ^^^ help: a derive macro with a similar name exists: `Eq`
 
 error: aborting due to 2 previous errors
 
index 0c294d1e485a88a088f7738b6592cde0801f2811..8b0b46370503c7f5bebaea88fc81a029de7a9a3a 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 245013a4ea43eb6ebe66447091b059f105bbc218..4ead43890315e49a62954ab38e7e3c1eaabb2074 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 374e308a639ce8b6d4c27cf751cdc0f426303982..5559189642bd7aea65f5e11f0e2ae772a175c9f2 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 2378e412172a53c4335d88b5e569ce00f249fcc6..941ef20f8a8a87f639d74003b3fb039a6bd398f2 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 2d532cdb9d8a9f53e886f4c2786bfe4088799671..2998c98e14ac374ae171cb9be00f35c3839297be 100644 (file)
@@ -1,13 +1,8 @@
 error[E0573]: expected type, found variant `NoResult`
   --> $DIR/issue-17546.rs:16:17
    |
-LL |     fn new() -> NoResult<MyEnum, String> {
-   |                 ^^^^^^^^^^^^^^^^^^^^^^^^
-   | 
-  ::: $SRC_DIR/libcore/result.rs:LL:COL
-   |
-LL | pub enum Result<T, E> {
-   | --------------------- similarly named enum `Result` defined here
+LL |       fn new() -> NoResult<MyEnum, String> {
+   |                   ^^^^^^^^^^^^^^^^^^^^^^^^
    |
 help: try using the variant's enum
    |
@@ -57,13 +52,8 @@ LL | use std::result::Result;
 error[E0573]: expected type, found variant `NoResult`
   --> $DIR/issue-17546.rs:37:15
    |
-LL | fn newer() -> NoResult<foo::MyEnum, String> {
-   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   | 
-  ::: $SRC_DIR/libcore/result.rs:LL:COL
-   |
-LL | pub enum Result<T, E> {
-   | --------------------- similarly named enum `Result` defined here
+LL |   fn newer() -> NoResult<foo::MyEnum, String> {
+   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 help: try using the variant's enum
    |
index a7bb4fc512874b363a2dda7aa3b47fcb18d0c3f2..a21bf1429c7ccb2c0e8876f93c31d8de1ecbfb02 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 c0de0f14268a79086453fc0c627dccb0d80e5051..a5a59edc7c8fa99795953ddcd49aa1c1cdb63b6e 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:11:9
index ba0f1336ff09d79c0fc20142d11d6e6a22d2bd6d..38adfd052e58afbe15163d247a1fce501c06241a 100644 (file)
@@ -11,10 +11,6 @@ LL |     let a = std::sys::imp::process::process_common::StdioPipes { ..panic!()
    |                  ^^^ this module is private
    |
 note: the module `sys` is defined here
-  --> $SRC_DIR/libstd/lib.rs:LL:COL
-   |
-LL | mod sys;
-   | ^^^^^^^^
 
 error: aborting due to 2 previous errors
 
index 94f489e209e32e87560364094deaf2a1067fa877..6c0b6af673684071ead38c021c6a31ef13f2d7ff 100644 (file)
@@ -1,13 +1,8 @@
 error[E0412]: cannot find type `Fo` in this scope
   --> $DIR/issue-7607-1.rs:9:6
    |
-LL | impl Fo {
-   |      ^^ help: a trait with a similar name exists: `Fn`
-   | 
-  ::: $SRC_DIR/libcore/ops/function.rs:LL:COL
-   |
-LL | pub trait Fn<Args>: FnMut<Args> {
-   | ------------------------------- similarly named trait `Fn` defined here
+LL |   impl Fo {
+   |        ^^ help: a trait with a similar name exists: `Fn`
 
 error: aborting due to previous error
 
index 00afbde8932fca2426c64030396dc52b9f037a1a..14fd764780616630151fa64356b10a4c35843b2f 100644 (file)
@@ -1,13 +1,8 @@
 error: cannot find macro `printlx` in this scope
   --> $DIR/macro-name-typo.rs:6:5
    |
-LL |     printlx!("oh noes!");
-   |     ^^^^^^^ help: a macro with a similar name exists: `println`
-   | 
-  ::: $SRC_DIR/libstd/macros.rs:LL:COL
-   |
-LL | macro_rules! println {
-   | -------------------- similarly named macro `println` defined here
+LL |       printlx!("oh noes!");
+   |       ^^^^^^^ help: a macro with a similar name exists: `println`
 
 error: aborting due to previous error
 
index 536459067437dc58d1a8e9260fe14face3755040..15be755510db3079299a4ff5e69f5c29da7e9228 100644 (file)
@@ -1,13 +1,8 @@
 error: cannot find macro `inline` in this scope
   --> $DIR/macro-path-prelude-fail-3.rs:6:5
    |
-LL |     inline!();
-   |     ^^^^^^ help: a macro with a similar name exists: `line`
-   | 
-  ::: $SRC_DIR/libcore/macros/mod.rs:LL:COL
-   |
-LL |     macro_rules! line {
-   |     ----------------- similarly named macro `line` defined here
+LL |       inline!();
+   |       ^^^^^^ help: a macro with a similar name exists: `line`
 
 error: aborting due to previous error
 
index 65946ee8a20cf8588ca193830159779fa497e307..f40cb05624c110d19b53cb88050b461eeec53d67 100644 (file)
@@ -10,11 +10,6 @@ LL | |         let y = x;
 LL | |         println!("{:?}", y);
 LL | |     });
    | |_____- within this `[closure@$DIR/no-send-res-ports.rs:29:19: 33:6 x:main::Foo]`
-   | 
-  ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL
-   |
-LL |       F: Send + 'static,
-   |          ---- required by this bound in `std::thread::spawn`
    |
    = help: within `[closure@$DIR/no-send-res-ports.rs:29:19: 33: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 9f0fefcfe6c03e68880ab9b759bc32f6dfb7d05a..59d21f5c18515e1276d0512524229be4b7d59fd9 100644 (file)
@@ -132,11 +132,6 @@ LL |     parent_source_spans!($($tokens)*);
 ...
 LL |     one!("hello", "world");
    |     ----------------------- in this macro invocation
-   | 
-  ::: $SRC_DIR/libcore/result.rs:LL:COL
-   |
-LL |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
-   |     --------------------------------------------------- similarly named tuple variant `Ok` defined here
 
 error[E0425]: cannot find value `ok` in this scope
   --> $DIR/parent-source-spans.rs:32:5
@@ -146,11 +141,6 @@ LL |     parent_source_spans!($($tokens)*);
 ...
 LL |     two!("yay", "rust");
    |     -------------------- in this macro invocation
-   | 
-  ::: $SRC_DIR/libcore/result.rs:LL:COL
-   |
-LL |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
-   |     --------------------------------------------------- similarly named tuple variant `Ok` defined here
 
 error[E0425]: cannot find value `ok` in this scope
   --> $DIR/parent-source-spans.rs:32:5
@@ -160,11 +150,6 @@ LL |     parent_source_spans!($($tokens)*);
 ...
 LL |     three!("hip", "hop");
    |     --------------------- in this macro invocation
-   | 
-  ::: $SRC_DIR/libcore/result.rs:LL:COL
-   |
-LL |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
-   |     --------------------------------------------------- similarly named tuple variant `Ok` defined here
 
 error: aborting due to 21 previous errors
 
index 73a6ab1cfb91055edaae2c166cc032270ed3786b..5b13176c58e3d13590dcbecdc14da9565fd77a33 100644 (file)
@@ -74,24 +74,14 @@ LL | pub fn derive_clonea(input: TokenStream) -> TokenStream {
 error: cannot find derive macro `Dlone` in this scope
   --> $DIR/resolve-error.rs:39:10
    |
-LL | #[derive(Dlone)]
-   |          ^^^^^ help: a derive macro with a similar name exists: `Clone`
-   | 
-  ::: $SRC_DIR/libcore/clone.rs:LL:COL
-   |
-LL | pub macro Clone($item:item) {
-   | --------------------------- similarly named derive macro `Clone` defined here
+LL |   #[derive(Dlone)]
+   |            ^^^^^ help: a derive macro with a similar name exists: `Clone`
 
 error: cannot find derive macro `Dlone` in this scope
   --> $DIR/resolve-error.rs:39:10
    |
-LL | #[derive(Dlone)]
-   |          ^^^^^ help: a derive macro with a similar name exists: `Clone`
-   | 
-  ::: $SRC_DIR/libcore/clone.rs:LL:COL
-   |
-LL | pub macro Clone($item:item) {
-   | --------------------------- similarly named derive macro `Clone` defined here
+LL |   #[derive(Dlone)]
+   |            ^^^^^ help: a derive macro with a similar name exists: `Clone`
 
 error: cannot find attribute `FooWithLongNan` in this scope
   --> $DIR/resolve-error.rs:36:3
index a622d6cb34948c62ec14cc50c90d7581fb1abf7b..4be76a51b1934fb25fead5515324754eaba05de7 100644 (file)
@@ -18,11 +18,6 @@ error[E0412]: cannot find type `Opiton` in this scope
    |
 LL | type B = Opiton<u8>; // Misspelled type name from the prelude.
    |          ^^^^^^ help: an enum with a similar name exists: `Option`
-   | 
-  ::: $SRC_DIR/libcore/option.rs:LL:COL
-   |
-LL | pub enum Option<T> {
-   | ------------------ similarly named enum `Option` defined here
 
 error[E0412]: cannot find type `Baz` in this scope
   --> $DIR/levenshtein.rs:20:14
index ed4f34b527fcbe3f61013c6a518d0a04cdb0bb01..c79545db05165be8d165f3829106ddb8c0ce93f6 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 3a974164f94734f7634bd330bf2681527f05b3f3..f2ee71d37ef7d4fdf3c58854a0d4ab4e4dcb3e59 100644 (file)
@@ -5,10 +5,6 @@ LL |     let _ = std::thread::thread_info::current_thread();
    |                          ^^^^^^^^^^^ this module is private
    |
 note: the module `thread_info` is defined here
-  --> $SRC_DIR/libstd/thread/mod.rs:LL:COL
-   |
-LL | use crate::sys_common::thread_info;
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error
 
index a0943592539af90689edc6574ebeadcdbaa148c2..c7f04dde19fb5aea9ef7e01dac02a3cddf8fb867 100644 (file)
@@ -16,13 +16,8 @@ LL | #[rustc_err]
 error: cannot find attribute `tests` in this scope
   --> $DIR/attribute-typos.rs:8:3
    |
-LL | #[tests]
-   |   ^^^^^ help: an attribute macro with a similar name exists: `test`
-   | 
-  ::: $SRC_DIR/libcore/macros/mod.rs:LL:COL
-   |
-LL |     pub macro test($item:item) {
-   |     -------------------------- similarly named attribute macro `test` defined here
+LL |   #[tests]
+   |     ^^^^^ help: an attribute macro with a similar name exists: `test`
 
 error: cannot find attribute `deprcated` in this scope
   --> $DIR/attribute-typos.rs:5:3
index 831dd439298d9755bf482b63108399357671f8de..c1af903b68b74a562246f36c6563b90b3a4d2b50 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 8a9ef993bdacf3af038c4dd745e5b7d776f5d53f..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