about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-09-20Merge pull request #20700 from A4-Tacks/extract-var-let-exprShoyu Vanilla (Flint)-1/+28
Fix extract_variable on LetExpr
2025-09-20Merge pull request #20702 from A4-Tacks/else-not-before-elseShoyu Vanilla (Flint)-3/+133
Fix `else` completion before else keyword
2025-09-20Merge pull request #20708 from A4-Tacks/destruct-ref-mut-panicsShoyu Vanilla (Flint)-9/+96
Fix panics on `Foo{mut x}` for destructure_struct_binding
2025-09-20Auto merge of #146805 - lnicola:sync-from-ra, r=lnicolabors-9245/+38642
`rust-analyzer` subtree update Subtree update of `rust-analyzer` to https://github.com/rust-lang/rust-analyzer/commit/0c62c01aae05639bbc0605ade5435dfa6da96307. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2025-09-20Fix unused_variables fixes shorthand record fieldA4-Tacks-11/+57
Example --- ```rust struct S { field : u32 } fn main() { let s = S { field : 2 }; let S { $0field } = s } ``` **Before this PR**: ```rust struct S { field : u32 } fn main() { let s = S { field : 2 }; let S { _field } = s } ``` **After this PR**: ```rust struct S { field : u32 } fn main() { let s = S { field : 2 }; let S { field: _field } = s } ```
2025-09-20docs: improve doc of some methods w/ rangestk-16/+16
2025-09-20Fix panic `!self.data().mutable` for destructure_struct_bindingA4-Tacks-2/+48
When the reference type does not require adding a dereference or parentheses, it will panic Example --- ```rust struct Foo { bar: i32, baz: i32 } fn main() { let $0foo = &Foo { bar: 1, baz: 2 }; let _ = &foo.bar; } ``` **Before this PR**: Panic: ``` assertion failed: !self.data().mutable ``` **After this PR**: ```rust struct Foo { bar: i32, baz: i32 } fn main() { let Foo { bar, baz } = &Foo { bar: 1, baz: 2 }; let _ = bar; } ```
2025-09-20Fix panics on `Foo{mut x}` for destructure_struct_bindingA4-Tacks-9/+96
Example --- ```rust struct Foo { x: () } struct Bar { foo: Foo } fn f(Bar { mut $0foo }: Bar) {} ``` **Before this PR**: Panic `Option::unwrap` **After this PR**: ```rust struct Foo { x: () } struct Bar { foo: Foo } fn f(Bar { foo: Foo { mut x } }: Bar) {} ```
2025-09-20add private module override re-export testIris Shi-0/+14
2025-09-20CI: test bootstrap buildRalf Jung-2/+37
2025-09-20Auto merge of #146771 - Kobzol:download-ci-llvm-default-value, r=jieyouxubors-11/+4
Simplify default value of `download-ci-llvm` Just set it to true, rather than having different default values on CI and locally, and then only deny `true` on our own CI, not elsewhere. Closes: https://github.com/rust-lang/rust/issues/146768 r? `@jieyouxu`
2025-09-20clippyRalf Jung-4/+4
2025-09-20Merge pull request #20707 from lnicola/bump-rustcLaurențiu Nicola-34/+32
minor: Bump rustc crates once more
2025-09-20Bump rustc crates once moreLaurențiu Nicola-34/+32
2025-09-20Merge ref 'ec3867107526' from rust-lang/rustThe Miri Cronjob Bot-17757/+15799
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: ec38671075266e9cee0348701da2e133379e7c6c Filtered ref: ed8e25574abf50600d9d2fd61eda90708ccce6c2 Upstream diff: https://github.com/rust-lang/rust/compare/3f1552a273e43e15f6ed240d00e1efdd6a53e65e...ec38671075266e9cee0348701da2e133379e7c6c This merge was created using https://github.com/rust-lang/josh-sync.
2025-09-20Prepare for merging from rust-lang/rustThe Miri Cronjob Bot-1/+1
This updates the rust-version file to ec38671075266e9cee0348701da2e133379e7c6c.
2025-09-20Auto merge of #146621 - cammeresi:peek-20250915, r=Amanieubors-44/+51
Make `PeekMut` generic over the allocator - plumb in allocator generic - additional testing Related: rust-lang/rust#122742
2025-09-19Add unstable attribute to BTreeMap-related allocator genericsSidney Cammeresi-2/+11
Although these types aren't directly constructable externally, since they're pub, I think this omission was an oversight.
2025-09-20Remove unused `LLVMRustDIBuilder(Create|Dispose)`Zalathar-8/+0
These should have been removed earlier, when we switched to the corresponding LLVM-C bindings.
2025-09-20mbe: metavar expressions: Use symbols rather than `ident.as_str()`Josh Triplett-13/+12
Identify metavariable functions by using named symbols rather than string comparisons.
2025-09-20mbe: Factor out a function to transcribe a `ParseNtResult`Josh Triplett-0/+8
2025-09-20mbe: Simplify match in `transcribe_metavar`Josh Triplett-18/+19
Factor out the check for a variable that's still repeating.
2025-09-19Update cfg_if! to cfg_select!Thalia Archibald-1/+1
The macro is now builtin.
2025-09-19Fix std build for xtensaThalia Archibald-0/+1
2025-09-19Fix unsupported std::sys::threadThalia Archibald-7/+1
Fixes building std for any platform with an unsupported thread abstraction. This includes {aarch64,armv7,x86_64}-unknown-trusty and riscv32im-risc0-zkvm-elf, which explicitly include the unsupported module, and platforms with no PAL. Bug fix for PR 145177 (std: move thread into sys).
2025-09-19generate list of all variants with `target_spec_enum`Deadbeef-42/+19
This helps us avoid the hardcoded lists elsewhere.
2025-09-19Auto merge of #146797 - matthiaskrgr:rollup-xy0g8n7, r=matthiaskrgrbors-34/+37
Rollup of 5 pull requests Successful merges: - rust-lang/rust#146690 (add `[const] PartialEq` bound to `PartialOrd`) - rust-lang/rust#146776 (fixes for numerous clippy warnings) - rust-lang/rust#146777 (fix ./x readdir logic when CDPATH is set) - rust-lang/rust#146781 (mbe: Fix feature gate for `macro_derive`) - rust-lang/rust#146785 (btree: safety comments for init and new) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-19fixes for numerous clippy warningsMarijn Schouten-36/+32
2025-09-19Rollup merge of #146785 - hkBst:btree-1, r=joboetMatthias Krüger-1/+7
btree: safety comments for init and new
2025-09-19Rollup merge of #146781 - joshtriplett:mbe-derive-fix-feature-gate, ↵Matthias Krüger-3/+3
r=wesleywiser mbe: Fix feature gate for `macro_derive`
2025-09-19Rollup merge of #146777 - RalfJung:x-cdpath, r=KobzolMatthias Krüger-1/+2
fix ./x readdir logic when CDPATH is set Fixes https://github.com/rust-lang/rust/issues/146769 r? ``@Kobzol``
2025-09-19Rollup merge of #146776 - hkBst:clippy-fix-12, r=jdonszelmannMatthias Krüger-28/+22
fixes for numerous clippy warnings
2025-09-19Rollup merge of #146690 - npmccallum:convo, r=tgross35Matthias Krüger-1/+3
add `[const] PartialEq` bound to `PartialOrd` This change is included for discussion purposes. The PartialOrd bound on PartialEq is not strictly necessary. It is, rather, logical: anything which is orderable should by definition have equality. Is the same true for constness? Should every type which is const orderable also have const equality?
2025-09-19Enable `limit_rdylib_exports` on wasm targetsAlex Crichton-5/+5
This commit updates the target specification of wasm targets to set the `limit_rdylib_exports` value to `true` like it is on other native platforms. This was originally not implemented long ago as `wasm-ld` didn't have options for symbol exports, but since then it's grown a `--export` flag and such to control this. A custom case is needed in the linker implementation to handle wasm targets as `wasm-ld` doesn't support linker scripts used on other targets, but other than that the implementation is straightforward. The goal of this commit is enable building dynamic libraries on `wasm32-wasip2` which don't export every single symbol in the Rust standard library. Currently, without otherwise control over symbol visibility, all symbols end up being exported which generates excessively large binaries because `--gc-sections` ends up doing nothing as it's all exported anyway.
2025-09-19naked_asm: emit a label starting with `func_end`Folkert de Vries-0/+7
The `cargo asm` tool pattern matches on such labels to figure out where functions end: normal functions generated by LLVM always do have such a label. We don't guarantee that naked functions emit such a label, but having `cargo asm` work is convenient
2025-09-19[win] Use find-msvc-tools instead of cc to find the linker and rc on WindowsDaniel Paoliello-45/+22
2025-09-19Auto merge of #146700 - Zalathar:quoted-args, r=nikicbors-49/+92
cg_llvm: Move target machine command-line quoting from C++ to Rust When this code was introduced in rust-lang/rust#130446 and rust-lang/rust#131805, it was complicated by the need to maintain compatibility with earlier versions of LLVM. Now that LLVM 20 is the baseline (rust-lang/rust#145071), we can do all of the quoting in pure Rust code, and pass two flat strings to LLVM to be used as-is. --- In this PR, my priority has been to preserve the existing behaviour as much as possible, without worrying too much about what the behaviour *should* be. (Though I did avoid a leading space before the first argument.)
2025-09-19test: Use SVG for terminal url test Scott Schafer-13/+99
2025-09-19chore(compiletest): Use newest anstyle-svg versionScott Schafer-21/+21
2025-09-19Simplify default value of `download-ci-llvm`Jakub Beránek-11/+4
2025-09-19chore: fixes #146756sysrex-2/+2
2025-09-19tests: relax expectations after llvm change 902ddda120a5Augie Fackler-4/+13
LLVM 22 is able to drop assumes that seem to not help further optimizations, which actually seems to dramatically _help_ further optimizations in some of our small test cases.
2025-09-19btree: safety comments for init and newMarijn Schouten-1/+7
2025-09-19Stop linking rs{begin,end} on x86_64-*-windows-gnuMateusz Mikuła-7/+23
Until now, x86_64-pc-windows-gnu linked `rsbegin.o` and `rsend.o` just like i686-pc-windows-gnu, even though they were no-ops for it. This was likely done for the simplicity back when it was introduced. Today the things are different and these startup/end objects harm other features, like `build-std`. Given the demotion of i686-pc-windows-gnu from tier 1, there is no point in hurting x86_64-pc-windows-gnu, which remains a tier 1. The files are still shipped in case downstream crates expect them, as in case of the unmaintained `xargo`.
2025-09-20fix: Make flycheck clearing dependency-awareShoyu Vanilla-43/+213
2025-09-19Auto merge of #146765 - Zalathar:rollup-ewh4s9o, r=Zalatharbors-13056/+10337
Rollup of 10 pull requests Successful merges: - rust-lang/rust#146229 (Automatically switch to lto-fat when flag RUSTFLAGS="- Zautodiff=Enable" is set) - rust-lang/rust#146484 (rustdoc-search: JavaScript optimization based on Firefox Profiler output) - rust-lang/rust#146541 (std: simplify host lookup) - rust-lang/rust#146615 (rustc_codegen_llvm: Feature Conversion Tidying) - rust-lang/rust#146638 (`rustc_next_trait_solver`: canonical out of `EvalCtxt`) - rust-lang/rust#146663 (Allow windows resource compiler to be overridden) - rust-lang/rust#146691 (std: Fix WASI implementation of `remove_dir_all`) - rust-lang/rust#146709 (stdarch subtree update) - rust-lang/rust#146738 (Fix tidy spellchecking on Windows) - rust-lang/rust#146740 (miri subtree update) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-19mbe: Fix feature gate for `macro_derive`Josh Triplett-3/+3
2025-09-19Merge pull request #20701 from A4-Tacks/track-caller-assist-testChayim Refael Friedman-0/+1
Add `#[track_caller]` for check_assist_by_label
2025-09-19fix ./x readdir logic when CDPATH is setRalf Jung-1/+2
2025-09-19fixes for numerous clippy warningsMarijn Schouten-28/+22