about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-07-21add default_lld_opt_in_targets method and modified test accordinglybit-aloo-4/+51
add test for lld opt in and also add thread_local defined state to change opt in targets make the config lld test parameter smoother to work, and have no_llvm_config set even when target_config is not present
2025-07-21Merge pull request #20271 from ChayimFriedman2/cfg-settest-flycheckShoyu Vanilla (Flint)-1/+10
fix: Disable tests in flycheck if `cfg.setTest` is set to false
2025-07-21Don't ICE on non-TypeId metadata within TypeIdOli Scherer-1/+32
2025-07-21fix: `module_name_repetitions` FP on exported macrosyanglsh-1/+21
2025-07-21Disable tests in flycheck if `cfg.setTest` is set to falseChayim Refael Friedman-1/+10
2025-07-21Merge pull request #4481 from RalfJung/read-write-truncateOli Scherer-123/+326
non-deterministically truncate reads/writes
2025-07-21opt-dist: add an option for setting path to stage0 rootMaksim Bondarenkov-8/+14
in MSYS2 we have problems with stage0 for *-gnullvm hosts because prebuilt dist tarballs will be available starting from 1.90.0-beta. also this change helps to match bootstrap.toml config
2025-07-21opt-dist: make `artifact-dir` an absolute path for `opt-dist local`Maksim Bondarenkov-2/+2
...like for CI environments. the same logic applied as for `build_dir`. fixes the issue where some intermediate steps fail due to path being relative to an active directory
2025-07-21Auto merge of #144154 - tgross35:update-builtins, r=tgross35bors-476/+55
compiler-builtins subtree update Subtree update of `compiler-builtins` to https://github.com/rust-lang/compiler-builtins/commit/2cdde03950e8d10d37b8d13e1c1d3ce2e54f36c4. Created using https://github.com/rust-lang/josh-sync. Fixes: https://github.com/rust-lang/rust/issues/144076 r? `@ghost`
2025-07-21Merge pull request #2515 from rust-lang/tshepang-patch-1Tshepang Mbambo-1/+1
typo
2025-07-21typoTshepang Mbambo-1/+1
2025-07-21Fix false positive in useless_attribute with redundant_imports (#15318)Timo-0/+26
Fix false positive in `useless_attribute` with `redundant_imports` Add `redundant_imports` to the list of allowed lints on use items to prevent `useless_attribute` from triggering false positives when `#[expect(redundant_imports)]` or similar attributes are used on use statements. fixes rust-lang/rust-clippy#15316 --- changelog: [`useless_attribute`]: fix false positive when using `#[expect(redundant_imports)]` and similar lint attributes on `use` statements
2025-07-21Fix false positive in useless_attribute with redundant_importsKrishna Ketan Rai-0/+26
The useless_attribute lint was incorrectly flagging #[expect(redundant_imports)] as useless when applied to macro re-exports. This occurred because the lint didn't recognize 'redundant_imports' as a valid rustc lint name. This commit: - Adds 'redundant_imports' to the list of known rustc lints in sym.rs - Updates the useless_attribute lint to properly handle this case - Adds a regression test to prevent future false positives
2025-07-21Merge pull request #2514 from rust-lang/tshepang/for-ssh-protocolJakub Beránek-0/+4
add rdg push git config entry for git protocol pushers (again)
2025-07-21already documented elsewhereTshepang Mbambo-8/+2
2025-07-21Fix broken TLS destructors on 32-bit win7roblabla-3/+14
On the 32-bit win7 target, we use OS TLS instead of native TLS, due to issues with how the OS handles alignment. Unfortunately, this caused issues due to the TLS destructors not running, causing memory leaks among other problems. On Windows, to support OS TLS, the TlsAlloc family of function is used by Rust. This function does not support TLS destructors at all. However, rust has some code to emulate those destructors, by leveraging the TLS support functionality found in the MSVC CRT (specifically, in tlssup.c of the CRT). Specifically, the CRT provides the ability to register callbacks that are called (among other things) on thread destruction. By registering our own callback, we can run through a list of registered destructors functions to execute. To use this functionality, the user must do two things: 1. They must put the address to their callback in a section between `.CRT$XLB` and `.CRT$XLY`. 2. They must add a reference to `_tls_used` (or `__tls_used` on x86) to make sure the TLS support code in tlssup.c isn't garbage collected by the linker. Prior to this commit, this second bit wasn't being done properly by the Rust TLS support code. Instead of adding a reference to _tls_used, it instead had a reference to its own callback to prevent it from getting GC'd by the linker. While this is _also_ necessary, not having a reference on _tls_used made the entire support non-functional. This commit reworks the code to: 1. Add an unconditional `#[used]` attribute on the CALLBACK, which should be enough to prevent it from getting GC'd by the linker. 2. Add a reference to `_tls_used`, which should pull the TLS support code into the Rust programs and not let it be GC'd by the linker.
2025-07-21add rdg push git config entry for git protocol pushers (again)Tshepang Mbambo-0/+10
2025-07-21Update `jobs.yml` docs to reflect subset-modulo-carve-outs relationshipJieyou Xu-6/+19
2025-07-21Remove spellcheck workflowJieyou Xu-23/+0
Unfortunately, the separate spellcheck GHA workflow does not really work with homu, if we would like to enforce the invariant that PR CI is a subset of Full CI (modulo carve outs). This is not prejudice against a reland of a `typos`-based spellcheck, it just probably has to go through the "usual" CI flow with bootstrap, so that it can work with homu.
2025-07-21Enforce PR CI jobs are a subset of Auto CI jobs (modulo carve-outs)Jieyou Xu-5/+333
To prevent possibility of a PR with red PR-only CI passing Auto CI, then all subsequent PR CI runs will be red until that is fixed. Note that this is **not** a "strict" subset relationship: some jobs necessarily have to differ under PR CI and Auto CI environments. For instance: - `x86_64-gnu-tools` will have auto-only env vars like `DEPLOY_TOOLSTATES_JSON: toolstates-linux.json`. - `tidy` will want to `continue_on_error: true` in PR CI to allow for more "useful" compilation errors to also be reported, whereas it needs to `continue_on_error: false` in Auto CI to prevent wasting Auto CI resources. The carve-outs are: 1. `env` variables. 2. `continue_on_error`.
2025-07-21removed tidy check on issues filesKivooeo-1275/+10
2025-07-21Constify Try, From, TryFromEvgenii Zheltonozhskii-299/+204
2025-07-21Merge pull request #2512 from rust-lang/rustc-pullTshepang Mbambo-8947/+17812
Rustc pull update
2025-07-21Stabilize const `TypeId::of`Oli Scherer-21/+14
2025-07-21Don't use another main test file as auxiliaryJieyou Xu-10/+10
In this case, the exact extern crate isn't very important. This is part of the changes needed to address the spurious failures from a main test `../removing-extern-crate.rs` being both an auxiliary and a main test file, causing fs races due to multiple `rustc` processes in multiple test threads trying to build the main test file both as a main test and also as an auxiliary at around the same time.
2025-07-21Merge pull request #2513 from rust-lang/tshepang/typosTshepang Mbambo-6/+6
fix some typos
2025-07-21fix some typosTshepang Mbambo-6/+6
2025-07-21Auto merge of #144238 - jhpratt:rollup-xb8aida, r=jhprattbors-820/+1656
Rollup of 8 pull requests Successful merges: - rust-lang/rust#144144 (tests: Skip supported-crate-types test on musl hosts) - rust-lang/rust#144159 (opt-dist: change build_dir field to be an actual build dir) - rust-lang/rust#144162 (Debug impls for DropElaborators) - rust-lang/rust#144189 (Add non-regression test for rust-lang/rust#144168) - rust-lang/rust#144216 (Don't consider unstable fields always-inhabited) - rust-lang/rust#144229 (Miri subtree update) - rust-lang/rust#144230 (Option::as_slice: fix comment) - rust-lang/rust#144235 (Fix run-make tests on musl hosts) r? `@ghost` `@rustbot` modify labels: rollup
2025-07-21migrate generate newHayashi Mikihiro-58/+97
2025-07-21Remove Retag for Uniquebjorn3-2/+0
2025-07-21Remove each_linked_rlib_for_lto from CodegenContextbjorn3-23/+63
2025-07-21Remove each_linked_rlib_for_lto from CodegenContextbjorn3-5/+11
2025-07-21Move exported_symbols_for_lto out of CodegenContextbjorn3-17/+39
2025-07-21Move exported_symbols_for_lto out of CodegenContextbjorn3-3/+4
2025-07-21Merge exported_symbols computation into exported_symbols_for_ltobjorn3-90/+69
And move exported_symbols_for_lto call from backends to cg_ssa.
2025-07-21Merge exported_symbols computation into exported_symbols_for_ltobjorn3-4/+2
And move exported_symbols_for_lto call from backends to cg_ssa.
2025-07-21Move LTO symbol export calculation from backends to cg_ssabjorn3-191/+132
2025-07-21Move LTO symbol export calculation from backends to cg_ssabjorn3-87/+8
2025-07-21Remove worker idbjorn3-56/+19
It isn't used anywhere. Also inline free_worker into the only call site.
2025-07-21Merge modules and cached_modules for fat LTObjorn3-14/+1
The modules vec can already contain serialized modules and there is no need to distinguish between cached and non-cached cgus at LTO time.
2025-07-21Merge modules and cached_modules for fat LTObjorn3-33/+14
The modules vec can already contain serialized modules and there is no need to distinguish between cached and non-cached cgus at LTO time.
2025-07-21Merge pull request #20268 from lnicola/sync-from-rustLaurențiu Nicola-13079/+18381
minor: Sync from downstream
2025-07-21Downgrade ra-ap-rustc_parse_formatLaurențiu Nicola-17/+22
2025-07-21Revert "Bump rustc-literal-escaper"Laurențiu Nicola-6/+12
This reverts commit 9f3adc540b51a4c2d0472d94033f6d9147b36f6e.
2025-07-21Bump rustc-literal-escaperLaurențiu Nicola-12/+6
2025-07-21Migrate AstNodeEditHayashi Mikihiro-35/+74
2025-07-21Bump rustc cratesLaurențiu Nicola-22/+28
2025-07-21Merge from rust-lang/rustLaurențiu Nicola-13059/+18350
2025-07-21Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-07-21Merge pull request #4486 from rust-lang/rustup-2025-07-21Ralf Jung-733/+983
Automatic Rustup