David Tolnay
dac9d78647
Remove unneeded lifetimes from signature of BTreeSet::extract_if
2025-06-13 20:33:54 -07:00
Jubilee Young
4658aee127
tests: Convert two handwritten minicores to add-core-stubs
2025-06-13 18:59:41 -07:00
bors
64c81fd105
Auto merge of #142235 - Kobzol:rustc-dist-alt-assertions, r=marcoieni
...
Build rustc with assertions in `dist-alt` jobs
Revival of https://github.com/rust-lang/rust/pull/131077 , to check CI times now that we don't do PGO/BOLT anymore on Linux `-alt` builds.
r? `@ghost`
try-job: dist-x86_64-msvc-alt
try-job: dist-x86_64-linux-alt
2025-06-14 01:59:38 +00:00
WANG Rui
c49ec83868
Add f16 inline asm support for LoongArch
2025-06-14 09:39:30 +08:00
Antoni Boucher
3f09406283
Add patch to fix a run-make test
2025-06-13 21:13:35 -04:00
David Tolnay
3d8d575663
Reduce precedence of expressions that have an outer attr
2025-06-13 18:09:13 -07:00
David Tolnay
2171f89eb2
Reduce precedence of expressions that have an outer attr
2025-06-13 18:09:13 -07:00
Antoni Boucher
033fa35227
Fix for run-make tests
2025-06-13 20:22:55 -04:00
Tadeo Kondrak
3f4a23e5a8
Allow lifetime repeats in macros: $($x)'a*
...
This works in rustc. This change isn't motivated by any real code.
I just learned about it and decided to see why it doesn't work with
rust-analyzer.
2025-06-13 18:13:01 -06:00
bors
d087f112b7
Auto merge of #134841 - estebank:serde-attr-4, r=wesleywiser
...
Look at proc-macro attributes when encountering unknown attribute
```
error: cannot find attribute `sede` in this scope
--> $DIR/missing-derive-2.rs:22:7
|
LL | #[sede(untagged)]
| ^^^^
|
help: the derive macros `Deserialize` and `Serialize` accept the similarly named `serde` attribute
|
LL | #[serde(untagged)]
| +
error: cannot find attribute `serde` in this scope
--> $DIR/missing-derive-2.rs:16:7
|
LL | #[serde(untagged)]
| ^^^^^
|
note: `serde` is imported here, but it is a crate, not an attribute
--> $DIR/missing-derive-2.rs:5:1
|
LL | extern crate serde;
| ^^^^^^^^^^^^^^^^^^^
help: `serde` is an attribute that can be used by the derive macros `Serialize` and `Deserialize`, you might be missing a `derive` attribute
|
LL + #[derive(Serialize, Deserialize)]
LL | enum B {
|
```
Partially address #47608 . This PR doesn't find [macros that haven't yet been imported by name](af945cb86e ).
2025-06-13 22:59:24 +00:00
Daniel Paoliello
295378729b
DRAFT: Add an aarch64-msvc build running on ARM64 Windows
2025-06-13 15:27:35 -07:00
Wesley Wiser
bdc531e92e
Add platform support docs & maintainers for *-windows-msvc
2025-06-13 17:16:30 -05:00
Jonathan Brouwer
1d036f408e
Fix incorrect suggestion when calling an associated type with a type anchor
...
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com >
2025-06-14 00:08:28 +02:00
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