From 26e9990198d3c7262d58468f18a722920c897e35 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Sun, 19 May 2019 20:16:04 +0200 Subject: Add a "diagnostic item" scheme This allows lints and other diagnostics to refer to items by a unique ID instead of relying on whacky path resolution schemes that may break when items are relocated. --- src/liballoc/vec.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/liballoc') diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index d2798955c46..d5dc2d4b868 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -291,6 +291,7 @@ use crate::raw_vec::RawVec; /// [`reserve`]: ../../std/vec/struct.Vec.html#method.reserve /// [owned slice]: ../../std/boxed/struct.Box.html #[stable(feature = "rust1", since = "1.0.0")] +#[cfg_attr(all(not(bootstrap), not(test)), rustc_diagnostic_item = "vec_type")] pub struct Vec { buf: RawVec, len: usize, -- cgit 1.4.1-3-g733a5