-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stabilize more APIs for the 1.20.0 release #43373
Conversation
Note that I've explicitly omitted |
r? @aturon |
(or @sfackler) |
@@ -445,6 +444,8 @@ declare_features! ( | |||
// Allows the definition of associated constants in `trait` or `impl` | |||
// blocks. | |||
(accepted, associated_consts, "1.20.0", Some(29646)), | |||
// Usage of the `compile_error!` macro | |||
(accepted, compile_error, "1.20.0", Some(40872)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[00:04:22] error[E0026]: struct `feature_gate::Features` does not have a field named `compile_error`
[00:04:22] --> /checkout/src/libsyntax/ext/expand.rs:1044:35
[00:04:22] |
[00:04:22] 1013 | | Some(&Features { $field: true, .. }) => true,
[00:04:22] | |__________________________________________________^ struct `feature_gate::Features` does not have field `compile_error`
[00:04:22] ...
[00:04:22] 1034 | |/ feature_tests! {
[00:04:22] 1035 | || fn enable_quotes = quote,
[00:04:22] 1036 | || fn enable_asm = asm,
[00:04:22] 1037 | || fn enable_global_asm = global_asm,
[00:04:22] ... ||
[00:04:22] 1044 | | fn enable_compile_error = compile_error,
[00:04:22] | |___________________________________^
[00:04:22] 1045 | | }
[00:04:22] | |_____- in this macro invocation
[00:04:22]
[00:04:22] error: aborting due to previous error(s)
[00:04:22]
[00:04:22] error: Could not compile `syntax`.
79866b6
to
b8ce384
Compare
☔ The latest upstream changes (presumably #43367) made this pull request unmergeable. Please resolve the merge conflicts. |
b8ce384
to
093d38c
Compare
LGTM. Fire at will. |
libstd doc tests failed.
|
Stabilizes: * `<char>::escape_debug` * `std::char::EscapeDebug` Closes rust-lang#35068
Stabilized: * `Option::get_or_insert` * `Option::get_or_insert_with` Closes rust-lang#39288
Stabilized * `<str>::get` * `<str>::get_mut` * `<str>::get_unchecked` * `<str>::get_unchecked_mut` Closes rust-lang#39932
Stabilizes: * `CString::as_c_str` * `CString::into_boxed_c_str` * `CStr::into_c_string` * `OsString::into_boxed_os_str` * `OsStr::into_os_string` * `PathBuf::into_boxed_path` * `PathBuf::into_path_buf` Closes rust-lang#40380
Stabilizes: * `Utf8Error::error_len` Closes rust-lang#40494
Stabilizes * `core::mem::ManuallyDrop` * `std::mem::ManuallyDrop` * `ManuallyDrop::new` * `ManuallyDrop::into_inner` * `ManuallyDrop::drop` * `Deref for ManuallyDrop` * `DerefMut for ManuallyDrop` Closes rust-lang#40673
Stabilizes: * `compile_error!` as a macro defined by rustc Closes rust-lang#40872
Stabilizes * `<&mut str>::as_bytes_mut` * `<Box<str>>::into_boxed_bytes` * `std::str::from_boxed_utf8_unchecked` * `std::str::from_utf8_mut` * `std::str::from_utf8_unchecked_mut` Closes rust-lang#41119
093d38c
to
16707d4
Compare
@bors: r=aturon |
📌 Commit 16707d4 has been approved by |
⌛ Testing commit 16707d4 with merge de2eadaa672db502230b61325cd3afaa57fc2a59... |
💔 Test failed - status-travis |
|
Stabilize more APIs for the 1.20.0 release In addition to the few stabilizations that have already landed, this cleans up the remaining APIs that are in `final-comment-period` right now to be stable by the 1.20.0 release
☀️ Test successful - status-appveyor, status-travis |
@alexcrichton What does mean for |
@Aaronepower oh that's actually mostly irrelevant in terms of stabilization, the real stabilization here is methods like |
Correct a few stability attributes * The extra impls for `ManuallyDrop` were added in rust-lang#44310 which was only stabilised in 1.22.0. * The impls for `SliceIndex` were stabilised in rust-lang#43373 but as `RangeInclusive` and `RangeToInclusive` are still unstable the impls should remain unstable. * The `From` impls for atomic integers were added in rust-lang#45610 but most atomic integers are still unstable. * The `shared_from_slice2` impls were added in rust-lang#45990 but they won't be stable until 1.24.0. * The `Mutex` and `RwLock` impls were added in rust-lang#46082 but won't be stable until 1.24.0.
Correct a few stability attributes * The extra impls for `ManuallyDrop` were added in rust-lang#44310 which was only stabilised in 1.22.0. * The impls for `SliceIndex` were stabilised in rust-lang#43373 but as `RangeInclusive` and `RangeToInclusive` are still unstable the impls should remain unstable. * The `From` impls for atomic integers were added in rust-lang#45610 but most atomic integers are still unstable. * The `shared_from_slice2` impls were added in rust-lang#45990 but they won't be stable until 1.24.0. * The `Mutex` and `RwLock` impls were added in rust-lang#46082 but won't be stable until 1.24.0.
Correct a few stability attributes * The extra impls for `ManuallyDrop` were added in rust-lang#44310 which was only stabilised in 1.22.0. * The impls for `SliceIndex` were stabilised in rust-lang#43373 but as `RangeInclusive` and `RangeToInclusive` are still unstable the impls should remain unstable. * The `From` impls for atomic integers were added in rust-lang#45610 but most atomic integers are still unstable. * The `shared_from_slice2` impls were added in rust-lang#45990 but they won't be stable until 1.24.0. * The `Mutex` and `RwLock` impls were added in rust-lang#46082 but won't be stable until 1.24.0.
In addition to the few stabilizations that have already landed, this cleans up the remaining APIs that are in
final-comment-period
right now to be stable by the 1.20.0 release