Urgau
e2fbeec150
Add external macro specific diagnostic to check-cfg
2024-11-19 23:09:58 +01:00
Urgau
0ab3ae81a5
Disable most Cargo check-cfg help in external macros
2024-11-19 22:48:36 +01:00
Urgau
44c166e9ac
Add Cargo revision and values to the check-cfg macro test
2024-11-19 22:48:36 +01:00
Matthias Krüger
2467654917
Rollup merge of #133213 - alexcrichton:fix-tier-listing, r=jieyouxu
...
Correct the tier listing of `wasm32-wasip2`
This target is tier 2, not tier 3, and I forgot to update this.
Closes #133206
2024-11-19 22:24:48 +01:00
Matthias Krüger
49aec06ab0
Rollup merge of #133207 - jieyouxu:macos-objcopy, r=Kobzol,bjorn3
...
Default-enable `llvm_tools_enabled` when no `config.toml` is present
Fixes #133195 . cc `@wesleywiser` could you double check if with this patch and no `config.toml` that you can run `./x test tests/ui --stage 1`?
`llvm-objcopy` is usually required by cg_ssa on macOS to workaround bad `strip`s.
cc `@bjorn3` I hope this doesn't break cg_clif...
r? bootstrap
2024-11-19 22:24:47 +01:00
Matthias Krüger
841243f319
Rollup merge of #133201 - nnethercote:rm-TokenKind-InvalidPrefix, r=compiler-errors
...
Remove `TokenKind::InvalidPrefix`
It's not needed. Best reviewed one commit at a time.
r? `@estebank`
2024-11-19 22:24:47 +01:00
Matthias Krüger
022bb9c3bb
Rollup merge of #133188 - maxcabrajac:walk_no_visit, r=petrochenkov
...
Add `visit` methods to ast nodes that already have `walk`s on ast visitors
Some `walk` functions are called directly, because there were no correspondent visit functions.
related to #128974 & #127615
r? `@petrochenkov`
2024-11-19 22:24:46 +01:00
Matthias Krüger
d5dca43df6
Rollup merge of #133183 - n0toose:improve-remove-dir-docs, r=joboet
...
Mention std::fs::remove_dir_all in std::fs::remove_dir
2024-11-19 22:24:45 +01:00
Matthias Krüger
c74e5a89c5
Rollup merge of #133175 - MarcoIeni:dist-i686-msvc-free, r=Kobzol
...
ci: use free runner in dist-i686-msvc
try-job: dist-i686-msvc
2024-11-19 22:24:45 +01:00
Matthias Krüger
6c127f3ffd
Rollup merge of #125405 - m-ou-se:thread-add-spawn-hook, r=WaffleLapkin
...
Add std:🧵 :add_spawn_hook.
Implementation of https://github.com/rust-lang/rfcs/pull/3642
2024-11-19 22:24:44 +01:00
Matthias Krüger
001f98ad80
Rollup merge of #123947 - zopsicle:vec_deque-Iter-as_slices, r=Amanieu
...
Add vec_deque::Iter::as_slices and friends
Add the following methods, that work similarly to VecDeque::as_slices:
- alloc::collections::vec_deque::Iter::as_slices
- alloc::collections::vec_deque::IterMut::into_slices
- alloc::collections::vec_deque::IterMut::as_slices
- alloc::collections::vec_deque::IterMut::as_mut_slices
Obtaining slices from a VecDeque iterator was not previously possible.
2024-11-19 22:24:43 +01:00
Michael Goulet
def7ed08e7
Implement ~const Fn trait goals in the new solver
2024-11-19 21:22:17 +00:00
David Barsky
297db65fe3
Merge pull request #18485 from davidkurilla/feat-migrate-add_braces-to-use-SyntaxFactory
...
feat: convert add_braces to SyntaxFactory SyntaxEditor abstraction
2024-11-19 21:05:17 +00:00
Ralf Jung
df94818366
lints_that_dont_need_to_run: never skip future-compat-reported lints
2024-11-19 22:04:10 +01:00
Samuel Tardieu
425346a1bc
Use a better message for unnecessary_map_or lint
...
Suggested by @smoelius.
2024-11-19 21:44:29 +01:00
David Barsky
70a098e6fc
Merge pull request #18521 from tareknaser/syntax_factory_reorder_impl_items
...
Migrate `reorder_impl_items` Assist to Use `SyntaxFactory`
2024-11-19 20:38:57 +00:00
lcnr
c783d1e387
InterpCx store TypingEnv instead of a ParamEnv
2024-11-19 21:36:23 +01:00
lcnr
bf45e9f7f3
InterpCx store TypingEnv instead of a ParamEnv
2024-11-19 21:36:23 +01:00
lcnr
002efeb72a
additional TypingEnv cleanups
2024-11-19 21:36:23 +01:00
lcnr
d61effe58f
resolve_instance: stop relying on Reveal
2024-11-19 21:36:23 +01:00
lcnr
7a90e84f4d
InterpCx store TypingEnv instead of a ParamEnv
2024-11-19 21:36:23 +01:00
Michael Goulet
5eeaf2ec33
Implement ~const opaques
2024-11-19 20:31:05 +00:00
Michael Goulet
588c4c45d5
Rename implied_const_bounds to explicit_implied_const_bounds
2024-11-19 20:30:58 +00:00
bors
ee612c45f0
Auto merge of #132761 - nnethercote:resolve-tweaks, r=petrochenkov
...
Resolve tweaks
A couple of small perf improvements, and some minor refactorings, all in `rustc_resolve`.
r? `@petrochenkov`
2024-11-19 19:54:35 +00:00
Zachary S
edcc5a9bfe
UniqueRc: Add more trait impls.
...
* Support the same formatting as Rc
* Add explicit !Send and !Sync impls, to mirror Rc
* DispatchFromDyn
* borrowing traits and Unpin
2024-11-19 13:51:52 -06:00
lcnr
b9dea31ea9
TypingMode::from_param_env begone
2024-11-19 19:32:52 +01:00
lcnr
d8e5f7ad8a
remove TypingMode::from_param_env in clippy
2024-11-19 19:31:02 +01:00
lcnr
d667dd5677
remove TypingMode::from_param_env in clippy
2024-11-19 19:31:02 +01:00
Mara Bos
691796be03
Update doc comments for spawn hook.
2024-11-19 18:55:52 +01:00
Mara Bos
b96f023dbd
Address review comments.
...
Co-authored-by: waffle <waffle.lapkin@gmail.com >
2024-11-19 18:55:52 +01:00
Mara Bos
38b9a448c9
Fix tracking issue.
2024-11-19 18:54:21 +01:00
Mara Bos
24fec0d896
Add tracking issue.
2024-11-19 18:54:21 +01:00
Mara Bos
5a80b48fe1
Use Send + Sync for spawn hooks.
2024-11-19 18:54:20 +01:00
Mara Bos
f2bf9e198e
Add thread Builder::no_hooks().
2024-11-19 18:54:20 +01:00
Mara Bos
947354fbec
Update thread spawn hooks.
...
1. Make the effect thread local.
2. Don't return a io::Result from hooks.
2024-11-19 18:54:20 +01:00
Mara Bos
ef9055f3ee
Use add_spawn_hook for libtest's output capturing.
2024-11-19 18:54:20 +01:00
Mara Bos
7ac4c04731
Add std: 🧵 :add_spawn_hook.
2024-11-19 18:54:20 +01:00
Laurențiu Nicola
af318f7320
Merge pull request #18529 from cmrschwarz/allow_leading_whitespace_in_merge_match_arms
...
Improve selection handling for the `merge_match_arms` assist
2024-11-19 17:45:52 +00:00
lcnr
4813fda2e6
rustdoc: yeet TypingEnv::from_param_env
2024-11-19 18:35:41 +01:00
Laurențiu Nicola
00a8fc1c3d
Merge pull request #18459 from Giga-Bowser/match-placeholders
...
feat: Use snippet placeholders for generated match arms
2024-11-19 17:12:16 +00:00
Eric Huss
16550d9e67
Fix missing submodule in ./x vendor
...
The `src/tools/rustc-perf` submodule is needed for vendoring because
it is included in the vendor set.
2024-11-19 09:11:08 -08:00
lcnr
a4acd22dbb
move fn is_item_raw to TypingEnv
2024-11-19 18:06:20 +01:00
lcnr
809b420e16
move fn is_item_raw to TypingEnv
2024-11-19 18:06:20 +01:00
lcnr
f74951fdf1
generic_const_exprs: yeet TypingEnv::from_param_env
2024-11-19 18:06:20 +01:00
lcnr
ffd7a50314
impl trait overcaptures, yeet TypingMode::from_param_env
2024-11-19 18:06:20 +01:00
lcnr
07a5272476
pattern lowering, yeet TypingEnv::from_param_env
2024-11-19 18:06:20 +01:00
lcnr
decf37bd16
liveness checking, yeet TypingEnv::from_param_env
2024-11-19 18:06:20 +01:00
lcnr
1ec964873e
unconditional recursion, yeet TypingEnv::from_param_env
2024-11-19 18:06:20 +01:00
lcnr
948cec0fad
move fn is_item_raw to TypingEnv
2024-11-19 18:06:20 +01:00
gavincrawford
01fd384d58
Correct comments concerning updated dangling pointer lint
2024-11-19 10:05:24 -07:00