Jonathan Brouwer
c9995d2492
Failing test
...
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-14 00:08:02 +02:00
David Tolnay
d75b0ae7ce
Add AST pretty-printer tests involving attr precedence
...
This test currently fails (as expected).
--- stderr -------------------------------
Pretty-printer lost necessary parentheses
BEFORE: (#[attr] loop {}).field
AFTER: #[attr] loop {}.field
------------------------------------------
2025-06-13 13:59:21 -07:00
relaxcn
bf1a276db3
make it support more cases
2025-06-14 04:58:47 +08:00
Soveu
8f77681656
100% safe implementation of RepeatN
2025-06-13 22:32:15 +02:00
Antoni Boucher
3812cf454d
Reenable run-make tests
2025-06-13 16:17:44 -04:00
antoyo
1e96d86c3a
Merge pull request #708 from rust-lang/tests/remove-passing-tests
...
Remove tests that pass
2025-06-13 16:11:20 -04:00
Antoni Boucher
efc88151ba
Fix to make the test zst_no_llvm_alloc pass
2025-06-13 15:49:37 -04:00
Antoni Boucher
3f1e4739ac
Remove tests that pass
2025-06-13 15:45:38 -04:00
Waffle Lapkin
cea73e95a8
remove pref_align_of intrinsic handling, rename {min_=>}align_of{,_val}
2025-06-13 21:31:46 +02:00
Trevor Gross
19b47ae1f4
Mark compiler-builtins as publish = false
...
Now that this repository is a subtree, we have no need to continue
publishing `compiler-builtins`.
2025-06-13 18:15:18 +00:00
Rémy Rakic
2554f8f74d
use MixedBitSet for borrows-in-scope computation
...
Some code can have a few thousand loans, and this bitset is better
suited to these somewhat sparse cases.
That includes a couple of rustc-perf benchmarks.
2025-06-13 18:01:32 +00:00
Michael Goulet
73c4863c6d
Don't fold ExternalConstraintsData when it's empty
2025-06-13 17:57:25 +00:00
Michael Goulet
81f9f0861e
TypeVisiting binders no longer requires TypeFolding its interior
2025-06-13 17:54:45 +00:00
Michael Goulet
b138202002
TypeVisiting binders no longer requires TypeFolding its interior
2025-06-13 17:54:45 +00:00
Michael Goulet
da8d529820
Replace escaping bound vars in ty/ct visiting, not binder visiting
2025-06-13 17:54:45 +00:00
Michael Goulet
6fa6d0e097
Uplift BoundVarReplacer
2025-06-13 17:54:45 +00:00
Michael Goulet
fe92efaf31
Make connection between Placeholder and Bound a bit more clear in the type abstraction
2025-06-13 17:54:45 +00:00
Michael Goulet
86497e6376
Don't use BTreeMap for mapped_consts
2025-06-13 17:54:45 +00:00
Trevor Gross
6e4e5f5df8
Add some missing mailmap entries
2025-06-13 17:51:27 +00:00
bors
8da623945f
Auto merge of #142443 - matthiaskrgr:rollup-l1l6d0v, r=matthiaskrgr
...
Rollup of 9 pull requests
Successful merges:
- rust-lang/rust#128425 (Make `missing_fragment_specifier` an unconditional error)
- rust-lang/rust#135927 (retpoline and retpoline-external-thunk flags (target modifiers) to enable retpoline-related target features)
- rust-lang/rust#140770 (add `extern "custom"` functions)
- rust-lang/rust#142176 (tests: Split dont-shuffle-bswaps along opt-levels and arches)
- rust-lang/rust#142248 (Add supported asm types for LoongArch32)
- rust-lang/rust#142267 (assert more in release in `rustc_ast_lowering`)
- rust-lang/rust#142274 (Update the stdarch submodule)
- rust-lang/rust#142276 (Update dependencies in `library/Cargo.lock`)
- rust-lang/rust#142308 (Upgrade `object`, `addr2line`, and `unwinding` in the standard library)
Failed merges:
- rust-lang/rust#140920 (Extract some shared code from codegen backend target feature handling)
r? `@ghost`
`@rustbot` modify labels: rollup
try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various
2025-06-13 17:44:15 +00:00
bors
baaf8da734
Auto merge of #142443 - matthiaskrgr:rollup-l1l6d0v, r=matthiaskrgr
...
Rollup of 9 pull requests
Successful merges:
- rust-lang/rust#128425 (Make `missing_fragment_specifier` an unconditional error)
- rust-lang/rust#135927 (retpoline and retpoline-external-thunk flags (target modifiers) to enable retpoline-related target features)
- rust-lang/rust#140770 (add `extern "custom"` functions)
- rust-lang/rust#142176 (tests: Split dont-shuffle-bswaps along opt-levels and arches)
- rust-lang/rust#142248 (Add supported asm types for LoongArch32)
- rust-lang/rust#142267 (assert more in release in `rustc_ast_lowering`)
- rust-lang/rust#142274 (Update the stdarch submodule)
- rust-lang/rust#142276 (Update dependencies in `library/Cargo.lock`)
- rust-lang/rust#142308 (Upgrade `object`, `addr2line`, and `unwinding` in the standard library)
Failed merges:
- rust-lang/rust#140920 (Extract some shared code from codegen backend target feature handling)
r? `@ghost`
`@rustbot` modify labels: rollup
try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various
2025-06-13 17:44:15 +00:00
bors
393e46edab
Auto merge of #142443 - matthiaskrgr:rollup-l1l6d0v, r=matthiaskrgr
...
Rollup of 9 pull requests
Successful merges:
- rust-lang/rust#128425 (Make `missing_fragment_specifier` an unconditional error)
- rust-lang/rust#135927 (retpoline and retpoline-external-thunk flags (target modifiers) to enable retpoline-related target features)
- rust-lang/rust#140770 (add `extern "custom"` functions)
- rust-lang/rust#142176 (tests: Split dont-shuffle-bswaps along opt-levels and arches)
- rust-lang/rust#142248 (Add supported asm types for LoongArch32)
- rust-lang/rust#142267 (assert more in release in `rustc_ast_lowering`)
- rust-lang/rust#142274 (Update the stdarch submodule)
- rust-lang/rust#142276 (Update dependencies in `library/Cargo.lock`)
- rust-lang/rust#142308 (Upgrade `object`, `addr2line`, and `unwinding` in the standard library)
Failed merges:
- rust-lang/rust#140920 (Extract some shared code from codegen backend target feature handling)
r? `@ghost`
`@rustbot` modify labels: rollup
try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various
2025-06-13 17:44:15 +00:00
Trevor Gross
509b8f2291
Clean up and sort manifest keys
...
Use a consistent ordering for top-level manifest keys, and remove those
that are now redundant (`homapage` isn't supposed to be the same as
`repository`, and `documentation` automatically points to docs.rs now).
2025-06-13 17:35:21 +00:00
yanglsh
535b0d5708
fix: exhaustive_structs FP on structs with default valued field
2025-06-14 01:19:12 +08:00
Jonathan Brouwer
b131b6f630
Rework how the disallowed qualifier lints are generated
...
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-13 18:13:34 +02:00
Ralf Jung
963fdbc852
variadic functions: remove list of supported ABIs from error
2025-06-13 18:10:06 +02:00
Samuel Tardieu
506411d9d1
Fix collapsible_else_if FP on conditionally compiled stmt ( #14906 )
...
Closes rust-lang/rust-clippy#14799
changelog: [`collapsible_else_if`] fix FP on conditionally compiled stmt
2025-06-13 15:45:00 +00:00
Lukas Wirth
0a74d46724
Merge pull request #19997 from Veykril/push-xltylvqtpwzx
...
Remove `InternedCallableDefId`
2025-06-13 15:41:49 +00:00
Lukas Wirth
e7fbbaf392
Merge pull request #19995 from Veykril/push-zpyyzqqpywno
...
Turn `BlockId` into a `#[salsa::tracked]`
2025-06-13 15:41:44 +00:00
Martin Nordholts
764e97c86b
compiletest: Clarify that --no-capture is needed with --verbose
...
Confusingly, this does not make compile test print what command is used
to run a ui test:
./x test tests/ui/panics/abort-on-panic.rs --verbose
It is also necessary to pass `--no-capture`, like this:
./x test tests/ui/panics/abort-on-panic.rs --verbose --no-capture
Now you will see prints like this:
executing cd "/rust/build/x86_64-unknown-linux-gnu/test/ui/panics/abort-on-panic.next" && \
RUSTC="/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" \
RUST_TEST_THREADS="32" \
"/rust/build/x86_64-unknown-linux-gnu/test/ui/panics/abort-on-panic.next/a"
Add a hint in the code for this that would have helped me figure this out.
2025-06-13 17:37:30 +02:00
Trevor Gross
10ba25f7ce
fmaximum,fminimum: Fix incorrect result and add tests
...
After adding tests, the current implementation for fminimum fails when
provided a negative zero and NaN as inputs:
---- math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f64 stdout ----
thread 'math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f64' panicked at libm/src/math/fminimum_fmaximum_num.rs:240:13:
fmaximum_num(-0x0p+0, NaN)
l: NaN (0x7ff8000000000000)
r: -0.0 (0x8000000000000000)
---- math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f32 stdout ----
thread 'math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f32' panicked at libm/src/math/fminimum_fmaximum_num.rs:240:13:
fmaximum_num(-0x0p+0, NaN)
l: NaN (0x7fc00000)
r: -0.0 (0x80000000)
Add more thorough spec tests for these functions and correct the
implementations.
Canonicalization is also moved to a trait method to centralize
documentation about what it does and doesn't do.
2025-06-13 15:36:58 +00:00
Lukas Wirth
71f6663521
Remove InternedCallableDefId
...
It's unnecessary
2025-06-13 17:30:50 +02:00
Lukas Wirth
82076c1571
Turn BlockId into a #[salsa::tracked]
2025-06-13 17:30:04 +02:00
antoyo
640c0677e0
Merge pull request #707 from rust-lang/spell-check
...
Run cspell in the CI
2025-06-13 11:12:12 -04:00
yanglsh
ee80deb723
Apply collapsible_else_if to Clippy itself
2025-06-13 22:55:06 +08:00
yanglsh
fea8dd28a0
Lint more cases in collapsible_else_if
2025-06-13 22:54:59 +08:00
xizheyin
a4c8ef9f34
Adjust some doc for Query System
...
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-06-13 22:51:25 +08:00
bors
3dbb49729b
Auto merge of #142451 - flip1995:clippy-subtree-update, r=Manishearth
...
Clippy subtree update
r? `@Manishearth`
1 day late. Got distracted yesterday evening and forgot about it.
2025-06-13 14:42:56 +00:00
bors
0d6ab209c5
Auto merge of #142451 - flip1995:clippy-subtree-update, r=Manishearth
...
Clippy subtree update
r? `@Manishearth`
1 day late. Got distracted yesterday evening and forgot about it.
2025-06-13 14:42:56 +00:00
Antoni Boucher
323432a9e0
Add the cspell action in the CI
2025-06-13 10:42:21 -04:00
Antoni Boucher
2abdea9293
Fix spelling mistakes or ignore spell checking some parts of code
2025-06-13 10:42:21 -04:00
Martin Pool
1bdd12ddc1
Make the URL a hyperlink
2025-06-13 07:36:51 -07:00
lcnr
9c07e8ec80
remove unnecessary function arg
2025-06-13 16:36:48 +02:00
lcnr
64f9c47211
refactor reached_depth -> required_depth
2025-06-13 16:36:48 +02:00
Martin Pool
6438b31117
Fix link to the contribution guide
2025-06-13 07:35:34 -07:00
lcnr
85fe615036
move stack into submodule
2025-06-13 16:34:37 +02:00
Antoni Boucher
72d99d070a
Add cspell config
2025-06-13 10:34:20 -04:00
bit-aloo
2f7cc5a285
remove output from helpers
2025-06-13 20:03:29 +05:30
bit-aloo
66beaa6e5d
replace output usage in bootstrap/lib.rs with new execution context
2025-06-13 20:03:24 +05:30
Oli Scherer
1d41c2c01c
Merge unboxed trait object error suggestion into regular dyn incompat error
2025-06-13 13:54:06 +00:00