Skip to content
Merged

Rustup #5287

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
3a204d7
Merge ref '1e5ee3563742' from rust-lang/rust
folkertdev Aug 13, 2026
b7f09f4
Merge pull request #2207 from folkertdev/rustc-sync-2026-09-13
folkertdev Aug 13, 2026
5170b46
Install cargo tools with locked dependencies
konstin Aug 20, 2026
fae5b45
Remove changes that belong in other repositories
konstin Aug 20, 2026
8ffbb53
Auto merge of #161260 - weihanglo:cc-1.4.3, r=Kobzol
bors Aug 21, 2026
db59745
Auto merge of #161268 - nnethercote:fix-160994, r=lcnr
bors Aug 22, 2026
1a544c7
Auto merge of #161274 - sjwang05:fast-visit, r=lcnr
bors Aug 22, 2026
df9bd0b
enable next solver in Miri
RalfJung Aug 22, 2026
a1655f0
Rollup merge of #161475 - Kobzol:bootstrap-llvm-check-fix, r=jieyouxu
JonathanBrouwer Aug 22, 2026
d15074d
Rollup merge of #161269 - nnethercote:rm-impl-DebugWithContext-for-Bo…
JonathanBrouwer Aug 22, 2026
10fb16a
Rollup merge of #161419 - zachs18:doclink-replacement_character, r=ha…
JonathanBrouwer Aug 22, 2026
58b5b66
Rollup merge of #161428 - konstin:konsti/cargo-install-locked, r=folk…
JonathanBrouwer Aug 22, 2026
b320ad1
Rollup merge of #161512 - RalfJung:miri-next, r=Kivooeo
JonathanBrouwer Aug 22, 2026
66f959a
Rollup merge of #161516 - Kobzol:revert-161236, r=jieyouxu
JonathanBrouwer Aug 22, 2026
4a71e8a
Rollup merge of #161518 - cyrgani:libs-api, r=jieyouxu
JonathanBrouwer Aug 22, 2026
ba9b5d7
Auto merge of #161533 - JonathanBrouwer:rollup-czcbzXR, r=JonathanBro…
bors Aug 22, 2026
b3cda47
Auto merge of #161211 - nnethercote:opt-DeepRejectCtxt, r=jdonszelmann
bors Aug 22, 2026
fe9d885
Allow `dropping_copy_types` lint in Miri tests
Urgau Jul 30, 2026
fe0cb69
Auto merge of #157513 - Dnreikronos:fix-tracing-const-arg-157152, r=B…
bors Aug 22, 2026
9d94e8b
Rollup merge of #161558 - folkertdev:stdarch-sync-2026-09-22, r=folke…
jhpratt Aug 22, 2026
d84b2c4
Rollup merge of #159887 - AayushMainali-Github:fix-142737-forward-dis…
jhpratt Aug 22, 2026
49b62fd
Rollup merge of #160229 - Urgau:extend-drop_useless-drop-in-place, r=…
jhpratt Aug 22, 2026
aabd371
Rollup merge of #160949 - beetrees:f128-inline-asm-sparc, r=folkertdev
jhpratt Aug 22, 2026
b30148b
Rollup merge of #156160 - kx0101:cow-vec-symmetric-partialeq, r=Mark-…
jhpratt Aug 22, 2026
792e3dc
Rollup merge of #160914 - ada4a:GenericTypeVisitable-bounds, r=Jonath…
jhpratt Aug 22, 2026
1411d92
Rollup merge of #161341 - adwinwhite:overflow-fcw-chain, r=lcnr,adwin…
jhpratt Aug 22, 2026
4f6e59a
Rollup merge of #161530 - zakrad:regr-test-128525, r=JonathanBrouwer
jhpratt Aug 22, 2026
15dd341
Auto merge of #161566 - jhpratt:rollup-PxRQM5u, r=jhpratt
bors Aug 23, 2026
3c152ff
Auto merge of #161466 - alexcrichton:update-llvm, r=cuviper
bors Aug 23, 2026
26b254a
make sure we pick the right copy of _Unwind_Reason_Code
RalfJung Aug 23, 2026
469581a
Rollup merge of #161586 - RalfJung:miri, r=RalfJung
Zalathar Aug 24, 2026
b2aff4c
Rollup merge of #161187 - folkertdev:complex-layout-simple-targets, r…
Zalathar Aug 24, 2026
20d78ec
Rollup merge of #161524 - GuillaumeGomez:flaky-gui-back, r=urgau
Zalathar Aug 24, 2026
5ca90c8
Rollup merge of #161592 - pacak:change-pattern-tests, r=nia-e
Zalathar Aug 24, 2026
54f2486
Rollup merge of #161602 - GuillaumeGomez:fix-flaky-test, r=Urgau
Zalathar Aug 24, 2026
fce8a18
Rollup merge of #152433 - Zoxc:bootstrap-symlink, r=ChrisDenton
Zalathar Aug 24, 2026
f11611a
Rollup merge of #155254 - scrabsha:push-qlmmuuwqnoqv, r=fmease
Zalathar Aug 24, 2026
1f08dbf
Rollup merge of #158695 - blyxyas:remove-cratedump, r=fmease
Zalathar Aug 24, 2026
4f9612e
Rollup merge of #159456 - meta-legend:fix-149588, r=cjgillot
Zalathar Aug 24, 2026
44eef55
Rollup merge of #159940 - bal-e:env-macro-unreachables, r=fmease
Zalathar Aug 24, 2026
b9fd765
Rollup merge of #160452 - RalfJung:target-feature-safe, r=bjorn3
Zalathar Aug 24, 2026
1d370a9
Rollup merge of #161007 - DanielEScherzer:union-nodrop-typo, r=fmease
Zalathar Aug 24, 2026
6c2e169
Rollup merge of #161552 - lcnr:overflow-fcw-chain, r=adwinwhite
Zalathar Aug 24, 2026
15c0cd1
Rollup merge of #161569 - zachs18:bump-cfg_aliases, r=hanna-kruppe
Zalathar Aug 24, 2026
d532168
Rollup merge of #161573 - Walnut356:pretty_std_msvc, r=jieyouxu
Zalathar Aug 24, 2026
5798f1b
Rollup merge of #161580 - zakrad:regr-test-78745, r=mu001999
Zalathar Aug 24, 2026
b52c924
Rollup merge of #161588 - RalfJung:eyre, r=jieyouxu
Zalathar Aug 24, 2026
a44b4a9
Rollup merge of #161589 - pacak:private-osstr, r=clarfonthey
Zalathar Aug 24, 2026
395d436
Rollup merge of #161598 - jieyouxu:jieyouxu/fix/bootstrap-ci-llvm-con…
Zalathar Aug 24, 2026
80ff66a
Rollup merge of #161601 - GTimothy:empty-path-optim, r=fmease
Zalathar Aug 24, 2026
6d83ebe
Rollup merge of #161604 - pacak:test-multibyte, r=nia-e
Zalathar Aug 24, 2026
22578e8
Rollup merge of #161615 - RalfJung:vararg-check, r=folkertdev
Zalathar Aug 24, 2026
a6b3aaa
Auto merge of #161638 - Zalathar:rollup-oG1YjFs, r=Zalathar
bors Aug 24, 2026
56b7a7f
Rollup merge of #160428 - xyz-harshal:fix-dyn-compat-diagnostic-15949…
JonathanBrouwer Aug 24, 2026
fe4f291
Rollup merge of #161166 - cyrgani:tests-5, r=fmease
JonathanBrouwer Aug 24, 2026
0bafd1c
Rollup merge of #161310 - zakrad:regr-test-55759, r=chenyukang
JonathanBrouwer Aug 24, 2026
828a79b
Rollup merge of #161509 - KevinA-cpu:regression-test-81447, r=chenyukang
JonathanBrouwer Aug 24, 2026
23be5aa
Rollup merge of #161562 - Mark-Simulacrum:alt-ec2, r=Kobzol
JonathanBrouwer Aug 24, 2026
c43db9e
Auto merge of #161642 - JonathanBrouwer:rollup-ItuqkE6, r=JonathanBro…
bors Aug 24, 2026
7bd5cee
remove `#![feature(never_type)]` from tools
WaffleLapkin Aug 15, 2025
89242b0
Auto merge of #155499 - WaffleLapkin:stabilize-never-type, r=Jonathan…
bors Aug 24, 2026
4189fc6
Prepare for merging from rust-lang/rust
RalfJung Aug 25, 2026
c630109
Merge ref '9bb55c8c8654' from rust-lang/rust
RalfJung Aug 25, 2026
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
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c656540d6467dee1381f0cbd882412d6bd1cd5ae
9bb55c8c865411b7d9dea6ff743e583d510d89f5
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#![feature(float_gamma)]
#![feature(float_erf)]
#![feature(map_try_insert)]
#![feature(never_type)]
#![cfg_attr(bootstrap, feature(never_type))]
#![feature(try_blocks)]
#![feature(io_error_more)]
#![feature(io_error_inprogress)]
Expand Down Expand Up @@ -201,7 +201,4 @@ pub const MIRI_DEFAULT_ARGS: &[&str] = &[
// Deduplicating diagnostics means we miss events when tracking what happens during an
// execution. Let's not do that.
"-Zdeduplicate-diagnostics=no",
// FIXME(#160895): the new solver is enabled by default on nightly, but we
// don't want to use it in Miri for now. Remove once that's reverted.
"-Znext-solver=coherence",
];
4 changes: 3 additions & 1 deletion src/shims/unix/foreign_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,9 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {

// This function looks and behaves exactly like miri_start_unwind.
let [payload] = this.check_shim_sig(
shim_sig!(extern "C" fn(*_) -> unwind::_Unwind_Reason_Code),
// Look up the return type via `panic_unwind::`, not via `unwind::`, as
// the latter it not always unique.
shim_sig!(extern "C" fn(*_) -> panic_unwind::imp::uw::_Unwind_Reason_Code),
(link_name, abi, args),
)?;
this.handle_miri_start_unwind(payload)?;
Expand Down
4 changes: 3 additions & 1 deletion src/shims/windows/foreign_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,9 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
}
// This function looks and behaves exactly like miri_start_unwind.
let [payload] = this.check_shim_sig(
shim_sig!(extern "C" fn(*_) -> unwind::_Unwind_Reason_Code),
// Look up the return type via `panic_unwind::`, not via `unwind::`, as
// the latter it not always unique.
shim_sig!(extern "C" fn(*_) -> panic_unwind::imp::uw::_Unwind_Reason_Code),
(link_name, abi, args),
)?;
this.handle_miri_start_unwind(payload)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//@compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation

