]> git.lizzy.rs Git - rust.git/commitdiff
Correct a few stability attributes
authorOliver Middleton <olliemail27@gmail.com>
Wed, 4 Apr 2018 23:35:09 +0000 (00:35 +0100)
committerOliver Middleton <olliemail27@gmail.com>
Thu, 5 Apr 2018 14:39:29 +0000 (15:39 +0100)
src/libcore/ascii.rs
src/libcore/iter/range.rs
src/libcore/panic.rs
src/libstd/env.rs
src/libsyntax/feature_gate.rs

index 2c4bccebceb95247d45a42ffbba8130acc351df1..e6b0569281f89b219433d3e1826014009edfa268 100644 (file)
@@ -31,7 +31,7 @@
 /// documentation for more.
 ///
 /// [`escape_default`]: fn.escape_default.html
-#[stable(feature = "core_ascii", since = "1.26.0")]
+#[stable(feature = "rust1", since = "1.0.0")]
 pub struct EscapeDefault {
     range: Range<usize>,
     data: [u8; 4],
@@ -99,7 +99,7 @@ pub struct EscapeDefault {
 /// assert_eq!(b'9', 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 {
     let (data, len) = match c {
         b'\t' => ([b'\\', b't', 0, 0], 2),
index 72b48b565719c90271a57d61cd7a806fe4d5c51c..bcc0e1f05be3e13bed4beb66c5294014c6814c09 100644 (file)
@@ -200,7 +200,7 @@ unsafe impl TrustedLen for ops::Range<$t> { }
 
 macro_rules! range_incl_trusted_len_impl {
     ($($t:ty)*) => ($(
-        #[stable(feature = "inclusive_range", since = "1.26.0")]
+        #[unstable(feature = "trusted_len", issue = "37572")]
         unsafe impl TrustedLen for ops::RangeInclusive<$t> { }
     )*)
 }
index 4e72eaa57c73e9c6e3be208fb68f5246cfee6f0c..1720c9d8c60790a9a171f92c467fedbf86ed8dcf 100644 (file)
@@ -120,6 +120,7 @@ pub fn location(&self) -> Option<&Location> {
     }
 }
 
+#[stable(feature = "panic_hook_display", since = "1.26.0")]
 impl<'a> fmt::Display for PanicInfo<'a> {
     fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
         formatter.write_str("panicked at ")?;
@@ -244,6 +245,7 @@ pub fn column(&self) -> u32 {
     }
 }
 
+#[stable(feature = "panic_hook_display", since = "1.26.0")]
 impl<'a> fmt::Display for Location<'a> {
     fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
         write!(formatter, "{}:{}:{}", self.file, self.line, self.col)
index 320a9f935d45336a8c9f6b90f0ee07428452da54..a103c0bdd598efb06bad612ac870efba86cadad5 100644 (file)
@@ -723,10 +723,10 @@ pub fn args_os() -> ArgsOs {
     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 {}
 
-#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
+#[stable(feature = "env_unimpl_send_sync", since = "1.26.0")]
 impl !Sync for Args {}
 
 #[stable(feature = "env", since = "1.0.0")]
@@ -760,10 +760,10 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
     }
 }
 
-#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
+#[stable(feature = "env_unimpl_send_sync", since = "1.26.0")]
 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 {}
 
 #[stable(feature = "env", since = "1.0.0")]
index e734a4e3735342ff5895290d14780c16a7e1885f..d1348c89faf598d2036bb50fcf4180b2c42ba9ef 100644 (file)
@@ -483,7 +483,7 @@ pub fn walk_feature_fields<F>(&self, mut f: F)
     // allow empty structs and enum variants with braces
     (accepted, braced_empty_structs, "1.8.0", Some(29720), None),
     // 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, globs, "1.0.0", None, None),
     (accepted, if_let, "1.0.0", None, None),