Samuel Tardieu
322e1393a4
Fix false positive of borrow_deref_ref
...
If a reborrow is itself borrowed mutably, do not propose to replace it
by the original reference.
2025-06-12 19:14:35 +02:00
Tamir Duberstein
a82062055a
Delegate <CStr as Debug> to ByteStr
...
This allows UTF-8 characters to be printed without escapes, rather than
just ASCII.
2025-06-12 12:53:14 -04:00
bjorn3
9594d67bcf
Rustup to rustc 1.89.0-nightly ( e703dff8f 2025-06-11)
2025-06-12 16:48:29 +00:00
bjorn3
047a10643b
Sync from rust e703dff8fe
2025-06-12 16:18:26 +00:00
Ralf Jung
f5c62888b8
intrinsics: rename min_align_of to align_of
2025-06-12 17:50:25 +02:00
Ralf Jung
a9fd42e536
intrinsics: rename min_align_of to align_of
2025-06-12 17:50:25 +02:00
Ralf Jung
97a2d5b8fe
intrinsics: rename min_align_of to align_of
2025-06-12 17:50:25 +02:00
Ralf Jung
62418f4c56
intrinsics: rename min_align_of to align_of
2025-06-12 17:50:25 +02:00
Oli Scherer
488ebeecbe
Remove lower_arg_ty as all callers were passing None
2025-06-12 15:04:09 +00:00
Jakub Beránek
a71b463d2b
Move submodule path cache from parse_gitmodules to Builder
...
It would not be correct if multiple values of `target_dir` were ever passed to the function in the same process.
2025-06-12 15:48:50 +02:00
Jakub Beránek
dbe15e3e94
Remove environment variable modification in test_default_compiler_wasi
2025-06-12 15:48:50 +02:00
Jakub Beránek
85401882d2
Remove RefCell from cc/cxx/ar/ranlib
...
It wasn't really needed there.
2025-06-12 15:48:50 +02:00
Jakub Beránek
2591571263
Stop using Config for tempdir-as-a-service in build_stamp tests
2025-06-12 15:48:50 +02:00
Jakub Beránek
40c2ca9641
Move shared_helpers test to a dedicated module
2025-06-12 15:48:50 +02:00
Lukas Wirth
a30f16706a
Merge pull request #19985 from ChayimFriedman2/proc-macro-srv-ast-id
...
fix: Support spans with proc macro servers from before the ast id changes
2025-06-12 13:26:03 +00:00
Folkert de Vries
efaf3eb8a0
ignore run-make tests that need std on no_std targets
...
In particular, anything that includes `none` in the target tripple, and `nvptx64-nvidia-cuda`
2025-06-12 15:10:12 +02:00
Chayim Refael Friedman
af66309742
Support spans with proc macro servers from before the ast id changes
...
The only thing changed is the value of the fixup ast id, so we just swap it.
2025-06-12 16:08:48 +03:00
Jakub Beránek
5b50e0ba54
Add support for snapshot tests with insta
2025-06-12 14:27:29 +02:00
antoyo
b4be0b9dca
Merge pull request #700 from FractalFir/fuzz_support
...
Add support for automatically reducing found fuzz cases.
2025-06-12 08:14:39 -04:00
Lukas Wirth
4b3ad4bd10
Fix tests
2025-06-12 14:01:46 +02:00
Stypox
17f69bfda0
Rename tool-config to tool and add docs
2025-06-12 13:58:38 +02:00
Lukas Wirth
4d811e34cc
Return item tree query results by ref
2025-06-12 13:35:43 +02:00
Lukas Wirth
b1c86333b7
Remove dead code
2025-06-12 13:35:43 +02:00
Lukas Wirth
724537f31f
Shrink ModItem by usize
2025-06-12 13:35:43 +02:00
Tshepang Mbambo
7db4177547
Merge pull request #2464 from rust-lang/rustc-pull
...
Rustc pull update
2025-06-12 13:30:15 +02:00
bors
6c8138de8f
Auto merge of #142127 - compiler-errors:nested-goals-certainty, r=lcnr
...
Apply nested goals certainty to `InspectGoals` for normalizes-to
...so that normalizes-to goals don't have `Certainty::Yes` even if they have nested goals which don't hold.
r? lcnr
2025-06-12 11:29:20 +00:00
xizheyin
b8066f94fd
Tracking the old name of renamed unstable library attribute
...
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-06-12 19:24:11 +08:00
Nicholas Nethercote
376cbc3787
Introduce -Zmacro-stats.
...
It collects data about macro expansions and prints them in a table after
expansion finishes. It's very useful for detecting macro bloat,
especially for proc macros.
Details:
- It measures code snippets by pretty-printing them and then measuring
lines and bytes. This required a bunch of additional pretty-printing
plumbing, in `rustc_ast_pretty` and `rustc_expand`.
- The measurement is done in `MacroExpander::expand_invoc`.
- The measurements are stored in `ExtCtxt::macro_stats`.
2025-06-12 21:17:17 +10:00
Waffle Lapkin
c871bf196f
Add myself (WaffleLapkin) to review rotation
2025-06-12 13:06:57 +02:00
Deadbeef
ae8ca1f858
early linting: avoid redundant calls to check_id
2025-06-12 19:01:19 +08:00
Chayim Refael Friedman
40b743de04
Merge pull request #19983 from ChayimFriedman2/proc-macro-eq
...
fix: Fix comparison of proc macros
2025-06-12 10:42:21 +00:00
Jakub Beránek
7a0d0de0e1
Remove bootstrap adhoc group
...
It corresponds 1:1 to the bootstrap team, and with the review preferences we shouldn't need it.
2025-06-12 12:34:22 +02:00
Chayim Refael Friedman
6a0f4e59a8
Fix comparison of proc macros
...
Comparing the TypeId is not enough, they also contain data.
2025-06-12 13:31:55 +03:00
Jana Dönszelmann
2e7e52e07c
detect when variants have the same name as an associated function
2025-06-12 12:26:27 +02:00
Jana Dönszelmann
975741c294
add test for dead code caused by enum variants shadowing an associated function
2025-06-12 12:25:30 +02:00
Stypox
781baafbe4
Add documentation for init_logger_with_additional_layer
2025-06-12 12:11:15 +02:00
Lukas Wirth
dfa9d68270
Remove AttrOwner
2025-06-12 12:09:41 +02:00
Oli Scherer
de4e7adc96
Don't hardcode the intrinsic return types twice in the compiler
2025-06-12 09:57:06 +00:00
Deadbeef
d03d226165
avoid &mut P<T> in visit_expr etc methods
2025-06-12 17:36:03 +08:00
Deadbeef
5f0dd44b3b
avoid &mut P<T> in visit_expr etc methods
2025-06-12 17:36:03 +08:00
Lukas Wirth
762efdfce8
Ditch the unnecessary smallvec
2025-06-12 11:27:55 +02:00
Lukas Wirth
e51cad90ed
Coalesce item tree data maps
2025-06-12 11:21:26 +02:00
Lukas Wirth
834579f148
AttrOwner needs no ModItem
2025-06-12 11:05:18 +02:00
Lukas Wirth
a265cdd10e
Remove FileItemTreeId
2025-06-12 10:25:06 +02:00
Lukas Wirth
d4a3719617
Remove ItemTreeId
2025-06-12 10:25:06 +02:00
Trevor Gross
61881e3c70
Update the stdarch submodule
...
Includes the following changes:
* Add s390x z17 target features [1]
* Remove `compiler-builtins` from `rustc-dep-of-std` dependencies [2]
* Darwin AArch64 detection update [3]
* Fixes for the latest nightly [4]
* Add a lockfile [5]
[1]: https://github.com/rust-lang/stdarch/pull/1826
[2]: https://github.com/rust-lang/stdarch/pull/1825
[3]: https://github.com/rust-lang/stdarch/pull/1827
[4]: https://github.com/rust-lang/stdarch/pull/1830
[5]: https://github.com/rust-lang/stdarch/pull/1829
2025-06-12 07:59:13 +00:00
Jana Dönszelmann
e2afe04e2e
remove 'static in some places
2025-06-12 09:57:38 +02:00
Trevor Gross
841f7ce69a
Make missing_fragment_specifier an unconditional error
...
This was attempted in [1] then reverted in [2] because of fallout.
Recently, this was made an edition-dependent error in [3].
Make missing fragment specifiers an unconditional error again.
[1]: https://github.com/rust-lang/rust/pull/75516
[2]: https://github.com/rust-lang/rust/pull/80210
[3]: https://github.com/rust-lang/rust/pull/128006
2025-06-12 07:57:12 +00:00
Jana Dönszelmann
e6a5f281ec
add error message for unused duplicate
2025-06-12 09:56:47 +02:00
Jana Dönszelmann
6072207a11
introduce new lint infra
...
lint on duplicates during attribute parsing
To do this we stuff them in the diagnostic context to be emitted after
hir is constructed
2025-06-12 09:56:47 +02:00