3 ms·
Rust's own standard library is annotated like this (examples are from parts of Vec for whatever that's worth): #[stable(feature = "vec_splice", since = "1.
by tialaramex 4y ago
Rust's own standard library is annotated like this (examples are from parts of Vec for whatever that's worth):
#[stable(feature = "vec_splice", since = "1.21.0")]
This annotation is on the splice method, Vec::splice() is a thing from version 1.21.0 onwards
#[unstable(feature = "allocator_api", issue = "32838")]
Asking for your Vec to use a different allocator instead of the global heap allocator is a nightly feature, ask for feature "allocator_api" in your nightly compiler, or read GitHub issue 32838 if you find problems.
#[rustc_const_stable(feature = "const_vec_new", since = "1.39.0")]
Vec::new() is compile time constant from 1.39.0, before that a call to Vec::new() actually calls that new() function at runtime, even though a new Vec doesn't allocate anywhere to put anything. If you're currenty in a compile time constant context Vec::new() won't compile at all until 1.39.0