Commit Graph

300570 Commits

Author SHA1 Message Date
Rémy Rakic
aa52711543 add post-dist test for checking that we use LLD
And remove the previous beta/stable/nightly LLD tests.
2025-07-08 08:08:40 +00:00
Rémy Rakic
a4ea949356 use LLD by default on x64 regardless of channel 2025-07-08 08:08:40 +00:00
Oli Scherer
5058f90402 Merge pull request #4454 from RalfJung/data_structure
move our data structures into a central location
2025-07-08 07:41:52 +00:00
Jakub Beránek
d6bc881afb Fix handling of std crates for no_std targets 2025-07-08 09:26:55 +02:00
Jakub Beránek
5880a3196b Add crates metadata to doc::Std step 2025-07-08 09:21:35 +02:00
Jakub Beránek
8d0c55cb6b Remove test hack for std crates 2025-07-08 09:21:35 +02:00
许杰友 Jieyou Xu (Joe)
342d78d757 Merge pull request #2495 from Kobzol/josh-sync-stdarch 2025-07-08 15:12:54 +08:00
Ralf Jung
9110617cc7 Merge pull request #4455 from RalfJung/rustup
Rustup
2025-07-08 06:59:33 +00:00
Jakub Beránek
922ee88762 Mention that stdarch is managed by josh-sync 2025-07-08 08:57:05 +02:00
Ralf Jung
bd84ba8dda Merge from rustc 2025-07-08 08:34:55 +02:00
bors
45b80ac21a Auto merge of #142869 - nnethercote:join_path-mini, r=camelid
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-08 06:32:37 +00:00
Ralf Jung
0d306dd7f4 Preparing for merge from rustc 2025-07-08 08:22:53 +02:00
Scott McMurray
8cf2c71243 Let rvalue_creates_operand return true for *all* Rvalue::Aggregates
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-07 23:08:10 -07:00
Lukas Wirth
eed37be419 Merge pull request #20192 from ChayimFriedman2/link-type-panic
fix: Fix a case where the link type was `None`
2025-07-08 05:52:58 +00:00
bors
2783fc43fd Auto merge of #143621 - matthiaskrgr:rollup-p1ce8l7, r=matthiaskrgr
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-08 03:30:58 +00:00
Predrag Gruevski
717041232a Don't mark #[target_feature] safe fns as unsafe in rustdoc JSON. 2025-07-08 02:02:56 +00:00
Jens Reidel
a58a423f9a Add target maintainer information for mips64-unknown-linux-muslabi64
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-08 03:17:04 +02:00
Matthias Krüger
fd05071727 Rollup merge of #143608 - codexarafat:fix-string-doc, r=Noratrieb
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-08 03:09:59 +02:00
Matthias Krüger
65dded8387 Rollup merge of #143589 - RalfJung:const-pat, r=compiler-errors
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-08 03:09:58 +02:00
Matthias Krüger
1a45ab116d Rollup merge of #143586 - Kobzol:self-profile-fix, r=oli-obk
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-08 03:09:58 +02:00
Matthias Krüger
b29f039ae3 Rollup merge of #143571 - lcnr:has_nested-bb, r=compiler-errors
remove `has_nested` from builtin candidates

it's no longer necessary

r? types
2025-07-08 03:09:57 +02:00
Matthias Krüger
a4e05e1f74 Rollup merge of #143570 - bvanjoi:issue-143560, r=compiler-errors
consider nested cases for duplicate RPITIT

Fixes rust-lang/rust#143560

r? `@compiler-errors`

