about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-09-23Use lower_nextsolver::callable_item_signature instead of ↵Jack Huey-141/+188
lower::callable_item_signature
2025-09-23revert change removing `has_infer` check. Commit conservatively patches for ↵ash-1/+36
now, but more development proceeding. Also contains a more concise test
2025-09-23Auto merge of #146938 - matthiaskrgr:rollup-y06ggfz, r=matthiaskrgrbors-169/+262
Rollup of 10 pull requests Successful merges: - rust-lang/rust#146632 (Fix uses of "adaptor") - rust-lang/rust#146731 (test: Use SVG for terminal url test) - rust-lang/rust#146775 (fixes for numerous clippy warnings) - rust-lang/rust#146784 ([win] Use find-msvc-tools instead of cc to find the linker and rc on Windows) - rust-lang/rust#146799 (Fix a dangling reference in `rustc_thread_pool`) - rust-lang/rust#146802 (mbe: Simplifications and refactoring) - rust-lang/rust#146806 (add private module override re-export test) - rust-lang/rust#146827 (Linker-plugin-based LTO: update list of good combinations (inc. beta + nightly)) - rust-lang/rust#146875 (tests/run-make/crate-loading: Rename source files for clarity) - rust-lang/rust#146877 (prevent line number from being copied in chrome) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-23llvm: update remarks support on LLVM 22Augie Fackler-0/+5
LLVM change dfbd76bda01e removed separate remark support entirely, but it turns out we can just drop the parameter and everything appears to work fine. Fixes 146912 as far as I can tell (the test passes.) @rustbot label llvm-main
2025-09-23Rollup merge of #146877 - el-ev:issue146816, ↵Matthias Krüger-7/+18
r=fmease,lolbinarycat,GuillaumeGomez prevent line number from being copied in chrome - Closes rust-lang/rust#146816 Fix the issue where line numbers are copied along with code in Chrome
2025-09-23Rollup merge of #146875 - Enselic:better-file-names, r=jieyouxuMatthias Krüger-6/+3
tests/run-make/crate-loading: Rename source files for clarity For rust-lang/rust#146874 I originally tried to extend the existing test **tests/run-make/crate-loading**. That didn't work out since adding a re-export of the entire crate significantly changes the emitted error messsage. I did put some effort into making that test easier to understand however, by renaming its files. (Since I was confused myself at first.) Let's save some time for future devs by doing just the renames. Further cleanups are possible, but that will change the blessed output, so let's not do that right now. r? ```@jieyouxu``` since you have the context of rust-lang/rust#146874
2025-09-23Rollup merge of #146827 - foxtran:doc/linker-plugin-lto, r=nnethercoteMatthias Krüger-2/+5
Linker-plugin-based LTO: update list of good combinations (inc. beta + nightly) This PR updates the list of good combinations of Rust toolchains and LLVM releases for linker-plugin-based LTO Related to first question in https://users.rust-lang.org/t/questions-regarding-linker-plugin-based-lto/134070
2025-09-23Rollup merge of #146806 - el-ev:issue60926, r=lolbinarycatMatthias Krüger-0/+13
add private module override re-export test - Closes rust-lang/rust#60926 Added a new test to check that `rustdoc` does not create links to `m2` in the crate root when `pub use m1::*` is overrided by `use crate::m1::m2`.
2025-09-23Rollup merge of #146802 - joshtriplett:mbe-simplifications, r=petrochenkovMatthias Krüger-31/+39
mbe: Simplifications and refactoring A few simplifications and refactors in advance of other work. Macro metavariable expressions were using `Ident::as_str` and doing string comparisons; I converted them to use symbols. I factored out a function for transcribing a `ParseNtResult`, which will help separate the evaluation and transcription of future macro metavariable expressions.
2025-09-23Rollup merge of #146799 - cuviper:dangling-count-latch, r=lcnrMatthias Krüger-2/+6
Fix a dangling reference in `rustc_thread_pool` This diverged from `rayon` in rust-lang/rust#142384, where a cleanup commit turned the matched `worker_index` into a reference, which is read _after_ the `set` that may kill it. I've moved that read beforehand, and I hope the new comments will emphasize the subtlety of this unsafe code. Hopefully fixes rust-lang/rust#146677.
2025-09-23Rollup merge of #146784 - dpaoliello:findmsvc, r=wesleywiserMatthias Krüger-45/+22
[win] Use find-msvc-tools instead of cc to find the linker and rc on Windows `find-msvc-tools` was factored out from `cc` to allow updating the use in `rustc_codegen_ssa` (finding the linker when running the Rust compiler) and `rustc_windows_rc` (finding the Windows Resource Compiler when running the Rust compiler) to be separate from the use in `rustc_llvm` (building LLVM as part of building the Rust compiler).
2025-09-23Rollup merge of #146775 - hkBst:clippy-fix-11, r=petrochenkovMatthias Krüger-39/+33
fixes for numerous clippy warnings
2025-09-23Rollup merge of #146731 - Muscraft:svg-test-terminal-url, r=jdonszelmannMatthias Krüger-33/+119
test: Use SVG for terminal url test I came across the test for `-Zterminal-urls` and found its output a bit hard to read. So, I decided to switch it to an SVG test, as I found it easier to differentiate the link and link text. Note: `anstyle-svg` needed to be upgraded to at least `0.1.8` to support links in SVGs, so I went ahead and upgraded it to the latest version (`0.1.11`).
2025-09-23Rollup merge of #146632 - ctz:jbp-adaptor-spelling, r=petrochenkovMatthias Krüger-4/+4
Fix uses of "adaptor" These docs are in en_US, so "adapter" is the correct spelling (and indeed used in the next line.) A second commit comes along for the ride to fix other instances in non-rustdoc comments.
2025-09-23std: move WinSock abstractions to `sys::pal`joboet-77/+84
2025-09-23remove test for no_corelcnr-27/+0
2025-09-23yeet fastpathlcnr-13/+1
2025-09-23Remove unused param from `write_header`Yotam Ofek-11/+2
2025-09-23Remove `Tooltip::None` variant, use `Option::None`Yotam Ofek-25/+28
2025-09-23Make `render_example_with_highlighting` return an `impl fmt::Display`Yotam Ofek-71/+62
2025-09-23Changes some aarch64 CIs g++ install & ubuntu ver.Reuben Cruise-3/+3
GCS support was added to GCC in version 15, thus the rmake test for this patch requires GCC15 Similarly, the ubuntu version is updated so the newer clang version is available, and/or GCC15 is the default.
2025-09-23Add proper name mangling for pattern typesOli Scherer-10/+36
2025-09-23Make it possible to `x install` Cranelift and LLVM bitcode linkerJakub Beránek-0/+5
2025-09-23Merge pull request #20543 from sgasho/fix/19443_replace_match_with_if_letShoyu Vanilla (Flint)-1/+23
Fix "Replace match with if let" not to trigger when invalid transformations occur
2025-09-23Expose iterators over an inference result's typesVincent Esche-0/+20
(This re-introduces a reduced access to a couple of previously public fields on `InferenceResult`)
2025-09-23Add attributes for #[global_allocator] functionsNikita Popov-3/+54
Emit `#[rustc_allocator]` etc. attributes on the functions generated by the `#[global_allocator]` macro, which will emit LLVM attributes like `"alloc-family"`. If the module with the global allocator participates in LTO, this ensures that the attributes typically emitted on the allocator declarations are not lost if the definition is imported.
2025-09-23Remove lower::value_ty in favor of lower_nextsolver::value_tyJack Huey-134/+61
2025-09-23Remove lower::ty in favor of lower_nextsolver::tyJack Huey-92/+112
2025-09-23Merge pull request #4601 from RalfJung/rustupRalf Jung-11364/+42407
Rustup
2025-09-23Merge ref 'f6092f224d2b' from rust-lang/rustRalf Jung-11363/+42406
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: f6092f224d2b1774b31033f12d0bee626943b02f Filtered ref: f843cd4f29bdcd8d474dbb9e5e4365eb7f263ec6 This merge was created using https://github.com/rust-lang/josh-sync.
2025-09-23Prepare for merging from rust-lang/rustRalf Jung-1/+1
This updates the rust-version file to f6092f224d2b1774b31033f12d0bee626943b02f.
2025-09-23Merge pull request #20730 from A4-Tacks/migrate-expand-rest-patShoyu Vanilla (Flint)-12/+11
Migrate `expand_record_rest_pattern` assist to use `SyntaxEditor`
2025-09-23Merge pull request #20728 from jackh726/next-trait-solver-next2Shoyu Vanilla (Flint)-303/+382
Use ParamEnv in TraitEnvironment
2025-09-23Auto merge of #146317 - saethlin:panic=immediate-abort, r=nnethercotebors-157/+561
Add panic=immediate-abort MCP: https://github.com/rust-lang/compiler-team/issues/909 This adds a new panic strategy, `-Cpanic=immediate-abort`. This panic strategy essentially just codifies use of `-Zbuild-std-features=panic_immediate_abort`. This PR is intended to just set up infrastructure, and while it will change how the compiler is invoked for users of the feature, there should be no other impacts. In many parts of the compiler, `PanicStrategy::ImmediateAbort` behaves just like `PanicStrategy::Abort`, because actually most parts of the compiler just mean to ask "can this unwind?" so I've added a helper function so we can say `sess.panic_strategy().unwinds()`. The panic and unwind strategies have some level of compatibility, which mostly means that we can pre-compile the sysroot with unwinding panics then the sysroot can be linked with aborting panics later. The immediate-abort strategy is all-or-nothing, enforced by `compiler/rustc_metadata/src/dependency_format.rs` and this is tested for in `tests/ui/panic-runtime/`. We could _technically_ be more compatible with the other panic strategies, but immediately-aborting panics primarily exist for users who want to eliminate all the code size responsible for the panic runtime. I'm open to other use cases if people want to present them, but not right now. This PR is already large. `-Cpanic=immediate-abort` sets both `cfg(panic = "immediate-abort")` _and_ `cfg(panic = "abort")`. bjorn3 pointed out that people may be checking for the abort cfg to ask if panics will unwind, and also the sysroot feature this is replacing used to require `-Cpanic=abort` so this seems like a good back-compat step. At least for the moment. Unclear if this is a good idea indefinitely. I can imagine this being confusing. The changes to the standard library attributes are purely mechanical. Apart from that, I removed an `unsafe` we haven't needed for a while since the `abort` intrinsic became safe, and I've added a helpful diagnostic for people trying to use the old feature. To test that `-Cpanic=immediate-abort` conflicts with other panic strategies, I've beefed up the core-stubs infrastructure a bit. There is now a separate attribute to set flags on it. I've added a test that this produces the desired codegen, called `tests/run-make-cargo/panic-immediate-abort-codegen/` and also a separate run-make-cargo test that checks that we can build a binary.
2025-09-23add regression testlcnr-0/+30
2025-09-23prevent line number from being copied in chromeIris Shi-7/+18
2025-09-23Migrate `expand_record_rest_pattern` assist to use `SyntaxEditor`A4-Tacks-12/+11
Because `add_field` uses `ted`
2025-09-23move config check logic from get_toml to parse_innerbit-aloo-24/+23
2025-09-23Add const parameter keyword completionA4-Tacks-1/+28
Example --- ```rust fn foo<c$0>() {} ``` -> ```rust fn foo<const $1: $0>() {} ```
2025-09-22Skip the panic-immediate-abort-works test when cross-compilingBen Kimock-0/+5
2025-09-23Use ParamEnv in TraitEnvironmentJack Huey-170/+216
2025-09-23Add 'db to TraitEnvironmentJack Huey-109/+122
2025-09-23Make Field::ty return TypeNsjackh726-31/+51
2025-09-22Use ns versions of with_diagnostics queriesjackh726-8/+8
2025-09-22Fix a dangling reference in `rustc_thread_pool`Josh Stone-2/+6
2025-09-22add regression test for issue 146537cyrgani-0/+34
2025-09-22fix ICE in rustdoc::invalid_html_tagsbinarycat-1/+65
2025-09-22Mutex/RwLock/ReentrantLock::data_ptr to be const fnPeter Lyons Kehl-5/+5
2025-09-22Fix a crash/mislex when more than one frontmatter closing possibility is ↵Alex-1/+34
considered
2025-09-22make rust-analyzer settings use dedicated directoryTshepang Mbambo-15/+42
This avoids rust-analyzer having to wait for a build lock due to ./x running other commands (and the other way around).