Commit Graph

341890 Commits

Author SHA1 Message Date
Jakub Beránek
ef2ad40c3e Add PGO config for Cranelift 2026-10-02 12:54:37 +02:00
Jakub Beránek
4b9666a948 Rename LLVM_PGO_CRATES to BACKEND_PGO_CRATES 2026-10-02 12:53:38 +02:00
bors
6006fd0394 Auto merge of #163532 - bjorn3:sync_cg_clif-2026-09-30, r=bjorn3
rustc_codegen_cranelift subtree update

Subtree update of `rustc_codegen_cranelift` to 05409775ad.

Created using https://github.com/rust-lang/josh-sync.

r? @ghost

@rustbot label +A-codegen +A-cranelift +T-compiler +subtree-sync
2026-10-01 00:11:45 +00:00
bors
21b707e3f9 Auto merge of #163435 - BoxyUwU:relnotes_1_99, r=BoxyUwU
add relnotes 1.99.0



r? mark-simulacrum

cc @rust-lang/release
2026-09-30 15:02:50 +00:00
bors
1625626af1 Auto merge of #163412 - Kobzol:codegen-backend-lto, r=bjorn3
Apply LTO to Cranelift and GCC codegen backends

Before we didn't use the LTO config for them at all.
2026-09-30 12:12:10 +00:00
bjorn3
bbf54426a2 Fix pushes 2026-09-30 11:53:33 +02:00
bjorn3
f6e6de63d2 Fix rustc test suite 2026-09-30 11:50:49 +02:00
bjorn3
a4aec954e1 Merge ref '5c543b0b8c73' (nightly-2026-09-30) from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Previous upstream ref: rust-lang/rust@d080e7dff1
New upstream ref: rust-lang/rust@5c543b0b8c
Filtered ref: rust-lang/rustc_codegen_cranelift@582825bfb6
Upstream diff: d080e7dff1...5c543b0b8c

This merge was created using https://github.com/rust-lang/josh-sync.
2026-09-30 11:30:49 +02:00
bjorn3
f02d1d5224 Prepare for merging from rust-lang/rust
This updates the rust-toolchain.toml file to nightly-2026-09-30 (5c543b0b8c).
2026-09-30 11:30:42 +02:00
bors
78ae589ada Auto merge of #163526 - JonathanBrouwer:rollup-tTSzdV5, r=JonathanBrouwer
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#163336 (MIR move elimination [2/6]: TailCopyToMove)
 - rust-lang/rust#162380 (merge candidate responses equal except for region constraints)
 - rust-lang/rust#163476 (update deferred subtype test)
 - rust-lang/rust#163500 (disable toctou test for qnx)
2026-09-30 09:05:41 +00:00
Jonathan Brouwer
6a7d7342d7 Rollup merge of #163500 - tshepang:disable-toctu-test-on-qnx, r=Darksonn
disable toctou test for qnx

This is a cherry-pick from https://github.com/ferrocene/ferrocene/pull/2583
2026-09-30 10:21:02 +02:00
Jonathan Brouwer
749df6f078 Rollup merge of #163476 - lcnr:deferred-subtype, r=adwinwhite
update deferred subtype test

The previous test relied on the order in which we evaluate obligations and started to fail with the new solver because we also emitted `Subtype(?z, ?y)` obligations. The new solver makes these steps invariant, which changes this test to only check

This breakage is tracked as part of fd79fd8cde/notes/stabilization-report/meta.md (eagerly-evaluating-nested-goals) but feels very artificial to me and is something I don't care about.

cc @rust-lang/types

r? types
2026-09-30 10:21:00 +02:00
Jonathan Brouwer
5aab311600 Rollup merge of #162380 - amirHdev:borrowck-normalize-fnsig-rpit-hrtb, r=adwinwhite,lcnr
merge candidate responses equal except for region constraints

Fixes rust-lang/rust#162323
Candidate responses can differ only in their region constraints while otherwise producing the same response.

We now merge such candidates when at least one of them has no region constraints. This is allowed because empty region constraints evaluate to `true` and `Or` constraint is `true` as long as one of its choices is `true`.

