about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-07-08remove `-znostart-stop-gc` workaroundRémy Rakic-29/+0
Now that `#[used(linker)]` is the default on ELF, we don't need to use the `-znostart-stop-gc` link-arg workaround to match bfd's behavior when using lld.
2025-07-08document new stable flags, with x64 linux implementation notesRémy Rakic-43/+59
2025-07-08expand `-Clink-self-contained` testsRémy Rakic-1/+47
- update existing tests for stabilization - ensure `-Clink-self-contained=-linker` is only stable on x64 linux - test invalid `-Clink-self-contained` components
2025-07-08update to literal-escaper-0.0.5Marijn Schouten-16/+16
2025-07-08Update README with link to `josh-sync`Jakub Beránek-45/+2
2025-07-08Remove custom josh-sync scriptsJakub Beránek-768/+0
2025-07-08Also test `LldWrapper` and remove `llvm-config` override from testsJakub Beránek-3/+10
2025-07-08Update llvm-bitcode-linker testsJakub Beránek-5/+35
2025-07-08Remove sysroot copy from `LlvmBitcodeLinker` stepJakub Beránek-20/+10
That step should be responsible for building the tool, not performing side-effects. Also, only copy the tool to the `self-contained` directory, not to the `rustlib/<target>/bin` directory.
2025-07-08Remove `extra_features` from `LlvmBitcodeLinker`Jakub Beránek-6/+2
It wasn't used anywhere.
2025-07-08expand `-Clinker-features` testsRémy Rakic-19/+59
- ensure only `-Clinker-features=-lld` is stabilized, and only on x64 linux - test `-Clinker-features` unstable values
2025-07-08update bootstrap mcp510 handlingRémy Rakic-16/+46
beta and stage1 need to use different flags (-C vs -Z) to be able to use the old and new `linker-features` and `link-self-contained` flags
2025-07-08stabilize `-Clink-self-contained=-linker` on x64 linuxRémy Rakic-21/+40
This stabilizes a subset of the `-Clink-self-contained` components on x64 linux: the rust-lld opt-out. The opt-in is not stabilized, as interactions with other stable flags require more internal work, but are not needed for stabilizing using rust-lld by default. Similarly, since we only switch to rust-lld on x64 linux, the opt-out is only stabilized there. Other targets still require `-Zunstable-options` to use it.
2025-07-08stabilize `-Clinker-features=-lld` on x64 linuxRémy Rakic-20/+70
This stabilizes a subset of the `-Clinker-features` components on x64 linux: the lld opt-out. The opt-in is not stabilized, as interactions with other stable flags require more internal work, but are not needed for stabilizing using rust-lld by default. Similarly, since we only switch to rust-lld on x64 linux, the opt-out is only stabilized there. Other targets still require `-Zunstable-options` to use it.
2025-07-08Disable `tests/run-make/mte-ffi`Jieyou Xu-0/+7
See RUST-141600: this test is broken in two ways: 1. This test triggers `-Wincompatible-pointer-types` on GCC 14. 2. This test requires ARMv8.5+ w/ MTE extensions enabled, but GHA CI runner hardware do not have this enabled.
2025-07-08Revert `tests/run-make/mte-ffi` changesJieyou Xu-7/+4
Partially reverts commit 40311c4dcf666e8bddcec4a8059e7d9f12bbd363.
2025-07-08add post-dist test for checking that we use LLDRémy Rakic-22/+32
And remove the previous beta/stable/nightly LLD tests.
2025-07-08use LLD by default on x64 regardless of channelRémy Rakic-7/+2
2025-07-08Merge pull request #4454 from RalfJung/data_structureOli Scherer-25/+26
move our data structures into a central location
2025-07-08Fix handling of std crates for no_std targetsJakub Beránek-41/+106
2025-07-08Add `crates` metadata to `doc::Std` stepJakub Beránek-20/+24
2025-07-08Remove test hack for std cratesJakub Beránek-5/+0
2025-07-08Merge pull request #2495 from Kobzol/josh-sync-stdarch许杰友 Jieyou Xu (Joe)-2/+3
2025-07-08Merge pull request #4455 from RalfJung/rustupRalf Jung-3973/+6410
Rustup
2025-07-08Mention that stdarch is managed by josh-syncJakub Beránek-2/+3
2025-07-08Add josh-sync config fileJakub Beránek-0/+3
2025-07-08Remove josh-sync crateJakub Beránek-455/+0
2025-07-08Merge from rustcRalf Jung-3972/+6409
2025-07-08Auto merge of #142869 - nnethercote:join_path-mini, r=camelidbors-2/+2
Use `join_with_double_colon` in `write_shared.rs`. For consistency. Also, it's faster because `join_with_double_colon` does a better job estimating the allocation size than `join` from `itertools`. r? `@camelid`
2025-07-08Preparing for merge from rustcRalf Jung-1/+1
2025-07-07Let `rvalue_creates_operand` return true for *all* `Rvalue::Aggregate`sScott McMurray-86/+261
Inspired by <https://github.com/rust-lang/rust/pull/138759#discussion_r2156375342> where I noticed that we were nearly at this point, plus the comments I was writing in 143410 that reminded me a type-dependent `true` is fine. This PR splits the `OperandRef::builder` logic out to a separate type, with the updates needed to handle SIMD as well. In doing so, that makes the existing `Aggregate` path in `codegen_rvalue_operand` capable of handing SIMD values just fine. As a result, we no longer need to do layout calculations for aggregate result types when running the analysis to determine which things can be SSA in codegen.
2025-07-08Merge pull request #20192 from ChayimFriedman2/link-type-panicLukas Wirth-3/+30
fix: Fix a case where the link type was `None`
2025-07-08Auto merge of #143621 - matthiaskrgr:rollup-p1ce8l7, r=matthiaskrgrbors-176/+598
Rollup of 7 pull requests Successful merges: - rust-lang/rust#142098 (Implement `int_format_into` feature) - rust-lang/rust#143567 (Point to correct argument in Func Call when Self type fails trait bound) - rust-lang/rust#143570 (consider nested cases for duplicate RPITIT) - rust-lang/rust#143571 (remove `has_nested` from builtin candidates) - rust-lang/rust#143586 (Fix wrong cache event query key) - rust-lang/rust#143589 (const-block-as-pattern: do not refer to no-longer-existing nightly feature) - rust-lang/rust#143608 (Fix in std::String docs) r? `@ghost` `@rustbot` modify labels: rollup
2025-07-08Don't mark `#[target_feature]` safe fns as unsafe in rustdoc JSON.Predrag Gruevski-1/+37
2025-07-08Add target maintainer information for mips64-unknown-linux-muslabi64Jens Reidel-1/+51
The mips64-unknown-linux-muslabi64 target is currently rather broken, but I'm working on getting it fixed so that it can at least be used again. While I can't commit to maintaining the LLVM side of this target, I don't mind looking into any other MIPS or musl-related issues that arise with this target. Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-07-08Rollup merge of #143608 - codexarafat:fix-string-doc, r=NoratriebMatthias Krüger-1/+1
Fix in std::String docs This PR removes the word “else” from the sentence ('something else similar') in the String documentation to improve clarity. Fixes rust-lang/rust#143579.
2025-07-08Rollup merge of #143589 - RalfJung:const-pat, r=compiler-errorsMatthias Krüger-5/+7
const-block-as-pattern: do not refer to no-longer-existing nightly feature Surely everyone who used this nightly feature has fixed their code by now. So let's not confused people on stable that try to use a const block as a pattern by referring to some dead nightly feature.
2025-07-08Rollup merge of #143586 - Kobzol:self-profile-fix, r=oli-obkMatthias Krüger-1/+1
Fix wrong cache event query key I messed this up in https://github.com/rust-lang/rust/pull/142978. It is only an issue if someone enables the event manually, which almost no-one does, so it could take a while before we found it :D Luckily I noticed it while re-reading the PR. r? `@oli-obk`
2025-07-08Rollup merge of #143571 - lcnr:has_nested-bb, r=compiler-errorsMatthias Krüger-66/+54
remove `has_nested` from builtin candidates it's no longer necessary r? types
2025-07-08Rollup merge of #143570 - bvanjoi:issue-143560, r=compiler-errorsMatthias Krüger-11/+162
consider nested cases for duplicate RPITIT Fixes rust-lang/rust#143560 r? `@compiler-errors` cc `@Zoxc`
2025-07-08Rollup merge of #143567 - xizheyin:143336, r=compiler-errorsMatthias Krüger-10/+48
Point to correct argument in Func Call when Self type fails trait bound Fixes rust-lang/rust#143336 When a trait bound fails due to the `Self` type parameter, `adjust_fulfillment_errors` now correctly points to the corresponding function argument instead of incorrectly pointing to other arguments. This is because `Call` may also need to handle the `self` parameter, and not just `MethodCall` needs to be handled, as rust-lang/rust#143336. r? compiler
2025-07-08Rollup merge of #142098 - GuillaumeGomez:int_format_into, r=AmanieuMatthias Krüger-82/+325
Implement `int_format_into` feature I took over rust-lang/rust#138338 with `@madhav-madhusoodanan's` approval. Since https://github.com/rust-lang/rust/pull/136264, a lot of changes happened so I made use of them to reduce the number of changes. ACP approval: https://github.com/rust-lang/libs-team/issues/546#issuecomment-2707244569 ## Associated Issue - https://github.com/rust-lang/rust/issues/138215 r? `@hanna-kruppe`
2025-07-07fix: Remove newline from multiple crate versions noteScott Schafer-1/+1
2025-07-08Auto merge of #143433 - oli-obk:ty_span_qry, r=compiler-errorsbors-26/+67
Add `ty_span` query r? `@compiler-errors` fixes diagnostic regressions from https://github.com/rust-lang/rust/pull/142030 Also uses the new query in `check_const_item`
2025-07-07Use `simd_funnel_sh{l,r}` and `simd_round_ties_even` to remove uses of LLVM ↵sayantn-163/+47
intrinsics
2025-07-07some clippy fixesMarijn Schouten-14/+12
2025-07-07std_detect: RISC-V Linux: Ergonomic querying with `riscv_hwprobe`Tsukasa OI-41/+42
Originally, we used an array of `riscv_hwprobe` directly and indexed using raw numbers, making correspondence between the index and the query key less obvious. We also frequently used `out[idx].key != -1` to test whether the key is supported by the `riscv_hwprobe` system call (on the Linux kernel version we are testing) but we'd better to integrate with an operation to retrieve the value. This commit improves the ergonomics of feature querying by: 1. Utilizing macros to a. enable indexing by identifier names and b. encapsulate accesses to the `riscv_hwprobe` array to query and 2. New method `riscv_hwprobe::get()` returning `Option<u64>`, integrating availability checking and value retrieval. It also removes `has_ima` for now because it's redundant if we only need to test for single base behavior.
2025-07-07Account for const stability in clippy when checking constnessEsteban Küber-6/+14
2025-07-07Account for const stability in clippy when checking constnessEsteban Küber-6/+14
2025-07-07Make `Default` const and add some `const Default` implsEsteban Küber-10/+4
Full list of `impl const Default` types: - () - bool - char - Cell - std::ascii::Char - usize - u8 - u16 - u32 - u64 - u128 - i8 - i16 - i32 - i64 - i128 - f16 - f32 - f64 - f128 - std::marker::PhantomData<T> - Option<T> - std::iter::Empty<T> - std::ptr::Alignment - &[T] - &mut [T] - &str - &mut str - String - Vec<T>