diff options
| author | bors <bors@rust-lang.org> | 2019-08-30 03:09:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-08-30 03:09:39 +0000 |
| commit | c7d4df0fcfc3ed3ee98a430e451c6776e90d65ae (patch) | |
| tree | a8c0a086a2829c37fca162af80cb2caef3ae0e0e /src/liballoc | |
| parent | 72b2abfd65ba024e12d7fe51852a309419f494d8 (diff) | |
| parent | 6978b9482b976d991dac1dc55a6effe1f697cd1f (diff) | |
| download | rust-c7d4df0fcfc3ed3ee98a430e451c6776e90d65ae.tar.gz rust-c7d4df0fcfc3ed3ee98a430e451c6776e90d65ae.zip | |
Auto merge of #60966 - oli-obk:diagnostic_items, r=eddyb
Add a "diagnostic item" scheme for lints referring to libstd items fixes https://github.com/rust-lang/rust/issues/39131 r? @Manishearth @rust-lang/wg-diagnostics
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<T> { buf: RawVec<T>, len: usize, |