[Discussion](https://rust-lang.zulipchat.com/#narrow/channel/364551-t-types.2Ftrait-system-refactor/topic/candidate.20preference.20nested.20item.20bounds/with/624896558) on zulip.
2026-09-30 10:20:59 +02:00
Jonathan Brouwer
c336759961 Rollup merge of #163336 - Amanieu:move-elimination/tail-copy-to-move, r=tmiasko
MIR move elimination [2/6]: TailCopyToMove

Depends on rust-lang/rust#163335

This PR implements a pre-pass for the `MoveElimination` pass from https://github.com/rust-lang/rfcs/pull/3943.

`TailCopyToMove` turns `Copy` into `Move` just before a `Return` terminator. This is valid even for places that have been borrowed because the `Return` will invalidate borrows anyway. This is necessary to allow the source of the copy to be unified with the return place.

r? tmiasko
2026-09-30 10:20:58 +02:00
bors
7d2cd0fbc0 Auto merge of #163522 - jhpratt:rollup-IF0xo8M, r=jhpratt
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#158936 (Add `std::fs::{Home|Media}Dirs`)
 - rust-lang/rust#163414 (Add support for span context to `derive(Diagnostic)` and use it)
 - rust-lang/rust#163481 (triagebot: use r-l/r zulip linkifier for r-l/r rustfmt backport nominations)
 - rust-lang/rust#163502 (arch::breakpoint: update docs)
 - rust-lang/rust#163505 (Sync cg_gcc subtree 2026-09-29)
 - rust-lang/rust#163498 (Revert "Rollup merge of rust-lang/rust#120589 - devnexen:cpuaff_fbsd_upd, r=clarfonthey")
2026-09-30 05:59:45 +00:00
Jacob Pratt
675dee86bb Rollup merge of #163498 - devnexen:revert_120589, r=clarfonthey
Revert "Rollup merge of #120589 - devnexen:cpuaff_fbsd_upd, r=clarfonthey"

This reverts commit 0a4206a714, reversing changes made to 8f3a9a1017.
2026-09-30 00:12:56 -04:00
Jacob Pratt
f2d2a9ddf3 Rollup merge of #163505 - GuillaumeGomez:sync-2026-09-29, r=antoyo
Sync cg_gcc subtree 2026-09-29

cc @antoyo
r? ghost
2026-09-30 00:12:55 -04:00
Jacob Pratt
b85fd6867b Rollup merge of #163502 - RalfJung:breakpoint, r=tgross35
arch::breakpoint: update docs

Update the docs to remove the guaranteed abort, since the LLVM intrinsic we compile this to does not actually make such a guarantee -- for instance, on old ARM systems, no abort may be triggered. If a headless x86 system makes the BR interrupt a NOP, no abort will happen either, and we haven't decided that that is an invalid configuration.

Also see the extensive discussion that was summarized in https://github.com/rust-lang/rust/issues/162953.
Tracking issue: https://github.com/rust-lang/rust/issues/133724.
Cc @joshtriplett
2026-09-30 00:12:54 -04:00
Jacob Pratt
80acab4ff0 Rollup merge of #163481 - jieyouxu:jieyouxu/rustfmt-backport-nom, r=ytmimi
triagebot: use r-l/r zulip linkifier for r-l/r rustfmt backport nominations

I'd like to setup rustfmt repo's backport nominations to also post to the zulip backport channel. With both r-l/r and r-l/rustfmt we can use linkifiers to disambiguate.

Asked in [#triagebot > Backport nomination thread from 2 repos?](https://rust-lang.zulipchat.com/#narrow/channel/224082-triagebot/topic/Backport.20nomination.20thread.20from.202.20repos.3F/with/627735448).

r? @ytmimi (or rustfmt or anyone really)
2026-09-30 00:12:53 -04:00
Jacob Pratt
c7a9fa3ebf Rollup merge of #163414 - estebank:derive-diagnostic-context, r=petrochenkov
Add support for span context to `derive(Diagnostic)` and use it

Allow writing

```rust
struct Diagnostic {
    #[primary_span]
    #[label("label text")]
    span: Span,
    #[context]
    context: Span,
}
```

So that the code pointed at by `context` is shown in the rendered diagnostic without an underline.

Point at enclosing item(s) on unexpected item type:

```
error: expected type, found constant
  --> $DIR/consts.rs:2:19
   |
LL | pub fn accept(
LL |     _: impl Trait<K: Copy>
   |                   ^------ bounds are not allowed on associated constants
   |                   |
   |                   unexpected constant
   |
note: the associated constant is defined here
  --> $DIR/consts.rs:7:5
   |
LL |     const K: i32;
   |     ^^^^^^^^^^
```

Show trait/impl for duplicate impl associated items
```
error[E0201]: duplicate definitions with name `Bar`:
  --> $DIR/associated-item-duplicate-names-3.rs:14:5
   |
LL | trait Foo {
LL |     type Bar;
   |     --------- item in trait
...
LL | impl Foo for Baz {
LL |     type Bar = i16;
   |     --------------- previous definition here
LL |     type Bar = u16;
   |     ^^^^^^^^^^^^^^^ duplicate definition
```

Point at trait/impl on associated item mismatch
```
error[E0324]: item `RESOLVED_WRONG` is an associated method, which doesn't match its trait `MyTrait`
  --> $DIR/unresolved-trait-impl-item.rs:12:5
   |
LL | trait MyTrait {
LL |     async fn resolved(&self);
LL |     const RESOLVED_WRONG: u8 = 0;
   |     ----------------------------- item in trait
...
LL | impl MyTrait for i32 {
...
LL |     async fn RESOLVED_WRONG() {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ does not match trait
```
On `impl` item signature mismatch, point at impl and trait
```
error: `impl` item signature doesn't match `trait` item signature
  --> $DIR/self-without-lifetime-constraint.rs:46:5
   |
LL | pub trait FromSql: Sized {
LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self, &Self>;
   |     -------------------------------------------------------------------- expected `fn(ValueRef<'1>) -> Result<(&'2 str, &'1 &'2 str), _>`
...
LL | impl FromSql for &str {
LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<&str, &&str> {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(ValueRef<'1>) -> Result<(&'1 str, &'1 &'1 str), _>`
   |
   = note: expected signature `fn(ValueRef<'1>) -> Result<(&'2 str, &'1 &'2 str), FromSqlError>`
              found signature `fn(ValueRef<'1>) -> Result<(&'1 str, &'1 &'1 str), FromSqlError>`
help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
  --> $DIR/self-without-lifetime-constraint.rs:42:60
   |
LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self, &Self>;
   |                                                            ^^^^ consider borrowing this type parameter in the trait
```
2026-09-30 00:12:52 -04:00
Jacob Pratt
4592a842b4 Rollup merge of #158936 - CAD97:dirs, r=aapoalas
Add `std::fs::{Home|Media}Dirs`

- ACP: https://github.com/rust-lang/libs-team/issues/830

Replacement for `std::os::unix::xdg` as suggested by libs-api in https://github.com/rust-lang/rust/issues/157515#issuecomment-4721835602. Exposes media directories common between the three big OSes in addition to the cache/config/data/state directories under a separate feature gate. API summary:

```rust
// mod std::fs
pub struct HomeDirs { /* ... */ }
impl HomeDirs {
    fn empty() -> Self;

    pub fn config_home(&self) -> Option<&Path>;
    pub fn data_home(&self) -> Option<&Path>;
    pub fn state_home(&self) -> Option<&Path>;
    pub fn cache_home(&self) -> Option<&Path>;

    pub fn set_config_home(&mut self, path: PathBuf) -> &mut Self;
    pub fn set_data_home(&mut self, path: PathBuf) -> &mut Self;
    pub fn set_state_home(&mut self, path: PathBuf) -> &mut Self;
    pub fn set_cache_home(&mut self, path: PathBuf) -> &mut Self;
}

pub struct MediaDirs { /* ... */ }
impl MediaDirs {
    pub fn empty() -> Self;

    pub fn desktop(&self) -> Option<&Path>;
    pub fn documents(&self) -> Option<&Path>;
    pub fn downloads(&self) -> Option<&Path>;
    pub fn music(&self) -> Option<&Path>;
    pub fn pictures(&self) -> Option<&Path>;
    pub fn videos(&self) -> Option<&Path>;

    pub fn set_desktop(&mut self, path: PathBuf) -> &mut Self;
    pub fn set_documents(&mut self, path: PathBuf) -> &mut Self;
    pub fn set_downloads(&mut self, path: PathBuf) -> &mut Self;
    pub fn set_music(&mut self, path: PathBuf) -> &mut Self;
    pub fn set_pictures(&mut self, path: PathBuf) -> &mut Self;
    pub fn set_videos(&mut self, path: PathBuf) -> &mut Self;
}

// mod std::os::darwin::fs
impl HomeDirsExt for HomeDirs { /* ... */ }
pub impl(self) trait HomeDirsExt {
    fn sysdir() -> io::Result<Self>;
}

impl MediaDirsExt for MediaDirs { /* ... */ }
pub impl(self) trait MediaDirsExt {
    fn sysdir() -> io::Result<Self>;
}

// mod std::os::unix::fs
impl HomeDirsExt for HomeDirs { /* ... */ }
pub impl(self) trait HomeDirsExt {
    fn xdg() -> io::Result<Self>;

    fn runtime_home(&self) -> Option<&Path>;
    fn config_dirs(&self) -> Option<XdgDirs<'_>>;
    fn data_dirs(&self) -> Option<XdgDirs<'_>>;

    fn set_runtime_home(&mut self, path: PathBuf) -> &mut Self;
    fn set_config_dirs(&mut self, paths: OsString) -> &mut Self;
    fn set_data_dirs(&mut self, paths: OsString) -> &mut Self;
}

impl MediaDirsExt for MediaDirs { /* ... */ }
pub impl(self) trait MediaDirsExt {
    fn xdg() -> io::Result<Self>;

    fn templates(&self) -> Option<&Path>;
    fn set_templates(&mut self, path: PathBuf) -> &mut Self;
}

pub struct XdgDirs<'a> { /* ... */ }
impl Iterator for XdgDirs<'a> {
    type Item = &'a Path;
    /* ... */
}

// mod std::os::windows::fs
impl HomeDirsExt for HomeDirs { /* ... */ }
pub impl(self) trait HomeDirsExt {
    fn appdata_env() -> io::Result<Self>;
    fn known_folders() -> io::Result<Self>;
}

impl MediaDirsExt for MediaDirs { /* ... */ }
pub impl(self) trait MediaDirsExt {
    fn known_folders() -> io::Result<Self>;
}
```
2026-09-30 00:12:52 -04:00
bors
c1bf6e13fa Auto merge of #163507 - weihanglo:update-cargo, r=weihanglo
Update cargo submodule

8 commits in 3d7cf6e937d6127d0f49881bf689c560b36d35c4..f3865b2a4d1acc5276f6b3c67d0e057f4dab3928
2026-09-25 01:47:29 +0000 to 2026-09-29 19:58:08 +0000
- fix(config): Proper dotted tuple support with legacy fallback (rust-lang/cargo#17536)
- refactor: Rename internal content from target-triple to target-tuple (rust-lang/cargo#17535)
- docs(changelog): remove duplicate items (rust-lang/cargo#17528)
- chore: bump to 0.102.0; update changelog (rust-lang/cargo#17525)
- feat(metadata): mirror package features in features_v2 (rust-lang/cargo#17517)
- feat(config): Add build.profile, install.profile (rust-lang/cargo#17215)
- feat(builtin-deps): Add `SourceKind::Builtin` (rust-lang/cargo#17513)
- fix(compilation): Preventing OUT_DIR env var from leaking into cargo run after build.rs run (rust-lang/cargo#17503)

r? ghost
2026-09-30 02:56:44 +00:00
Weihang Lo
4b0bbb5bd0 Update cargo submodule 2026-09-29 18:15:03 -04:00
Guillaume Gomez
71d1c023c1 Merge commit '8c858fb5fbb077eaa776302b9601cf084f12aa46' into HEAD 2026-09-29 22:21:49 +02:00
Ralf Jung
707f1c5d9d update breakpoint asm test
based on proposal by tgross35
2026-09-29 22:06:20 +02:00
bors
5c543b0b8c Auto merge of #163493 - JonathanBrouwer:rollup-B0z7Ynf, r=JonathanBrouwer
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#163024 (Add `Dir` equivalents of `fs::metadata` & `fs::symlink_metadata`)
 - rust-lang/rust#162839 (Bump min Emscripten version to 4.0, drop deprecated -sWASM_BIGINT for wasm32-unknown-emscripten)
 - rust-lang/rust#163370 (Fix incorrect typo suggestion for `struct field` shorthands)
 - rust-lang/rust#163471 (do not suggest capturing `'_` twice in `use<...>` for E0700)
2026-09-29 18:51:11 +00:00
antoyo
8c858fb5fb Merge pull request #987 from GuillaumeGomez/sync
Sync rustc 2026-09-29
2026-09-29 14:50:34 -04:00
Ralf Jung
7d0907e746 arch::breakpoint: update documentation 2026-09-29 20:45:27 +02:00
Crystal Durham
0317026d59 impl std::fs::{Home|Media}Dirs
also includes:
- std::env::split_paths_ref
- std::os::{darwin|unix|windows}::{Home|Media}DirsExt
2026-09-29 13:37:09 -05:00
Amirhossein Akhlaghpour
5694cdbacc merge candidate responses equal except for region constraints
Co-authored-by: adwin <adwinw01@gmail.com>
Co-authored-by: lcnr <rust@lcnr.de>
Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
2026-09-29 21:40:55 +03:30
Antoni Boucher
b3cf6a588a Install rustfmt stdarch CI workflow 2026-09-29 13:58:57 -04:00
Antoni Boucher
10448a35f3 Fix panic when casting from i128 to f16 2026-09-29 13:57:06 -04:00
Tshepang Mbambo
1cfc3914c5 disable toctou test for qnx 2026-09-29 19:50:59 +02:00
David Carlier
99055eee3a Revert "Rollup merge of #120589 - devnexen:cpuaff_fbsd_upd, r=clarfonthey"
This reverts commit 0a4206a714, reversing
changes made to 8f3a9a1017.
2026-09-29 18:26:29 +01:00
Guillaume Gomez
852ac9e50b Update rust-toolchain version needed 2026-09-29 18:40:59 +02:00
Guillaume Gomez
9adacb1a30 Merge branch 'master' into sync-2026-09-29 2026-09-29 18:37:18 +02:00
Esteban Küber
246eb149ef On impl item signature mismatch, point at impl and trait
```
error: `impl` item signature doesn't match `trait` item signature
  --> $DIR/self-without-lifetime-constraint.rs:46:5
   |
LL | pub trait FromSql: Sized {
LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self, &Self>;
   |     -------------------------------------------------------------------- expected `fn(ValueRef<'1>) -> Result<(&'2 str, &'1 &'2 str), _>`
...
LL | impl FromSql for &str {
LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<&str, &&str> {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(ValueRef<'1>) -> Result<(&'1 str, &'1 &'1 str), _>`
   |
   = note: expected signature `fn(ValueRef<'1>) -> Result<(&'2 str, &'1 &'2 str), FromSqlError>`
              found signature `fn(ValueRef<'1>) -> Result<(&'1 str, &'1 &'1 str), FromSqlError>`
help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
  --> $DIR/self-without-lifetime-constraint.rs:42:60
   |
LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self, &Self>;
   |                                                            ^^^^ consider borrowing this type parameter in the trait
```
2026-09-29 16:36:59 +00:00
Esteban Küber
be0d432123 Point at trait/impl on associated item mismatch
```
error[E0324]: item `RESOLVED_WRONG` is an associated method, which doesn't match its trait `MyTrait`
  --> $DIR/unresolved-trait-impl-item.rs:12:5
   |
LL | trait MyTrait {
LL |     async fn resolved(&self);
LL |     const RESOLVED_WRONG: u8 = 0;
   |     ----------------------------- item in trait
...
LL | impl MyTrait for i32 {
...
LL |     async fn RESOLVED_WRONG() {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ does not match trait
```
2026-09-29 16:36:58 +00:00
Esteban Küber
1ab22ea44d Show trait/impl for duplicate impl associated items
```
error[E0201]: duplicate definitions with name `Bar`:
  --> $DIR/associated-item-duplicate-names-3.rs:14:5
   |
LL | trait Foo {
LL |     type Bar;
   |     --------- item in trait
...
LL | impl Foo for Baz {
LL |     type Bar = i16;
   |     --------------- previous definition here
LL |     type Bar = u16;
   |     ^^^^^^^^^^^^^^^ duplicate definition
```
2026-09-29 16:36:56 +00:00
Esteban Küber
c5f17f6260 Point at enclosing item(s) on unexpected item type 2026-09-29 16:36:47 +00:00
Esteban Küber
768500b03c Add support for span context to derive(Diagnostic)
Allow writing

```rust
struct Diagnostic {
    #[primary_span]
    #[label("label text")]
    span: Span,
    #[context]
    context: Span,
}
```

So that the code pointed at by `context` is shown in the rendered diagnostic without an underline.
2026-09-29 16:36:41 +00:00
antoyo
ef0c7b7468 Merge pull request #986 from rust-lang/update-gccjit
Update gccjit.rs version
2026-09-29 12:05:08 -04:00
Jonathan Brouwer
2444fac866 Rollup merge of #163471 - Albab-Hasan:no-duplicate-anon-lifetime-capture-suggestion, r=oli-obk
do not suggest capturing `'_` twice in `use<...>` for E0700

starting from `use<'_>` with a second anonymous lifetime to capture, E0700 suggests `use<'_, '_>`. that fails with:

```
error: cannot capture parameter `'_` twice
```

then the compiler suggests `use<'_, '_, '_>`. both `AddPreciseCapturing::New` and `AddPreciseCapturing::Existing` are `machine-applicable` (rustc_trait_selection/src/diagnostics.rs:1876 and :1888) so rustfix applies the broken edit.

the branch for an opaque without `use<..>` already skips lifetimes that are captured. this adds the same check to the branch for an existing `use<..>`.

the issue repro compiles clean on edition 2024 and needs 2021 so the test starts one step in with `use<'_>` already written. two extra cases check the guard stays narrow: `use<>` with one anonymous lifetime still gets `use<'_>` and a named lifetime still gets suggested by name.

one note. the guard removes the suggestion without replacing it so someone who already wrote `use<'_>` gets no path forward. a correct suggestion needs to name the elided lifetimes and suggest_precise_capturing cannot do that today. that the multipart suggestion this issue asks for will be the follow up.

https://github.com/rust-lang/rust/issues/132199

r? @oli-obk
2026-09-29 17:47:56 +02:00
Jonathan Brouwer
dd4bda9bf6 Rollup merge of #163370 - raushan728:issues/163324, r=chenyukang
Fix incorrect typo suggestion for `struct field` shorthands

Fixes rust-lang/rust#163324

by passing the field `Ident` to the suggestion builder to correctly expand unresolved struct shorthands.

r? @maxdexh
2026-09-29 17:47:55 +02:00
Jonathan Brouwer
1dfcd5e9a4 Rollup merge of #162839 - guybedford:emscripten-min-4, r=madsmtm
Bump min Emscripten version to 4.0, drop deprecated -sWASM_BIGINT for wasm32-unknown-emscripten

This documents Emscripten 4.0.0 as the minimum supported version, and removes the on-by-default `-sWASM_BIGINT` link argument from the `wasm32-unknown-emscripten` target spec.

`WASM_BIGINT` has been enabled by default since Emscripten 4.0.0 (January 2025), and newer Emscripten versions now emit a deprecation warning whenever it is set explicitly (emscripten-core/emscripten#27558), so every link through rustc currently produces a warning. Since Emscripten's warning categories are not fine-grained enough to suppress this one setting without also disabling `-Wdeprecated` in general, the cleanest fix is to drop the flag and rely on the default.

* `-sWASM_BIGINT` removed from the target's post-link args (`-sABORTING_MALLOC=0` is retained)
* Platform support docs updated to state the Emscripten 4.0.0 minimum, with the install snippet using `latest` rather than pinning 3.1.68

Rust CI already installs the latest Emscripten release, so no CI changes are needed. Users on Emscripten < 4.0.0 who rely on the prebuilt `std` would need to upgrade or pass `-C link-arg=-sWASM_BIGINT` explicitly.
2026-09-29 17:47:54 +02:00
Jonathan Brouwer
78f7517985 Rollup merge of #163024 - RalfJung:dir-metadata-at, r=ChrisDenton
Add `Dir` equivalents of `fs::metadata` & `fs::symlink_metadata`

This adds methods to `Dir` that allow querying the metadata of files/directories relative to a `Dir`. Miri would [really like](https://github.com/rust-lang/miri/issues/5327) to be able to do this so I figured I'd give it a shot. :)

The first commit refactors the Unix `DirEntry` methods a bit with `cfg_select` to avoid repeating the `cfg` condition.

Tracking issue: https://github.com/rust-lang/rust/issues/120426

try-jobs: test-x86_64-msvc-1
2026-09-29 17:47:53 +02:00
bors
4853db6f65 Auto merge of #163361 - cuviper:sync-advance_back_by, r=Darksonn
Specialize `advance_back_by` like the forward version

We specialized `advance_by` in rust-lang/rust#141086, so it makes sense to have
`advance_back_by` use the same trick in reverse, i.e. `try_rfold`.

This also updates `nth_back` to mirror `nth`, and the rest of the
`DoubleEndedIterator` methods already match `Iterator`.
2026-09-29 15:44:40 +00:00
Antoni Boucher
e054cb5bb6 Update gccjit.rs version 2026-09-29 11:12:52 -04:00
Raushan singh
ac14be76e9 fix(resolve): correct typo suggestion for struct field shorthands 2026-09-29 12:17:16 +00:00
Raushan singh
152237dfb5 test(resolve): add baseline test for struct shorthand typo suggestions 2026-09-29 12:17:15 +00:00