Commit Graph

303456 Commits

Author SHA1 Message Date
Hayashi Mikihiro
d70e67b604 Migrate PathTransform to SyntaxEditor
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26 13:26:39 +09:00
Hayashi Mikihiro
9e9ff76e32 add Debug on AstSubst PathTransform.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26 13:26:11 +09:00
Young-Flash
2c29977dfc test: add test case for fold doc comment for multiline param list fn 2025-07-26 11:59:50 +08:00
Young-Flash
e39201395d fix fold doc comment for multiline param list fn 2025-07-26 11:57:48 +08:00
bors
f32b23204a Auto merge of #139597 - Kobzol:lint-skip, r=BoxyUwU
Do not run per-module late lints if they can be all skipped

We run ~70 late lints for all dependencies even if they use `--cap-lints=allow`, which seems wasteful. It looks like these lints are super fast (unlike early lints), but still.

r? `@ghost`
2025-07-26 02:31:12 +00:00
okaneco
7f7d343400 str: Mark unstable round_char_boundary feature functions as const
Mark `floor_char_boundary`, `ceil_char_boundary` const
Simplify the implementations, reducing the number of arithmetic operations
2025-07-25 22:09:42 -04:00
Zalathar
2b17897092 Revert "coverage: Enlarge empty spans during MIR instrumentation, not codegen"
This reverts commit f877aa7d14.
2025-07-26 11:14:40 +10:00
Trevor Gross
51c5f191de Remove compiler-builtins-mangled-names
This config was added in 207de019dc ("libary: Forward
compiler-builtins "asm"  and "mangled-names" feature") but it does not
appear this has ever been used. The PR adding it (RUST-78472) says that
this was exposed to help with configuration and points at the [Hermit
Cargo config], but as far as I can tell, this feature name has never
been mentioned in that repository's git history.

Thus, clean up a seemingly unneeded feature.

[Hermit Cargo config]: ab2b830930/.cargo/config
2025-07-25 19:21:20 -05:00
Amanieu d'Antras
1f4561b63d Don't lint against named labels in naked_asm!
Naked functions are allowed to define global labels, just like
`global_asm!`.
2025-07-26 00:42:21 +01:00
Camille GILLOT
7c6496145f Check statics' type in type_of. 2025-07-25 23:39:26 +00:00
bors
0dd07bd216 Auto merge of #144338 - weihanglo:update-cargo, r=weihanglo
Update cargo

8 commits in 6833aa715d724437dc1247d0166afe314ab6854e..9b296973b425ffb159e12cf3cd56580fd5c85382
2025-07-13 02:25:52 +0000 to 2025-07-25 17:10:08 +0000
- Allow using Cargo-as-a-library with gix's reqwest backend (rust-lang/cargo#15653)
- Make timings graphs scalable to user's window (rust-lang/cargo#15766)
- refactor: rename arg `mode` to `intent` (rust-lang/cargo#15774)
- fix: `no-proc-macro` is overridden by subsequent edges (rust-lang/cargo#15764)
- Use `gix` for `cargo package` (rust-lang/cargo#15534)
- cargo-credential-libsecret: give FFI correctly-sized object (rust-lang/cargo#15767)
- Remove unnecessary target-c-int-width from target specs (rust-lang/cargo#15759)
- Expose artifact dependency getters in cargo-as-a-library (rust-lang/cargo#15753)
2025-07-25 23:29:17 +00:00
Camille GILLOT
ec8146477e Look at layout for completeness. 2025-07-25 23:07:31 +00:00
Joel Wejdenstål
d852f7cb12 Implement support for explicit tail calls in the MIR block builders and the LLVM codegen backend. 2025-07-26 01:02:29 +02:00
Joel Wejdenstål
a448837045 Implement support for explicit tail calls in the MIR block builders and the LLVM codegen backend. 2025-07-26 01:02:29 +02:00
Travis Cross
9c99623b8a Merge PR: Stabilization template, docs
This is PR: https://github.com/rust-lang/rustc-dev-guide/pull/2219
2025-07-25 22:28:24 +00:00
Travis Cross
64604ad1da Revise content on lang feature processes
Let's revise both the new content in this PR as well as the remaining
text in the relevant chapters so as to better describe our current
processes related to language features and their stabilizations.

For the new stabilization report template, based on reviewing its
early use and well as reviewing earlier stabilization reports, we've
revised it editorially and added questions designed to capture
additional details to which we commonly want people to speak.
2025-07-25 22:28:10 +00:00
Jieyou Xu
7547b15acb Address review feedback
- Address Call for Testing review feedback
- Address Affiliated work review feedback
- Drop "stabilization is easy" part
- Fix broken feature gate examples
- Elaborate on stabilization report summarization aspects
- Recommend waiting a bit for team nominations
- Make Stabilization Template markdown copy friendly
- Register stabilization report template
- Drop unfinished sentence
- Clarify stabilization report template is for language features
- Add test coverage elaboration
- Add UB checks / opt question
- Amend test coverage explanation
- Mention OSS nightly users
2025-07-25 22:28:10 +00:00
Niko Matsakis
857f46eb39 Address review feedback
Co-authored-by: lcnr <rust@lcnr.de>
Co-authored-by: Ralf Jung <post@ralfj.de>
Co-authored-by: waffle <waffle.lapkin@gmail.com>
2025-07-25 22:28:10 +00:00
Niko Matsakis
e497abcfc2 Add stabilization template and revise docs 2025-07-25 22:28:10 +00:00
Folkert de Vries
730d33dd64 loop_match: suggest extracting to a const item
if the expression cannot be evaluated in a straightforward way
2025-07-26 00:10:56 +02:00
Trevor Gross
a076bd8a61 Remove compiler-builtins-no-asm
This feature used to be for when Cranelift didn't support inline
assembly, but its last uses were removed in 52933e0bd2 ("Don't disable
inline asm usage in compiler-builtins when the cranelift backend is
enabled"). and cba05a7a14 ("Support naked functions").

This doesn't remove the feature from the `compiler-builtins` crate, that
will be done separately in the subtree repo.
2025-07-25 17:08:57 -05:00
Trevor Gross
57481e7914 clif: Don't set the compiler-builtins-no-f16-f128 feature
Since rust-lang/rust be35d37d8b ("Use the compiler to determine
whether or not to enable f16 and f128"), `compiler-builtins` relies on
`rustc` to report whether or not `f16` and `f128` are supported, which
is reported by the backend. This means that there should no longer be
any need to unconditionally disable the types for clif in Bootstrap.

Backend config: a955f1cd09/compiler/rustc_codegen_cranelift/src/lib.rs (L224-L233)
2025-07-25 16:54:26 -05:00
Sayantan Chakraborty
f998575273 Merge pull request #1863 from folkertdev/combine-rust-files
`intrinsic-test`: combine rust files for faster compilation
2025-07-25 21:54:14 +00:00
Guillaume Gomez
272513868f Update ui tests with new macro early erroring 2025-07-25 23:46:28 +02:00
Guillaume Gomez
5dddba5084 Add missing NOTE annotations in tests/ui/macros/trace-macro.rs 2025-07-25 23:46:28 +02:00
Guillaume Gomez
96340f6714 Stop compilation if macro expansion failed 2025-07-25 23:46:28 +02:00
Vadim Petrochenkov
e82011255b resolve: Do not create NameResolutions on access unless necessary 2025-07-26 00:25:26 +03:00
Weihang Lo
a1e292a63a Update cargo
ring is brought into Cargo transitively because Cargo now
provides optional (unstable) reqwest HTTP backend.
2025-07-25 17:19:39 -04:00
Vadim Petrochenkov
2c65790160 resolve: Minimize borrow scopes for resolutions 2025-07-26 00:19:12 +03:00
Samuel Tardieu
03978193a5 Get myself back on assignment rotation (#15346)
changelog: none
2025-07-25 20:57:03 +00:00
Samuel Tardieu
03986e640c Get myself back on assignment rotation 2025-07-25 22:51:47 +02:00
beepster4096
ccc2f78c37 add //@ needs-unwind to test 2025-07-25 13:42:45 -07:00
Jonas Platte
25ed28823a Update mir-opt expected output for matches! macro 2025-07-25 22:34:55 +02:00
Jakub Beránek
3dac888c86 Only run bootstrap tests in x test on CI 2025-07-25 22:32:48 +02:00
Jakub Beránek
4ef18ab062 Allow pretty printing paths with -Zself-profile-events=args 2025-07-25 22:24:21 +02:00
Maksim Bondarenkov
e01753d312 change_tracker: fix a typo
there is no `llvm.lld` option
2025-07-25 23:21:24 +03:00
beepster4096
ba55f20f43 span_bug instead of handling currently impossible drop case 2025-07-25 13:19:43 -07:00
beepster4096
c6d740d37e async drop tests for box 2025-07-25 13:19:43 -07:00
beepster4096
dad982633c fix box destructor generation 2025-07-25 13:19:43 -07:00
Waffle Lapkin
25036f52a0 canonicalize build root in tests/run-make/linker-warning 2025-07-25 22:06:01 +02:00
bors
430d6eddfc Auto merge of #144449 - flip1995:clippy-subtree-update, r=Manishearth
Clippy subtree update

r? `@Manishearth`
2025-07-25 19:19:45 +00:00
Alisa Sireneva
c1d06cccae Add a note on foreign exceptions 2025-07-25 22:14:02 +03:00
Esteban Küber
11061831f7 Mention type that could be Clone but isn't in more cases
When encountering a moved value of a type that isn't `Clone` because of unmet obligations, but where all the unmet predicates reference crate-local types, mention them and suggest cloning, as we do in other cases already:

```
error[E0507]: cannot move out of `foo`, a captured variable in an `Fn` closure
  --> f111.rs:14:25
   |
13 | fn do_stuff(foo: Option<Foo>) {
   |             --- captured outer variable
14 |     require_fn_trait(|| async {
   |                      -- ^^^^^ `foo` is moved here
   |                      |
   |                      captured by this `Fn` closure
15 |         if foo.map_or(false, |f| f.foo()) {
   |            ---
   |            |
   |            variable moved due to use in coroutine
   |            move occurs because `foo` has type `Option<Foo>`, which does not implement the `Copy` trait
   |
note: if `Foo` implemented `Clone`, you could clone the value
  --> f111.rs:4:1
   |
4  | struct Foo;
   | ^^^^^^^^^^ consider implementing `Clone` for this type
...
15 |         if foo.map_or(false, |f| f.foo()) {
   |            --- you could clone this value
```
2025-07-25 18:34:10 +00:00
Alisa Sireneva
5b8c61494f Add a list of failure conditions for poisoning 2025-07-25 21:03:09 +03:00
binarycat
b96f238308 rename ext_tool_checks to extra_checks and use mod.rs
this makes the triagebot pings for this module simpler
2025-07-25 11:41:53 -05:00
Tobias Decking
948c7952b8 Unify LLVM ctlz/cttz intrinsic generation 2025-07-25 17:56:10 +02:00
Shoyu Vanilla (Flint)
b9827eb1d8 Merge pull request #20293 from Hmikihiro/migrate_replace_derive_with_manual_impl
Migrate `replace derive with manual impl` and `add_missing_impl_members` to use `SyntaxEditor`
2025-07-25 15:40:26 +00:00
Kivooeo
e9959aa74e comments 2025-07-25 20:38:54 +05:00
Kivooeo
9f38ca97ea move 28 tests 2025-07-25 20:38:54 +05:00
Alisa Sireneva
17519aeaef Allow ffi_unwind_calls for arch::wasm32::throw 2025-07-25 18:28:03 +03:00