#![allow(unreachable_code)]
#![feature(never_type)]

fn main() {
let p = {
Expand Down
1 change: 0 additions & 1 deletion tests/fail/erroneous_const.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Make sure we detect erroneous constants post-monomorphization even when they are unused.
//! (https://github.com/rust-lang/miri/issues/1382)
#![feature(never_type)]

struct PrintName<T>(T);
impl<T> PrintName<T> {
Expand Down
2 changes: 0 additions & 2 deletions tests/fail/intrinsics/uninit_uninhabited_type.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(never_type)]

#[allow(deprecated, invalid_value)]
fn main() {
let _ = unsafe { std::mem::uninitialized::<!>() }; //~ERROR: constructing invalid value
Expand Down
1 change: 0 additions & 1 deletion tests/fail/match/closures/uninhabited-variant1.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Motivated by rust-lang/rust#138961, this shows how invalid discriminants interact with
// closure captures.
#![feature(never_type)]

#[repr(C)]
#[allow(dead_code)]
Expand Down
1 change: 0 additions & 1 deletion tests/fail/match/closures/uninhabited-variant2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//
// Test case with only one inhabited variant, for which rustc used to not emit
// a discriminant read in the first place. See: rust-lang/miri#4778
#![feature(never_type)]

#[repr(C)]
#[allow(dead_code)]
Expand Down
1 change: 0 additions & 1 deletion tests/fail/match/only_inhabited_variant.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// rust-lang/miri#4778
#![feature(never_type)]

#[repr(C)]
#[allow(dead_code)]
Expand Down
1 change: 0 additions & 1 deletion tests/fail/never_match_never.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This should fail even without validation
//@compile-flags: -Zmiri-disable-validation

#![feature(never_type)]
#![allow(unreachable_code)]

fn main() {
Expand Down
1 change: 0 additions & 1 deletion tests/fail/never_say_never.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This should fail even without validation
//@compile-flags: -Zmiri-disable-validation

#![feature(never_type)]
#![allow(unreachable_code)]

fn main() {
Expand Down
2 changes: 0 additions & 2 deletions tests/fail/never_transmute_humans.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// This should fail even without validation
//@compile-flags: -Zmiri-disable-validation

#![feature(never_type)]

struct Human;

fn main() {
Expand Down
1 change: 0 additions & 1 deletion tests/fail/never_transmute_void.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This should fail even without validation
//@compile-flags: -Zmiri-disable-validation

#![feature(never_type)]
#![allow(unused, invalid_value)]

mod m {
Expand Down
2 changes: 2 additions & 0 deletions tests/fail/stacked_borrows/drop_in_place_retag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

//@error-in-other-file: /retag .* for Unique permission .* only grants SharedReadOnly permission/

#![allow(dropping_copy_types)]

fn main() {
unsafe {
let x = 0u8;
Expand Down
1 change: 0 additions & 1 deletion tests/fail/validity/invalid_enum_op_discr_uninhabited.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Make sure we find these even with many checks disabled.
//@compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
#![feature(never_type)]

enum Never {}

Expand Down
1 change: 0 additions & 1 deletion tests/fail/validity/ref_to_uninhabited1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(never_type)]
use std::mem::{forget, transmute};

fn main() {
Expand Down
1 change: 0 additions & 1 deletion tests/fail/validity/uninhabited_variant.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// NOTE: this is essentially a smoke-test, with more comprehensive tests living in the rustc
// repository at tests/ui/consts/const-eval/ub-enum.rs
#![feature(never_type)]

#[repr(C)]
#[allow(dead_code)]
Expand Down
2 changes: 0 additions & 2 deletions tests/pass/async-fn.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(never_type)]

use std::future::Future;

// See if we can run a basic `async fn`
Expand Down
2 changes: 1 addition & 1 deletion tests/pass/coroutine.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@revisions: stack tree tree_implicit_writes
//@[tree_implicit_writes]compile-flags: -Zmiri-tree-borrows -Zmiri-tree-borrows-implicit-writes
//@[tree]compile-flags: -Zmiri-tree-borrows
#![feature(coroutines, coroutine_trait, never_type, stmt_expr_attributes)]
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]

use std::fmt::Debug;
use std::mem::ManuallyDrop;
Expand Down
2 changes: 2 additions & 0 deletions tests/pass/drop_in_place.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// valid when dropped. This test confirms that behavior.
// This is not a stable guarantee!

#![allow(dropping_copy_types)]

use std::ptr;

fn main() {
Expand Down
2 changes: 0 additions & 2 deletions tests/pass/function_calls/abi_compat.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(never_type)]

use std::rc::Rc;
use std::{mem, num, ptr};

Expand Down
1 change: 0 additions & 1 deletion tests/pass/issues/issue-120337-irrefutable-let-ice.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Validation stops the test before the ICE we used to hit
//@compile-flags: -Zmiri-disable-validation

#![feature(never_type)]
#[derive(Copy, Clone)]
pub enum E {
A(!),
Expand Down
1 change: 0 additions & 1 deletion tests/pass/loop-break-value.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(never_type)]
#![allow(unreachable_code)]

#[allow(unused)]
Expand Down
1 change: 0 additions & 1 deletion tests/pass/panic/catch_panic.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(never_type)]
#![allow(unconditional_panic, non_fmt_panics)]

use std::cell::Cell;
Expand Down
1 change: 0 additions & 1 deletion tests/pass/underscore_pattern.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Various tests ensuring that underscore patterns really just construct the place, but don't check its contents.
#![feature(never_type)]

use std::ptr;

Expand Down