mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Auto merge of #105607 - pietroalbini:pa-beta-1.67.0, r=pietroalbini
[beta] Prepare beta 1.67.0 This PR changes the branch to beta and updates the stabilization version numbers. r? `@ghost`
This commit is contained in:
@@ -192,7 +192,7 @@ macro_rules! declare_features {
|
||||
/// Allows irrefutable patterns in `if let` and `while let` statements (RFC 2086).
|
||||
(accepted, irrefutable_let_patterns, "1.33.0", Some(44495), None),
|
||||
/// Allows `#[instruction_set(_)]` attribute.
|
||||
(accepted, isa_attribute, "CURRENT_RUSTC_VERSION", Some(74727), None),
|
||||
(accepted, isa_attribute, "1.67.0", Some(74727), None),
|
||||
/// Allows some increased flexibility in the name resolution rules,
|
||||
/// especially around globs and shadowing (RFC 1560).
|
||||
(accepted, item_like_imports, "1.15.0", Some(35120), None),
|
||||
@@ -238,7 +238,7 @@ macro_rules! declare_features {
|
||||
/// Allows specifying the bundle link modifier
|
||||
(accepted, native_link_modifiers_bundle, "1.63.0", Some(81490), None),
|
||||
/// Allows specifying the verbatim link modifier
|
||||
(accepted, native_link_modifiers_verbatim, "CURRENT_RUSTC_VERSION", Some(81490), None),
|
||||
(accepted, native_link_modifiers_verbatim, "1.67.0", Some(81490), None),
|
||||
/// Allows specifying the whole-archive link modifier
|
||||
(accepted, native_link_modifiers_whole_archive, "1.61.0", Some(81490), None),
|
||||
/// Allows using non lexical lifetimes (RFC 2094).
|
||||
|
||||
@@ -420,7 +420,7 @@ pub fn set(&self, features: &mut Features, span: Span) {
|
||||
/// Allows `impl Trait` as output type in `Fn` traits in return position of functions.
|
||||
(active, impl_trait_in_fn_trait_return, "1.64.0", Some(99697), None),
|
||||
/// Allows referencing `Self` and projections in impl-trait.
|
||||
(active, impl_trait_projections, "CURRENT_RUSTC_VERSION", Some(103532), None),
|
||||
(active, impl_trait_projections, "1.67.0", Some(103532), None),
|
||||
/// Allows using imported `main` function
|
||||
(active, imported_main, "1.53.0", Some(28937), None),
|
||||
/// Allows associated types in inherent impls.
|
||||
@@ -507,7 +507,7 @@ pub fn set(&self, features: &mut Features, span: Span) {
|
||||
/// Allows lints part of the strict provenance effort.
|
||||
(active, strict_provenance, "1.61.0", Some(95228), None),
|
||||
/// Allows string patterns to dereference values to match them.
|
||||
(active, string_deref_patterns, "CURRENT_RUSTC_VERSION", Some(87121), None),
|
||||
(active, string_deref_patterns, "1.67.0", Some(87121), None),
|
||||
/// Allows the use of `#[target_feature]` on safe functions.
|
||||
(active, target_feature_11, "1.45.0", Some(69098), None),
|
||||
/// Allows using `#[thread_local]` on `static` items.
|
||||
|
||||
@@ -140,7 +140,7 @@ pub fn decode_utf16<I: IntoIterator<Item = u16>>(iter: I) -> DecodeUtf16<I::Into
|
||||
/// assert_eq!(None, c);
|
||||
/// ```
|
||||
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn from_u32(i: u32) -> Option<char> {
|
||||
@@ -241,7 +241,7 @@ pub const fn from_u32(i: u32) -> Option<char> {
|
||||
/// let _c = char::from_digit(1, 37);
|
||||
/// ```
|
||||
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn from_digit(num: u32, radix: u32) -> Option<char> {
|
||||
@@ -338,7 +338,7 @@ pub fn is_digit(self, radix: u32) -> bool {
|
||||
/// let _ = '1'.to_digit(37);
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
||||
@@ -110,7 +110,7 @@ pub fn decode_utf16<I: IntoIterator<Item = u16>>(iter: I) -> DecodeUtf16<I::Into
|
||||
|
||||
/// Converts a `u32` to a `char`. Use [`char::from_u32`] instead.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn from_u32(i: u32) -> Option<char> {
|
||||
@@ -130,7 +130,7 @@ pub const fn from_u32(i: u32) -> Option<char> {
|
||||
|
||||
/// Converts a digit in the given radix to a `char`. Use [`char::from_digit`] instead.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn from_digit(num: u32, radix: u32) -> Option<char> {
|
||||
|
||||
@@ -2290,8 +2290,8 @@ pub const fn checked_next_multiple_of(self, rhs: Self) -> Option<Self> {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".ilog(5), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
@@ -2313,8 +2313,8 @@ pub const fn ilog(self, base: Self) -> u32 {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(2", stringify!($SelfT), ".ilog2(), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
@@ -2335,8 +2335,8 @@ pub const fn ilog2(self) -> u32 {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".ilog10(), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
@@ -2360,8 +2360,8 @@ pub const fn ilog10(self) -> u32 {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".checked_ilog(5), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@@ -2396,8 +2396,8 @@ pub const fn checked_ilog(self, base: Self) -> Option<u32> {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(2", stringify!($SelfT), ".checked_ilog2(), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@@ -2420,8 +2420,8 @@ pub const fn checked_ilog2(self) -> Option<u32> {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_ilog10(), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
||||
@@ -462,8 +462,8 @@ pub const fn checked_next_power_of_two(self) -> Option<$Ty> {
|
||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(8).unwrap().ilog2(), 3);")]
|
||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(9).unwrap().ilog2(), 3);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@@ -486,8 +486,8 @@ pub const fn ilog2(self) -> u32 {
|
||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(100).unwrap().ilog10(), 2);")]
|
||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(101).unwrap().ilog10(), 2);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@@ -1253,7 +1253,7 @@ impl $Ty {
|
||||
///
|
||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::BITS, ", stringify!($Int), "::BITS);")]
|
||||
/// ```
|
||||
#[stable(feature = "nonzero_bits", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "nonzero_bits", since = "1.67.0")]
|
||||
pub const BITS: u32 = <$Int>::BITS;
|
||||
}
|
||||
)+
|
||||
|
||||
@@ -703,8 +703,8 @@ pub const fn checked_rem_euclid(self, rhs: Self) -> Option<Self> {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".ilog(5), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
@@ -726,8 +726,8 @@ pub const fn ilog(self, base: Self) -> u32 {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(2", stringify!($SelfT), ".ilog2(), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
@@ -748,8 +748,8 @@ pub const fn ilog2(self) -> u32 {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".ilog10(), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
@@ -773,8 +773,8 @@ pub const fn ilog10(self) -> u32 {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".checked_ilog(5), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@@ -809,8 +809,8 @@ pub const fn checked_ilog(self, base: Self) -> Option<u32> {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(2", stringify!($SelfT), ".checked_ilog2(), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@@ -831,8 +831,8 @@ pub const fn checked_ilog2(self) -> Option<u32> {
|
||||
/// ```
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_ilog10(), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
||||
+31
-25
@@ -1470,7 +1470,7 @@ fn filter(contents: &str, marker: &str) -> String {
|
||||
|
||||
let xform = |p: &Path| {
|
||||
let mut contents = t!(fs::read_to_string(p));
|
||||
for tool in &["rust-demangler"] {
|
||||
for tool in &["rust-demangler", "miri"] {
|
||||
if !built_tools.contains(tool) {
|
||||
contents = filter(&contents, tool);
|
||||
}
|
||||
@@ -1510,9 +1510,8 @@ fn filter(contents: &str, marker: &str) -> String {
|
||||
prepare("rust-std");
|
||||
prepare("rust-analysis");
|
||||
prepare("clippy");
|
||||
prepare("miri");
|
||||
prepare("rust-analyzer");
|
||||
for tool in &["rust-docs", "rust-demangler"] {
|
||||
for tool in &["rust-docs", "rust-demangler", "miri"] {
|
||||
if built_tools.contains(tool) {
|
||||
prepare(tool);
|
||||
}
|
||||
@@ -1571,9 +1570,8 @@ fn filter(contents: &str, marker: &str) -> String {
|
||||
prepare("rust-docs");
|
||||
prepare("rust-std");
|
||||
prepare("clippy");
|
||||
prepare("miri");
|
||||
prepare("rust-analyzer");
|
||||
for tool in &["rust-demangler"] {
|
||||
for tool in &["rust-demangler", "miri"] {
|
||||
if built_tools.contains(tool) {
|
||||
prepare(tool);
|
||||
}
|
||||
@@ -1710,23 +1708,25 @@ fn filter(contents: &str, marker: &str) -> String {
|
||||
.arg(etc.join("msi/remove-duplicates.xsl")),
|
||||
);
|
||||
}
|
||||
builder.run(
|
||||
Command::new(&heat)
|
||||
.current_dir(&exe)
|
||||
.arg("dir")
|
||||
.arg("miri")
|
||||
.args(&heat_flags)
|
||||
.arg("-cg")
|
||||
.arg("MiriGroup")
|
||||
.arg("-dr")
|
||||
.arg("Miri")
|
||||
.arg("-var")
|
||||
.arg("var.MiriDir")
|
||||
.arg("-out")
|
||||
.arg(exe.join("MiriGroup.wxs"))
|
||||
.arg("-t")
|
||||
.arg(etc.join("msi/remove-duplicates.xsl")),
|
||||
);
|
||||
if built_tools.contains("miri") {
|
||||
builder.run(
|
||||
Command::new(&heat)
|
||||
.current_dir(&exe)
|
||||
.arg("dir")
|
||||
.arg("miri")
|
||||
.args(&heat_flags)
|
||||
.arg("-cg")
|
||||
.arg("MiriGroup")
|
||||
.arg("-dr")
|
||||
.arg("Miri")
|
||||
.arg("-var")
|
||||
.arg("var.MiriDir")
|
||||
.arg("-out")
|
||||
.arg(exe.join("MiriGroup.wxs"))
|
||||
.arg("-t")
|
||||
.arg(etc.join("msi/remove-duplicates.xsl")),
|
||||
);
|
||||
}
|
||||
builder.run(
|
||||
Command::new(&heat)
|
||||
.current_dir(&exe)
|
||||
@@ -1774,7 +1774,6 @@ fn filter(contents: &str, marker: &str) -> String {
|
||||
.arg("-dStdDir=rust-std")
|
||||
.arg("-dAnalysisDir=rust-analysis")
|
||||
.arg("-dClippyDir=clippy")
|
||||
.arg("-dMiriDir=miri")
|
||||
.arg("-arch")
|
||||
.arg(&arch)
|
||||
.arg("-out")
|
||||
@@ -1788,6 +1787,9 @@ fn filter(contents: &str, marker: &str) -> String {
|
||||
if built_tools.contains("rust-analyzer") {
|
||||
cmd.arg("-dRustAnalyzerDir=rust-analyzer");
|
||||
}
|
||||
if built_tools.contains("miri") {
|
||||
cmd.arg("-dMiriDir=miri");
|
||||
}
|
||||
if target.ends_with("windows-gnu") {
|
||||
cmd.arg("-dGccDir=rust-mingw");
|
||||
}
|
||||
@@ -1801,7 +1803,9 @@ fn filter(contents: &str, marker: &str) -> String {
|
||||
candle("CargoGroup.wxs".as_ref());
|
||||
candle("StdGroup.wxs".as_ref());
|
||||
candle("ClippyGroup.wxs".as_ref());
|
||||
candle("MiriGroup.wxs".as_ref());
|
||||
if built_tools.contains("miri") {
|
||||
candle("MiriGroup.wxs".as_ref());
|
||||
}
|
||||
if built_tools.contains("rust-demangler") {
|
||||
candle("RustDemanglerGroup.wxs".as_ref());
|
||||
}
|
||||
@@ -1837,9 +1841,11 @@ fn filter(contents: &str, marker: &str) -> String {
|
||||
.arg("StdGroup.wixobj")
|
||||
.arg("AnalysisGroup.wixobj")
|
||||
.arg("ClippyGroup.wixobj")
|
||||
.arg("MiriGroup.wixobj")
|
||||
.current_dir(&exe);
|
||||
|
||||
if built_tools.contains("miri") {
|
||||
cmd.arg("MiriGroup.wixobj");
|
||||
}
|
||||
if built_tools.contains("rust-analyzer") {
|
||||
cmd.arg("RustAnalyzerGroup.wixobj");
|
||||
}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
nightly
|
||||
beta
|
||||
|
||||
Reference in New Issue
Block a user