Correct a few stability attributes
This commit is contained in:
parent
5758c2dd14
commit
521e41e77d
5 changed files with 10 additions and 8 deletions
|
@ -31,7 +31,7 @@ use iter::FusedIterator;
|
||||||
/// documentation for more.
|
/// documentation for more.
|
||||||
///
|
///
|
||||||
/// [`escape_default`]: fn.escape_default.html
|
/// [`escape_default`]: fn.escape_default.html
|
||||||
#[stable(feature = "core_ascii", since = "1.26.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct EscapeDefault {
|
pub struct EscapeDefault {
|
||||||
range: Range<usize>,
|
range: Range<usize>,
|
||||||
data: [u8; 4],
|
data: [u8; 4],
|
||||||
|
@ -99,7 +99,7 @@ pub struct EscapeDefault {
|
||||||
/// assert_eq!(b'9', escaped.next().unwrap());
|
/// assert_eq!(b'9', escaped.next().unwrap());
|
||||||
/// assert_eq!(b'd', escaped.next().unwrap());
|
/// assert_eq!(b'd', escaped.next().unwrap());
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "core_ascii", since = "1.26.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub fn escape_default(c: u8) -> EscapeDefault {
|
pub fn escape_default(c: u8) -> EscapeDefault {
|
||||||
let (data, len) = match c {
|
let (data, len) = match c {
|
||||||
b'\t' => ([b'\\', b't', 0, 0], 2),
|
b'\t' => ([b'\\', b't', 0, 0], 2),
|
||||||
|
|
|
@ -200,7 +200,7 @@ macro_rules! range_trusted_len_impl {
|
||||||
|
|
||||||
macro_rules! range_incl_trusted_len_impl {
|
macro_rules! range_incl_trusted_len_impl {
|
||||||
($($t:ty)*) => ($(
|
($($t:ty)*) => ($(
|
||||||
#[stable(feature = "inclusive_range", since = "1.26.0")]
|
#[unstable(feature = "trusted_len", issue = "37572")]
|
||||||
unsafe impl TrustedLen for ops::RangeInclusive<$t> { }
|
unsafe impl TrustedLen for ops::RangeInclusive<$t> { }
|
||||||
)*)
|
)*)
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,7 @@ impl<'a> PanicInfo<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[stable(feature = "panic_hook_display", since = "1.26.0")]
|
||||||
impl<'a> fmt::Display for PanicInfo<'a> {
|
impl<'a> fmt::Display for PanicInfo<'a> {
|
||||||
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||||
formatter.write_str("panicked at ")?;
|
formatter.write_str("panicked at ")?;
|
||||||
|
@ -244,6 +245,7 @@ impl<'a> Location<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[stable(feature = "panic_hook_display", since = "1.26.0")]
|
||||||
impl<'a> fmt::Display for Location<'a> {
|
impl<'a> fmt::Display for Location<'a> {
|
||||||
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||||
write!(formatter, "{}:{}:{}", self.file, self.line, self.col)
|
write!(formatter, "{}:{}:{}", self.file, self.line, self.col)
|
||||||
|
|
|
@ -723,10 +723,10 @@ pub fn args_os() -> ArgsOs {
|
||||||
ArgsOs { inner: sys::args::args() }
|
ArgsOs { inner: sys::args::args() }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
|
#[stable(feature = "env_unimpl_send_sync", since = "1.26.0")]
|
||||||
impl !Send for Args {}
|
impl !Send for Args {}
|
||||||
|
|
||||||
#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
|
#[stable(feature = "env_unimpl_send_sync", since = "1.26.0")]
|
||||||
impl !Sync for Args {}
|
impl !Sync for Args {}
|
||||||
|
|
||||||
#[stable(feature = "env", since = "1.0.0")]
|
#[stable(feature = "env", since = "1.0.0")]
|
||||||
|
@ -760,10 +760,10 @@ impl fmt::Debug for Args {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
|
#[stable(feature = "env_unimpl_send_sync", since = "1.26.0")]
|
||||||
impl !Send for ArgsOs {}
|
impl !Send for ArgsOs {}
|
||||||
|
|
||||||
#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
|
#[stable(feature = "env_unimpl_send_sync", since = "1.26.0")]
|
||||||
impl !Sync for ArgsOs {}
|
impl !Sync for ArgsOs {}
|
||||||
|
|
||||||
#[stable(feature = "env", since = "1.0.0")]
|
#[stable(feature = "env", since = "1.0.0")]
|
||||||
|
|
|
@ -483,7 +483,7 @@ declare_features! (
|
||||||
// allow empty structs and enum variants with braces
|
// allow empty structs and enum variants with braces
|
||||||
(accepted, braced_empty_structs, "1.8.0", Some(29720), None),
|
(accepted, braced_empty_structs, "1.8.0", Some(29720), None),
|
||||||
// Allows indexing into constant arrays.
|
// Allows indexing into constant arrays.
|
||||||
(accepted, const_indexing, "1.24.0", Some(29947), None),
|
(accepted, const_indexing, "1.26.0", Some(29947), None),
|
||||||
(accepted, default_type_params, "1.0.0", None, None),
|
(accepted, default_type_params, "1.0.0", None, None),
|
||||||
(accepted, globs, "1.0.0", None, None),
|
(accepted, globs, "1.0.0", None, None),
|
||||||
(accepted, if_let, "1.0.0", None, None),
|
(accepted, if_let, "1.0.0", None, None),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue