Commit Graph

300570 Commits

Author SHA1 Message Date
Kivooeo
4b6c3d923f moved & deleted some tests 2025-06-29 22:47:01 +05:00
yanglsh
9cba70b283 fix: cast_possible_truncation should not suggest inside const context 2025-06-30 01:33:35 +08:00
Samuel Tardieu
1f76a23d4d missing_panics_doc: Allow unwrap() and expect() inside const-only contexts (#15170)
changelog: [`missing_panics_doc`]: Allow unwrap() and expect()s in
const-only contexts

Fixes rust-lang/rust-clippy#15169.

As far as I can tell, this change keeps this lint in line with similar
issues and their fixes such as
https://github.com/rust-lang/rust-clippy/pull/13382 and
rust-lang/rust-clippy#10240, so I feel pretty confident that the
behavior it exhibits after this PR is correct.
2025-06-29 17:12:04 +00:00
itsjunetime
ff3c9c15b7 missing_panics_doc: Correctly distinguish maybe-const vs always-const contexts for missing_panics_doc
changelog: [`missing_panics_doc`]: Allow unwrap() and expect()s in const-only contexts
2025-06-29 10:54:13 -06:00
bors
ed2d759783 Auto merge of #143137 - RalfJung:miri-sync, r=RalfJung
Miri subtree update

r? `@ghost`
2025-06-29 16:04:05 +00:00
Folkert de Vries
bcf51051ed inherit #[align] from trait method prototypes 2025-06-29 17:22:45 +02:00
Chayim Refael Friedman
2a66a5b7d5 Merge pull request #20122 from chenyukang/yukang-fix-remove-parens
Remove unnecessary parens in closure
2025-06-29 15:14:31 +00:00
Antoni Boucher
769fb75119 Fix exactudiv and exactsdiv for gcc without 128-bit integers 2025-06-29 10:48:58 -04:00
Samuel Tardieu
ad7de948a8 Consider deref'ed argument as non-temporary
If there are more than one dereference (there is one corresponding
matched with a borrow in any case), consider that the argument might
point to a place expression, which is the safest choice.

Also, use an appropriate number of dereferences in suggestions involving
arguments using themselves multiple dereferences.
2025-06-29 16:36:50 +02:00
Jieyou Xu
20d69c6c26 Re-disable tests/run-make/short-ice on Windows MSVC again 2025-06-29 22:29:12 +08:00
Anne Stijns
54cec0cf5a Port #[link_section] to the new attribute parsing infrastructure 2025-06-29 16:23:46 +02:00
Kivooeo
a38c78c461 moved tests 2025-06-29 18:06:00 +05:00
bors
5e749eb66f Auto merge of #143183 - GuillaumeGomez:rollup-g60lr91, r=GuillaumeGomez
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#142078 (Add SIMD funnel shift and round-to-even intrinsics)
 - rust-lang/rust#142214 (`tests/ui`: A New Order [9/N])
 - rust-lang/rust#142417 (`tests/ui`: A New Order [12/N])
 - rust-lang/rust#143030 (Fix suggestion spans inside macros for the `unused_must_use` lint)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-29 13:02:15 +00:00
Yotam Ofek
6992739ab8 Lazy-ify some markdown rendering 2025-06-29 12:41:16 +00:00
Yotam Ofek
cdc1617cae Don't try to guess how much to pre-allocate
Removing this heuristic doesn't show up as a regression in perf run
2025-06-29 12:41:01 +00:00
dianqk
24e553e6bc mir: Use the new method for BasicBlockData 2025-06-29 20:39:13 +08:00
Ralf Jung
651d2f8f23 Merge pull request #4424 from RalfJung/aarch64-linux-ci
also test on arm-64 linux hosts
2025-06-29 12:31:57 +00:00
dianqk
9f9cd5e283 mir: Add a new method to statement
Avoid introducing a large number of changes when adding optional initialization fields.
2025-06-29 20:13:36 +08:00
Ralf Jung
ea690818bd also test on arm-64 linux hosts 2025-06-29 13:38:55 +02:00
yukang
a203e4118e Remove unnecessary parens in closure 2025-06-29 19:28:48 +08:00
Yotam Ofek
71a841802d Add my work email to mailmap 2025-06-29 11:04:49 +00:00
Ralf Jung
d01e0015a9 Merge pull request #4423 from RalfJung/miri-script-stable
make ./miri work on stable again
2025-06-29 10:50:35 +00:00
Kivooeo
d0bd27924e cleaned up some tests 2025-06-29 15:37:33 +05:00
Guillaume Gomez
f9f3935fa7 Rollup merge of #143030 - Urgau:issue-143025, r=SparrowLii
Fix suggestion spans inside macros for the `unused_must_use` lint

This PR fixes the suggestion spans inside macros for the `unused_must_use` lint by trying to find the oldest ancestor span.

Fixes https://github.com/rust-lang/rust/issues/143025
2025-06-29 12:29:55 +02:00
Guillaume Gomez
05b209d3a2 Rollup merge of #142417 - Kivooeo:tf12, r=jieyouxu
`tests/ui`: A New Order [12/N]

Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895.

r? `@jieyouxu`
2025-06-29 12:29:55 +02:00
Guillaume Gomez
15b227f715 Rollup merge of #142214 - Kivooeo:tf9, r=jieyouxu
`tests/ui`: A New Order [9/N]

Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895.
2025-06-29 12:29:54 +02:00
Guillaume Gomez
8c456929fe Rollup merge of #142078 - sayantn:more-intrinsics, r=workingjubilee
Add SIMD funnel shift and round-to-even intrinsics

This PR adds 3 new SIMD intrinsics

 - `simd_funnel_shl` - funnel shift left
 - `simd_funnel_shr` - funnel shift right
 - `simd_round_ties_even` (vector version of `round_ties_even_fN`)

TODO (future PR): implement `simd_fsh{l,r}` in miri, cg_gcc and cg_clif (it is surprisingly hard to implement without branches, the common tricks that rotate uses doesn't work because we have 2 elements now. e.g, the `-n&31` trick used by cg_gcc to implement rotate doesn't work with this because then `fshl(a, b, 0)` will be `a | b`)

[#t-compiler > More SIMD intrinsics](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/More.20SIMD.20intrinsics/with/522130286)

`@rustbot` label T-compiler T-libs A-intrinsics F-core_intrinsics
r? `@workingjubilee`
2025-06-29 12:29:53 +02:00
Guillaume Gomez
66ad1f2abf Rollup merge of #142078 - sayantn:more-intrinsics, r=workingjubilee
Add SIMD funnel shift and round-to-even intrinsics

This PR adds 3 new SIMD intrinsics

 - `simd_funnel_shl` - funnel shift left
 - `simd_funnel_shr` - funnel shift right
 - `simd_round_ties_even` (vector version of `round_ties_even_fN`)

TODO (future PR): implement `simd_fsh{l,r}` in miri, cg_gcc and cg_clif (it is surprisingly hard to implement without branches, the common tricks that rotate uses doesn't work because we have 2 elements now. e.g, the `-n&31` trick used by cg_gcc to implement rotate doesn't work with this because then `fshl(a, b, 0)` will be `a | b`)

[#t-compiler > More SIMD intrinsics](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/More.20SIMD.20intrinsics/with/522130286)

`@rustbot` label T-compiler T-libs A-intrinsics F-core_intrinsics
r? `@workingjubilee`
2025-06-29 12:29:53 +02:00
Ralf Jung
7be1bf7dfe make ./miri work on stable again 2025-06-29 12:22:58 +02:00
quaternic
76b9fbf5b2 apply suggestions for clippy::manual_is_multiple_of in libm-test 2025-06-29 05:03:12 -05:00
Jieyou Xu
0cb0b22bf2 Use tracing-forest instead of tracing-tree for bootstrap tracing
I find the `tracing-forest` output easier to comprehend.
2025-06-29 17:48:47 +08:00
kilavvy
897c4ee406 Update README.md
- Update ui.md
- Update type-alias-impl-trait.md
- Update README.md
2025-06-29 12:29:28 +03:00
Eeshvar Das
c702055df8 Update the-doc-attribute.md (#1) 2025-06-29 01:15:23 -07:00
Jakub Beránek
1a8b6f5f2f Disable rust-lld in post-dist tests 2025-06-29 09:38:59 +02:00
Jakub Beránek
890f81b1fc Make combining LLD with external LLVM config a hard error 2025-06-29 09:34:45 +02:00
bors
5ca574e85b Auto merge of #143173 - matthiaskrgr:rollup-ieu5k05, r=matthiaskrgr
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#142021 (Doc: clarify priority of lint level sources)
 - rust-lang/rust#142367 (Add regression test for rust-lang/rust#137857 to ensure that we generate intra doc links for extern crate items.)
 - rust-lang/rust#142641 (Generate symbols.o for proc-macros too)
 - rust-lang/rust#142889 (Clarify doc comment on unix OpenOptions)
 - rust-lang/rust#143063 (explain `ImportData::imported_module`)
 - rust-lang/rust#143088 (Improve documentation of `TagEncoding`)
 - rust-lang/rust#143135 (fix typos on some doc comments)
 - rust-lang/rust#143138 (Port `#[link_name]` to the new attribute parsing infrastructure)
 - rust-lang/rust#143155 (`librustdoc` house-keeping 🧹)
 - rust-lang/rust#143169 (Remove unused feature gates)
 - rust-lang/rust#143171 (Fix the span of trait bound modifier `[const]`)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-29 07:22:39 +00:00
Lukas Wirth
638329b86d Merge pull request #20121 from Veykril/push-vkkuutpsuypq
Do not append `--compile-time-deps` to overwritten build script commands
2025-06-29 07:18:59 +00:00
Lukas Wirth
06097350c4 Do not append --compile-time-deps to overwritten build script commands 2025-06-29 09:07:55 +02:00
Jakub Beránek
56283410f2 Merge pull request #2482 from jieyouxu/download-rustc
Add temporary broken `./x test library/std` advisory
2025-06-29 08:10:52 +02:00
Ralf Jung
03a7b9f532 Merge pull request #4420 from rust-lang/rustup-2025-06-29
Automatic Rustup
2025-06-29 05:34:26 +00:00
Ralf Jung
e56294060a disable ptrace codepath since it doesn't build on many targets 2025-06-29 07:12:13 +02:00
The Miri Cronjob Bot
7b985d5435 Merge from rustc 2025-06-29 05:06:26 +00:00
Ralf Jung
a317123ad0 fix miri build in bootstrap 2025-06-29 07:05:17 +02:00
Matthias Krüger
a262c001f6 Rollup merge of #143171 - fmease:fix-span-of-maybe-const-mod, r=compiler-errors
Fix the span of trait bound modifier `[const]`

r? project-const-traits or anyone
2025-06-29 06:59:33 +02:00
Matthias Krüger
77757e7680 Rollup merge of #143169 - yotamofek:pr/unneeded-features, r=compiler-errors
Remove unused feature gates

After finding some unused feature gates in rust-lang/rust#143155 , I wrote a small script to see if I can find any others.
And I did. Not a lot, but still a small win 😁
Contains a few instances of `iter_from_coroutine` that can be removed due to rust-lang/rust#142801 (I guess).
2025-06-29 06:59:32 +02:00
Matthias Krüger
8dbc25ce9f Rollup merge of #143155 - yotamofek:pr/rustdoc/housekeeping, r=GuillaumeGomez
`librustdoc` house-keeping 🧹

This PR mostly removes a bunch of crate-level attributes that were added at some point, but then later on became unnecessary:
- some `#[feature]` gates
- some `#[allow]`s
- a `#[recursion_limit]`

Then I went ahead and sprinkled some tidy sorting on the remaining attrs, and `Cargo.toml`.

Trying to give my anal retentiveness some peace of mind 😅
2025-06-29 06:59:32 +02:00
Matthias Krüger
5fc48ff5aa Rollup merge of #143138 - JonathanBrouwer:link_name_parser, r=jdonszelmann
Port `#[link_name]` to the new attribute parsing infrastructure

Ports `link_name` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971353197

r? `@jdonszelmann`
2025-06-29 06:59:31 +02:00
Matthias Krüger
170fd43d7d Rollup merge of #143135 - tshepang:typos, r=compiler-errors
fix typos on some doc comments
2025-06-29 06:59:31 +02:00
Matthias Krüger
6404d29442 Rollup merge of #143088 - firefighterduck:improve-doc-discr-tag, r=RalfJung
Improve documentation of `TagEncoding`

This PR is follow-up from the [discussion here](https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20VariantId.3DDiscriminant.20when.20tag.20is.20niche.20encoded.3F/with/524384295).

It aims at making the `TagEncoding` documentation less ambiguous and more detailed with references to relevant implementation sides. It especially clears up the ambiguous use of discriminant/variant index, which sparked the discussion referenced above.

PS: While working with layout data, I somehow ended up looking at the docs for `FakeBorrowKind` and noticed that the one example was not in a doc comment. I hope that this is minor enough of a fix for it to be okay in this otherwise unrelated PR.
2025-06-29 06:59:30 +02:00
Matthias Krüger
fd0062cde4 Rollup merge of #143063 - bvanjoi:docs-resolve, r=petrochenkov
explain `ImportData::imported_module`

r? `@petrochenkov`
2025-06-29 06:59:30 +02:00