Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 78cd779

Browse files
committedJul 28, 2024
Update CURRENT_RUSTC_VERSION
1 parent 1f83bf3 commit 78cd779

File tree

12 files changed

+23
-23
lines changed

12 files changed

+23
-23
lines changed
 

‎core/src/char/methods.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl char {
225225
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
226226
#[rustc_const_stable(
227227
feature = "const_char_from_u32_unchecked",
228-
since = "CURRENT_RUSTC_VERSION"
228+
since = "1.81.0"
229229
)]
230230
#[must_use]
231231
#[inline]

‎core/src/char/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub const fn from_u32(i: u32) -> Option<char> {
126126
/// Converts a `u32` to a `char`, ignoring validity. Use [`char::from_u32_unchecked`].
127127
/// instead.
128128
#[stable(feature = "char_from_unchecked", since = "1.5.0")]
129-
#[rustc_const_stable(feature = "const_char_from_u32_unchecked", since = "CURRENT_RUSTC_VERSION")]
129+
#[rustc_const_stable(feature = "const_char_from_u32_unchecked", since = "1.81.0")]
130130
#[must_use]
131131
#[inline]
132132
pub const unsafe fn from_u32_unchecked(i: u32) -> char {

‎core/src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![doc = include_str!("error.md")]
2-
#![stable(feature = "error_in_core", since = "CURRENT_RUSTC_VERSION")]
2+
#![stable(feature = "error_in_core", since = "1.81.0")]
33

44
#[cfg(test)]
55
mod tests;

‎core/src/ffi/c_str.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl CStr {
277277
#[inline] // inline is necessary for codegen to see strlen.
278278
#[must_use]
279279
#[stable(feature = "rust1", since = "1.0.0")]
280-
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "CURRENT_RUSTC_VERSION")]
280+
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "1.81.0")]
281281
pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr {
282282
// SAFETY: The caller has provided a pointer that points to a valid C
283283
// string with a NUL terminator less than `isize::MAX` from `ptr`.
@@ -539,7 +539,7 @@ impl CStr {
539539
#[must_use]
540540
#[doc(alias("len", "strlen"))]
541541
#[stable(feature = "cstr_count_bytes", since = "1.79.0")]
542-
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "CURRENT_RUSTC_VERSION")]
542+
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "1.81.0")]
543543
pub const fn count_bytes(&self) -> usize {
544544
self.inner.len() - 1
545545
}
@@ -734,7 +734,7 @@ impl AsRef<CStr> for CStr {
734734
/// located within `isize::MAX` from `ptr`.
735735
#[inline]
736736
#[unstable(feature = "cstr_internals", issue = "none")]
737-
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "CURRENT_RUSTC_VERSION")]
737+
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "1.81.0")]
738738
#[rustc_allow_const_fn_unstable(const_eval_select)]
739739
const unsafe fn strlen(ptr: *const c_char) -> usize {
740740
const fn strlen_ct(s: *const c_char) -> usize {

‎core/src/hint.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ pub const unsafe fn unreachable_unchecked() -> ! {
195195
#[track_caller]
196196
#[inline(always)]
197197
#[doc(alias = "assume")]
198-
#[stable(feature = "hint_assert_unchecked", since = "CURRENT_RUSTC_VERSION")]
199-
#[rustc_const_stable(feature = "hint_assert_unchecked", since = "CURRENT_RUSTC_VERSION")]
198+
#[stable(feature = "hint_assert_unchecked", since = "1.81.0")]
199+
#[rustc_const_stable(feature = "hint_assert_unchecked", since = "1.81.0")]
200200
pub const unsafe fn assert_unchecked(cond: bool) {
201201
// SAFETY: The caller promised `cond` is true.
202202
unsafe {

‎core/src/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::any::Any;
1212
pub use self::location::Location;
1313
#[stable(feature = "panic_hooks", since = "1.10.0")]
1414
pub use self::panic_info::PanicInfo;
15-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
15+
#[stable(feature = "panic_info_message", since = "1.81.0")]
1616
pub use self::panic_info::PanicMessage;
1717
#[stable(feature = "catch_unwind", since = "1.9.0")]
1818
pub use self::unwind_safe::{AssertUnwindSafe, RefUnwindSafe, UnwindSafe};

‎core/src/panic/panic_info.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct PanicInfo<'a> {
2424
/// that were given to the `panic!()` macro.
2525
///
2626
/// See [`PanicInfo::message`].
27-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
27+
#[stable(feature = "panic_info_message", since = "1.81.0")]
2828
pub struct PanicMessage<'a> {
2929
message: fmt::Arguments<'a>,
3030
}
@@ -57,7 +57,7 @@ impl<'a> PanicInfo<'a> {
5757
/// }
5858
/// ```
5959
#[must_use]
60-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
60+
#[stable(feature = "panic_info_message", since = "1.81.0")]
6161
pub fn message(&self) -> PanicMessage<'_> {
6262
PanicMessage { message: self.message }
6363
}
@@ -164,7 +164,7 @@ impl<'a> PanicMessage<'a> {
164164
/// For most cases with placeholders, this function will return `None`.
165165
///
166166
/// See [`fmt::Arguments::as_str`] for details.
167-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
167+
#[stable(feature = "panic_info_message", since = "1.81.0")]
168168
#[rustc_const_unstable(feature = "const_arguments_as_str", issue = "103900")]
169169
#[must_use]
170170
#[inline]
@@ -173,15 +173,15 @@ impl<'a> PanicMessage<'a> {
173173
}
174174
}
175175

176-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
176+
#[stable(feature = "panic_info_message", since = "1.81.0")]
177177
impl Display for PanicMessage<'_> {
178178
#[inline]
179179
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
180180
formatter.write_fmt(self.message)
181181
}
182182
}
183183

184-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
184+
#[stable(feature = "panic_info_message", since = "1.81.0")]
185185
impl fmt::Debug for PanicMessage<'_> {
186186
#[inline]
187187
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {

‎core/src/sync/atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ impl AtomicBool {
10801080
/// assert_eq!(foo.load(Ordering::SeqCst), true);
10811081
/// ```
10821082
#[inline]
1083-
#[stable(feature = "atomic_bool_fetch_not", since = "CURRENT_RUSTC_VERSION")]
1083+
#[stable(feature = "atomic_bool_fetch_not", since = "1.81.0")]
10841084
#[cfg(target_has_atomic = "8")]
10851085
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
10861086
pub fn fetch_not(&self, order: Ordering) -> bool {

‎core/src/time.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@ impl Duration {
625625
/// assert_eq!(Duration::new(100, 0).abs_diff(Duration::new(80, 0)), Duration::new(20, 0));
626626
/// assert_eq!(Duration::new(100, 400_000_000).abs_diff(Duration::new(110, 0)), Duration::new(9, 600_000_000));
627627
/// ```
628-
#[stable(feature = "duration_abs_diff", since = "CURRENT_RUSTC_VERSION")]
629-
#[rustc_const_stable(feature = "duration_abs_diff", since = "CURRENT_RUSTC_VERSION")]
628+
#[stable(feature = "duration_abs_diff", since = "1.81.0")]
629+
#[rustc_const_stable(feature = "duration_abs_diff", since = "1.81.0")]
630630
#[rustc_allow_const_fn_unstable(const_option)]
631631
#[must_use = "this returns the result of the operation, \
632632
without modifying the original"]

‎std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2744,7 +2744,7 @@ impl AsInnerMut<fs_imp::DirBuilder> for DirBuilder {
27442744
/// ```
27452745
///
27462746
/// [`Path::exists`]: crate::path::Path::exists
2747-
#[stable(feature = "fs_try_exists", since = "CURRENT_RUSTC_VERSION")]
2747+
#[stable(feature = "fs_try_exists", since = "1.81.0")]
27482748
#[inline]
27492749
pub fn exists<P: AsRef<Path>>(path: P) -> io::Result<bool> {
27502750
fs_imp::exists(path.as_ref())

‎std/src/io/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ impl<'a> IoSliceMut<'a> {
12661266
/// buf.advance(3);
12671267
/// assert_eq!(buf.deref(), [1; 5].as_ref());
12681268
/// ```
1269-
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
1269+
#[stable(feature = "io_slice_advance", since = "1.81.0")]
12701270
#[inline]
12711271
pub fn advance(&mut self, n: usize) {
12721272
self.0.advance(n)
@@ -1305,7 +1305,7 @@ impl<'a> IoSliceMut<'a> {
13051305
/// assert_eq!(bufs[0].deref(), [2; 14].as_ref());
13061306
/// assert_eq!(bufs[1].deref(), [3; 8].as_ref());
13071307
/// ```
1308-
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
1308+
#[stable(feature = "io_slice_advance", since = "1.81.0")]
13091309
#[inline]
13101310
pub fn advance_slices(bufs: &mut &mut [IoSliceMut<'a>], n: usize) {
13111311
// Number of buffers to remove.
@@ -1406,7 +1406,7 @@ impl<'a> IoSlice<'a> {
14061406
/// buf.advance(3);
14071407
/// assert_eq!(buf.deref(), [1; 5].as_ref());
14081408
/// ```
1409-
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
1409+
#[stable(feature = "io_slice_advance", since = "1.81.0")]
14101410
#[inline]
14111411
pub fn advance(&mut self, n: usize) {
14121412
self.0.advance(n)
@@ -1444,7 +1444,7 @@ impl<'a> IoSlice<'a> {
14441444
/// IoSlice::advance_slices(&mut bufs, 10);
14451445
/// assert_eq!(bufs[0].deref(), [2; 14].as_ref());
14461446
/// assert_eq!(bufs[1].deref(), [3; 8].as_ref());
1447-
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
1447+
#[stable(feature = "io_slice_advance", since = "1.81.0")]
14481448
#[inline]
14491449
pub fn advance_slices(bufs: &mut &mut [IoSlice<'a>], n: usize) {
14501450
// Number of buffers to remove.

‎std/src/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub type PanicInfo<'a> = PanicHookInfo<'a>;
3939
/// ```
4040
///
4141
/// [`set_hook`]: ../../std/panic/fn.set_hook.html
42-
#[stable(feature = "panic_hook_info", since = "CURRENT_RUSTC_VERSION")]
42+
#[stable(feature = "panic_hook_info", since = "1.81.0")]
4343
#[derive(Debug)]
4444
pub struct PanicHookInfo<'a> {
4545
payload: &'a (dyn Any + Send),

0 commit comments

Comments
 (0)
Failed to load comments.