cc `@Zoxc`
2025-07-08 03:09:57 +02:00
Matthias Krüger
40e1ccf458 Rollup merge of #143567 - xizheyin:143336, r=compiler-errors
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-08 03:09:56 +02:00
Matthias Krüger
d41f046de5 Rollup merge of #142098 - GuillaumeGomez:int_format_into, r=Amanieu
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-08 03:09:56 +02:00
Scott Schafer
62951c2e07 fix: Remove newline from multiple crate versions note 2025-07-07 18:54:23 -06:00
bors
688ea65df6 Auto merge of #143433 - oli-obk:ty_span_qry, r=compiler-errors
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-08 00:11:13 +00:00
sayantn
658b5c8f69 Use simd_funnel_sh{l,r} and simd_round_ties_even to remove uses of LLVM intrinsics 2025-07-07 23:30:02 +00:00
Marijn Schouten
fddd05bd7f some clippy fixes 2025-07-07 23:28:47 +00:00
Tsukasa OI
1bc289da3a std_detect: RISC-V Linux: Ergonomic querying with riscv_hwprobe
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-07 23:13:29 +00:00
Esteban Küber
5228e28469 Account for const stability in clippy when checking constness 2025-07-07 23:07:32 +00:00
Esteban Küber
8f8099fb42 Account for const stability in clippy when checking constness 2025-07-07 23:07:32 +00:00
Esteban Küber
d6f7aad00e Make Default const and add some const Default impls
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>
2025-07-07 22:09:37 +00:00
Esteban Küber
c3301503b9 Make Default const and add some const Default impls
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>
2025-07-07 22:09:37 +00:00
Pavel Grigorenko
ae5cb5f66d Mention more APIs in ParseIntError docs 2025-07-08 01:05:14 +03:00
Alona Enraght-Moony
45053e21b2 Run tests/rustdoc-json/attrs/target_features on all hosts.
Makes it more convenient to test rustdoc on non x86_64. I mainly care
about the aarch64 dev-desktops.

This works because rustdoc uses all target features, not just that of
the target.
2025-07-07 21:56:54 +00:00
Jakub Beránek
ce73251d44 Prepare for merging from rust-lang/rust
This updates the rust-version file to 1b61d43bdb.
2025-07-07 21:51:29 +00:00
Jakub Beránek
8600192a42 Add config files for rustc-josh-sync 2025-07-07 21:51:29 +00:00
kilavvy
816f029739 Update README.md
- Update ui.md
- Update type-alias-impl-trait.md
- Update README.md
2025-07-07 21:51:29 +00:00
Jakub Beránek
b535003608 Remove std-detect dev dependency in core_arch 2025-07-07 21:50:45 +00:00
okaneco
600497f3ed Mark avx broadcast intrinsics as safe 2025-07-07 21:50:01 +00:00
ltdk
e46d2207bd Use simd_extract! macro instead of calling simd_extract directly 2025-07-07 21:48:32 +00:00
Amanieu d'Antras
8ae4e6a566 Update stabilization version of certain x86 intrinsics to 1.89
These were left as `CURRENT_RUSTC_VERSION` in the submodule.
2025-07-07 21:47:33 +00:00
Jakub Beránek
f697f81fc9 Add josh synchronization scripts 2025-07-07 21:47:27 +00:00
Jakub Beránek
e8d9e80ac6 Add empty rust-version file 2025-07-07 21:47:27 +00:00
Jakub Beránek
8a195efa1e Make it possible to attach opaque string metadata to StepMetadata 2025-07-07 23:06:18 +02:00
mejrs
49421d1fa3 Remove support for dynamic allocas 2025-07-07 23:04:06 +02:00
bors
a2d45f73c7 Auto merge of #143601 - matthiaskrgr:rollup-9iw2sqk, r=matthiaskrgr
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#132469 (Do not suggest borrow that is already there in fully-qualified call)
 - rust-lang/rust#143340 (awhile -> a while where appropriate)
 - rust-lang/rust#143438 (Fix the link in `rustdoc.md`)
 - rust-lang/rust#143539 (Regression tests for repr ICEs)
 - rust-lang/rust#143566 (Fix `x86_64-unknown-netbsd` platform support page)
 - rust-lang/rust#143572 (Remove unused allow attrs)
 - rust-lang/rust#143583 (`loop_match`: fix 'no terminator on block')
 - rust-lang/rust#143584 (make `Machine::load_mir` infallible)
 - rust-lang/rust#143591 (Fix missing words in future tracking issue)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-07-07 20:30:53 +00:00
Jared Davis
81dd4e61ed use preinterned symbol
fixes https://github.com/rust-lang/rust-clippy/actions/runs/16126736130/job/45505355614?pr=15222#logs
2025-07-07 16:17:19 -04:00
Jared Davis
9580d61dc5 remove no longer used import 2025-07-07 16:05:03 -04:00
Jared Davis
1c7fb0ff91 do not completely suppress warning with test code 2025-07-07 15:59:38 -04:00