Snap cfgs to new beta
This commit is contained in:
parent
1a4e4d937e
commit
f359a94849
26 changed files with 16 additions and 105 deletions
|
@ -291,7 +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")]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "vec_type")]
|
||||
pub struct Vec<T> {
|
||||
buf: RawVec<T>,
|
||||
len: usize,
|
||||
|
@ -314,7 +314,6 @@ impl<T> Vec<T> {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(bootstrap, rustc_const_unstable(feature = "const_vec_new"))]
|
||||
pub const fn new() -> Vec<T> {
|
||||
Vec {
|
||||
buf: RawVec::NEW,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue