Skip to content
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

Automated pull from upstream stable #67

Merged
merged 46 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
46 commits
Select commit Hold shift click to select a range
486dedd
Replace version placeholders with 1.73.0
Mark-Simulacrum Aug 21, 2023
daa6ebe
Bump channel to beta
Mark-Simulacrum Aug 21, 2023
680cdf8
Auto merge of #115056 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
bors Aug 21, 2023
b73a4b4
Bump to released stable compiler
cuviper Aug 25, 2023
dc84bde
Add projection obligations when comparing impl too
jackh726 Aug 21, 2023
ba87e4d
Auto merge of #115195 - cuviper:beta-next, r=cuviper
bors Aug 25, 2023
b3a82e9
[beta-1.73] Update cargo
weihanglo Aug 27, 2023
bc28abf
Auto merge of #115282 - weihanglo:update-beta-cargo, r=weihanglo
bors Aug 27, 2023
4469dbe
Contents of reachable statics is reachable
tmiasko Aug 22, 2023
0679b95
Revert "Suggest using `Arc` on `!Send`/`!Sync` types"
dtolnay Aug 28, 2023
29c9ed9
Stop emitting non-power-of-two vectors in basic LLVM codegen
scottmcm Aug 26, 2023
85e1b4e
Do not forget to pass DWARF fragment information to LLVM.
cjgillot Aug 23, 2023
b6e160e
Add test with non-ZST.
cjgillot Aug 24, 2023
5d2b78b
Do not produce fragment for ZST.
cjgillot Aug 26, 2023
5e8dc07
Restrict test to x86_64.
cjgillot Aug 26, 2023
20ddd45
rustdoc: use unicode-aware checks for redundant explicit link fastpath
notriddle Aug 21, 2023
9f37cd4
Auto merge of #115442 - cuviper:beta-next, r=cuviper
bors Sep 1, 2023
c14b2b6
unconstrained region vars: do not ICE ICE baby
lcnr Sep 5, 2023
c08cfb8
fix version for abi_thiscall to 1.73.0, which was forgotten to change…
klensy Sep 1, 2023
309468c
rustdoc: correctly deal with self ty params when eliding default obje…
fmease Aug 27, 2023
ea99593
Auto merge of #115722 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
bors Sep 9, 2023
f11aa34
Only suggest turbofish in patterns if we may recover
fmease Sep 12, 2023
9a545c5
Don't require `Drop` for `[PhantomData<T>; N]` where `N` and `T` are …
oli-obk Sep 4, 2023
82f6044
fix(resolve): update def if binding is warning ambiguity
bvanjoi Aug 30, 2023
028f340
Remove assert that checks type equality
ouz-a Aug 25, 2023
9b95397
Auto merge of #115901 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
bors Sep 17, 2023
7a2e8dd
Fix a pthread_t handle leak #114610
g0djan Aug 10, 2023
339665e
address comments
g0djan Aug 16, 2023
dba7025
MCP661: Move wasm32-wasi-preview1-threads to Tier2
g0djan Aug 23, 2023
5d064f2
Don't modify libstd to dump rustc ICEs
compiler-errors Sep 7, 2023
cadecc2
Make ICE backtrace actually match the panic handler
compiler-errors Sep 7, 2023
045efe1
Paper over an accidental regression
oli-obk Sep 14, 2023
fff45e9
Update to LLVM 17.0.0
nikic Sep 19, 2023
7c76587
Auto merge of #116044 - cuviper:beta-next, r=cuviper
bors Sep 22, 2023
b76caa1
Expose try_destructure_mir_constant_for_diagnostics directly to clippy
oli-obk Sep 13, 2023
f425b57
Fix jq in CI
compiler-errors Sep 25, 2023
af9328c
Move to older, mirrored redox install and to newer ubuntu
oli-obk Sep 29, 2023
975e63f
Auto merge of #115819 - oli-obk:try_destructure_mir_constant_for_diag…
bors Sep 29, 2023
4620e74
Only prevent field projections into opaque types, not types containin…
oli-obk Sep 25, 2023
a544df1
Update LLVM submodule
nikic Sep 28, 2023
2ce543c
Auto merge of #116279 - cuviper:beta-next, r=cuviper
bors Sep 29, 2023
6ad39e5
Add release notes & bump channel
Mark-Simulacrum Oct 2, 2023
d3f6573
Backport https://github.com/rust-lang/rust-clippy/pull/11596
Mark-Simulacrum Oct 2, 2023
cc66ad4
Auto merge of #116364 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
bors Oct 3, 2023
191a64d
remove excluded files from upstream
github-actions[bot] Oct 26, 2023
78388c5
pull new changes from upstream
github-actions[bot] Oct 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions compiler/rustc_feature/src/active.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 282,7 @@ declare_features! (
(active, arm_target_feature, "1.27.0", Some(44839), None),
(active, avx512_target_feature, "1.27.0", Some(44839), None),
(active, bpf_target_feature, "1.54.0", Some(44839), None),
(active, csky_target_feature, "CURRENT_RUSTC_VERSION", Some(44839), None),
(active, csky_target_feature, "1.73.0", Some(44839), None),
(active, ermsb_target_feature, "1.49.0", Some(44839), None),
(active, hexagon_target_feature, "1.27.0", Some(44839), None),
(active, mips_target_feature, "1.27.0", Some(44839), None),
Expand Down Expand Up @@ -315,7 315,7 @@ declare_features! (
/// Allows `extern "ptx-*" fn()`.
(active, abi_ptx, "1.15.0", Some(38788), None),
/// Allows `extern "riscv-interrupt-m" fn()` and `extern "riscv-interrupt-s" fn()`.
(active, abi_riscv_interrupt, "CURRENT_RUSTC_VERSION", Some(111889), None),
(active, abi_riscv_interrupt, "1.73.0", Some(111889), None),
/// Allows `extern "x86-interrupt" fn()`.
(active, abi_x86_interrupt, "1.17.0", Some(40180), None),
/// Allows additional const parameter types, such as `&'static str` or user defined types
Expand All @@ -341,7 341,7 @@ declare_features! (
/// Allows async functions to be declared, implemented, and used in traits.
(active, async_fn_in_trait, "1.66.0", Some(91611), None),
/// Allows `#[track_caller]` on async functions.
(active, async_fn_track_caller, "CURRENT_RUSTC_VERSION", Some(110011), None),
(active, async_fn_track_caller, "1.73.0", Some(110011), None),
/// Allows builtin # foo() syntax
(active, builtin_syntax, "1.71.0", Some(110680), None),
/// Allows `c"foo"` literals.
Expand All @@ -353,7 353,7 @@ declare_features! (
/// Allows the use of `#[cfg(overflow_checks)` to check if integer overflow behaviour.
(active, cfg_overflow_checks, "1.71.0", Some(111466), None),
/// Provides the relocation model information as cfg entry
(active, cfg_relocation_model, "CURRENT_RUSTC_VERSION", Some(114929), None),
(active, cfg_relocation_model, "1.73.0", Some(114929), None),
/// Allows the use of `#[cfg(sanitize = "option")]`; set when -Zsanitizer is used.
(active, cfg_sanitize, "1.41.0", Some(39699), None),
/// Allows `cfg(target_abi = "...")`.
Expand Down Expand Up @@ -411,7 411,7 @@ declare_features! (
/// Allows having using `suggestion` in the `#[deprecated]` attribute.
(active, deprecated_suggestion, "1.61.0", Some(94785), None),
/// Allows using the `#[diagnostic]` attribute tool namespace
(active, diagnostic_namespace, "CURRENT_RUSTC_VERSION", Some(94785), None),
(active, diagnostic_namespace, "1.73.0", Some(94785), None),
/// Controls errors in trait implementations.
(active, do_not_recommend, "1.67.0", Some(51992), None),
/// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
Expand Down Expand Up @@ -456,7 456,7 @@ declare_features! (
/// Allows non-trivial generic constants which have to have wfness manually propagated to callers
(incomplete, generic_const_exprs, "1.56.0", Some(76560), None),
/// Allows generic parameters and where-clauses on free & associated const items.
(incomplete, generic_const_items, "CURRENT_RUSTC_VERSION", Some(113521), None),
(incomplete, generic_const_items, "1.73.0", Some(113521), None),
/// Allows using `..=X` as a patterns in slices.
(active, half_open_range_patterns_in_slices, "1.66.0", Some(67264), None),
/// Allows `if let` guard in match arms.
Expand Down
2 changes: 1 addition & 1 deletion library/alloc/src/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2719,7 2719,7 @@ impl<T> Weak<T> {
/// ```
#[inline]
#[stable(feature = "downgraded_weak", since = "1.10.0")]
#[rustc_const_stable(feature = "const_weak_new", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_weak_new", since = "1.73.0")]
#[must_use]
pub const fn new() -> Weak<T> {
Weak {
Expand Down
2 changes: 1 addition & 1 deletion library/alloc/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2501,7 2501,7 @@ impl<T> Weak<T> {
/// ```
#[inline]
#[stable(feature = "downgraded_weak", since = "1.10.0")]
#[rustc_const_stable(feature = "const_weak_new", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_weak_new", since = "1.73.0")]
#[must_use]
pub const fn new() -> Weak<T> {
Weak {
Expand Down
12 changes: 6 additions & 6 deletions library/core/src/num/uint_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2077,8 2077,8 @@ macro_rules! uint_impl {
/// ```
#[doc = concat!("assert_eq!(7_", stringify!($SelfT), ".div_ceil(4), 2);")]
/// ```
#[stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "int_roundings1", since = "1.73.0")]
#[rustc_const_stable(feature = "int_roundings1", since = "1.73.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
Expand Down Expand Up @@ -2113,8 2113,8 @@ macro_rules! uint_impl {
#[doc = concat!("assert_eq!(16_", stringify!($SelfT), ".next_multiple_of(8), 16);")]
#[doc = concat!("assert_eq!(23_", stringify!($SelfT), ".next_multiple_of(8), 24);")]
/// ```
#[stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "int_roundings1", since = "1.73.0")]
#[rustc_const_stable(feature = "int_roundings1", since = "1.73.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
Expand All @@ -2140,8 2140,8 @@ macro_rules! uint_impl {
#[doc = concat!("assert_eq!(1_", stringify!($SelfT), ".checked_next_multiple_of(0), None);")]
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.checked_next_multiple_of(2), None);")]
/// ```
#[stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "int_roundings1", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "int_roundings1", since = "1.73.0")]
#[rustc_const_stable(feature = "int_roundings1", since = "1.73.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/ptr/non_null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 367,7 @@ impl<T: ?Sized> NonNull<T> {
///
/// [the module documentation]: crate::ptr#safety
#[stable(feature = "nonnull", since = "1.25.0")]
#[rustc_const_stable(feature = "const_nonnull_as_ref", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_nonnull_as_ref", since = "1.73.0")]
#[must_use]
#[inline(always)]
pub const unsafe fn as_ref<'a>(&self) -> &'a T {
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/str/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 265,7 @@ unsafe impl SliceIndex<str> for ops::Range<usize> {
/// inclusion/exclusion) does not point to the starting byte offset of
/// a character (as defined by `is_char_boundary`), if `begin > end`, or if
/// `end > len`.
#[stable(feature = "slice_index_str_with_ops_bound_pair", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "slice_index_str_with_ops_bound_pair", since = "1.73.0")]
unsafe impl SliceIndex<str> for (ops::Bound<usize>, ops::Bound<usize>) {
type Output = str;

Expand Down
2 changes: 1 addition & 1 deletion library/std/src/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 156,7 @@

#[stable(feature = "alloc_c_string", since = "1.64.0")]
pub use alloc::ffi::{CString, FromVecWithNulError, IntoStringError, NulError};
#[stable(feature = "cstr_from_bytes_until_nul", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "cstr_from_bytes_until_nul", since = "1.73.0")]
pub use core::ffi::FromBytesUntilNulError;
#[stable(feature = "core_c_str", since = "1.64.0")]
pub use core::ffi::{CStr, FromBytesWithNulError};
Expand Down
6 changes: 3 additions & 3 deletions library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 849,7 @@ impl Seek for File {
}
}

#[stable(feature = "io_traits_arc", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "io_traits_arc", since = "1.73.0")]
impl Read for Arc<File> {
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
(&**self).read(buf)
Expand All @@ -871,7 871,7 @@ impl Read for Arc<File> {
(&**self).read_to_string(buf)
}
}
#[stable(feature = "io_traits_arc", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "io_traits_arc", since = "1.73.0")]
impl Write for Arc<File> {
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
(&**self).write(buf)
Expand All @@ -888,7 888,7 @@ impl Write for Arc<File> {
(&**self).flush()
}
}
#[stable(feature = "io_traits_arc", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "io_traits_arc", since = "1.73.0")]
impl Seek for Arc<File> {
fn seek(&mut self, pos: SeekFrom) -> io::Result<u64> {
(&**self).seek(pos)
Expand Down
4 changes: 2 additions & 2 deletions library/std/src/io/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 100,7 @@ impl SizeHint for Empty {
}
}

#[stable(feature = "empty_write", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "empty_write", since = "1.73.0")]
impl Write for Empty {
#[inline]
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
Expand All @@ -124,7 124,7 @@ impl Write for Empty {
}
}

#[stable(feature = "empty_write", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "empty_write", since = "1.73.0")]
impl Write for &Empty {
#[inline]
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
Expand Down
6 changes: 3 additions & 3 deletions library/std/src/os/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 1007,7 @@ impl DirBuilderExt for fs::DirBuilder {
/// Ok(())
/// }
/// ```
#[stable(feature = "unix_chown", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "unix_chown", since = "1.73.0")]
pub fn chown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::Result<()> {
sys::fs::chown(dir.as_ref(), uid.unwrap_or(u32::MAX), gid.unwrap_or(u32::MAX))
}
Expand All @@ -1027,7 1027,7 @@ pub fn chown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::
/// Ok(())
/// }
/// ```
#[stable(feature = "unix_chown", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "unix_chown", since = "1.73.0")]
pub fn fchown<F: AsFd>(fd: F, uid: Option<u32>, gid: Option<u32>) -> io::Result<()> {
sys::fs::fchown(fd.as_fd().as_raw_fd(), uid.unwrap_or(u32::MAX), gid.unwrap_or(u32::MAX))
}
Expand All @@ -1047,7 1047,7 @@ pub fn fchown<F: AsFd>(fd: F, uid: Option<u32>, gid: Option<u32>) -> io::Result<
/// Ok(())
/// }
/// ```
#[stable(feature = "unix_chown", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "unix_chown", since = "1.73.0")]
pub fn lchown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::Result<()> {
sys::fs::lchown(dir.as_ref(), uid.unwrap_or(u32::MAX), gid.unwrap_or(u32::MAX))
}
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 1535,7 @@ impl From<fs::File> for Stdio {
pub struct ExitStatus(imp::ExitStatus);

/// The default value is one which indicates successful completion.
#[stable(feature = "process-exitcode-default", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "process-exitcode-default", since = "1.73.0")]
impl Default for ExitStatus {
fn default() -> Self {
// Ideally this would be done by ExitCode::default().into() but that is complicated.
Expand Down
18 changes: 9 additions & 9 deletions library/std/src/thread/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 325,7 @@ impl<T: 'static> LocalKey<Cell<T>> {
///
/// assert_eq!(X.get(), 123);
/// ```
#[stable(feature = "local_key_cell_methods", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "local_key_cell_methods", since = "1.73.0")]
pub fn set(&'static self, value: T) {
self.initialize_with(Cell::new(value), |value, cell| {
if let Some(value) = value {
Expand Down Expand Up @@ -358,7 358,7 @@ impl<T: 'static> LocalKey<Cell<T>> {
///
/// assert_eq!(X.get(), 1);
/// ```
#[stable(feature = "local_key_cell_methods", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "local_key_cell_methods", since = "1.73.0")]
pub fn get(&'static self) -> T
where
T: Copy,
Expand Down Expand Up @@ -388,7 388,7 @@ impl<T: 'static> LocalKey<Cell<T>> {
/// assert_eq!(X.take(), Some(1));
/// assert_eq!(X.take(), None);
/// ```
#[stable(feature = "local_key_cell_methods", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "local_key_cell_methods", since = "1.73.0")]
pub fn take(&'static self) -> T
where
T: Default,
Expand Down Expand Up @@ -418,7 418,7 @@ impl<T: 'static> LocalKey<Cell<T>> {
/// assert_eq!(X.replace(2), 1);
/// assert_eq!(X.replace(3), 2);
/// ```
#[stable(feature = "local_key_cell_methods", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "local_key_cell_methods", since = "1.73.0")]
pub fn replace(&'static self, value: T) -> T {
self.with(|cell| cell.replace(value))
}
Expand Down Expand Up @@ -448,7 448,7 @@ impl<T: 'static> LocalKey<RefCell<T>> {
///
/// X.with_borrow(|v| assert!(v.is_empty()));
/// ```
#[stable(feature = "local_key_cell_methods", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "local_key_cell_methods", since = "1.73.0")]
pub fn with_borrow<F, R>(&'static self, f: F) -> R
where
F: FnOnce(&T) -> R,
Expand Down Expand Up @@ -481,7 481,7 @@ impl<T: 'static> LocalKey<RefCell<T>> {
///
/// X.with_borrow(|v| assert_eq!(*v, vec![1]));
/// ```
#[stable(feature = "local_key_cell_methods", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "local_key_cell_methods", since = "1.73.0")]
pub fn with_borrow_mut<F, R>(&'static self, f: F) -> R
where
F: FnOnce(&mut T) -> R,
Expand Down Expand Up @@ -517,7 517,7 @@ impl<T: 'static> LocalKey<RefCell<T>> {
///
/// X.with_borrow(|v| assert_eq!(*v, vec![1, 2, 3]));
/// ```
#[stable(feature = "local_key_cell_methods", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "local_key_cell_methods", since = "1.73.0")]
pub fn set(&'static self, value: T) {
self.initialize_with(RefCell::new(value), |value, cell| {
if let Some(value) = value {
Expand Down Expand Up @@ -558,7 558,7 @@ impl<T: 'static> LocalKey<RefCell<T>> {
///
/// X.with_borrow(|v| assert!(v.is_empty()));
/// ```
#[stable(feature = "local_key_cell_methods", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "local_key_cell_methods", since = "1.73.0")]
pub fn take(&'static self) -> T
where
T: Default,
Expand Down Expand Up @@ -589,7 589,7 @@ impl<T: 'static> LocalKey<RefCell<T>> {
///
/// X.with_borrow(|v| assert_eq!(*v, vec![1, 2, 3]));
/// ```
#[stable(feature = "local_key_cell_methods", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "local_key_cell_methods", since = "1.73.0")]
pub fn replace(&'static self, value: T) -> T {
self.with(|cell| cell.replace(value))
}
Expand Down
2 changes: 1 addition & 1 deletion src/ci/channel
Original file line number Diff line number Diff line change
@@ -1 1 @@
nightly
beta