Commit Graph

303456 Commits

Author SHA1 Message Date
yukang
4dc954f882 remove unnecessary parens in rust-analyzer 2025-07-10 13:50:02 +08:00
Laurențiu Nicola
2452863acf Merge pull request #20221 from lnicola/assist-let-chain
minor: Revert "remove `if-let` chains"
2025-07-10 05:37:26 +00:00
Scott McMurray
58d7c2d5a7 Make UB transmutes really UB in LLVM
Ralf suggested in <https://github.com/rust-lang/rust/pull/143410#discussion_r2184928123> that UB transmutes shouldn't be trapping, which happened for the one path that PR was changing, but there's another path as well, so this PR changes that other path to match.
2025-07-09 22:30:15 -07:00
Laurențiu Nicola
9068133f2e Revert "remove if-let chains"
This reverts commit fcc81a38b3ed55447735f71e8d374fcb36c22f24.
2025-07-10 08:24:53 +03:00
The Miri Cronjob Bot
5e940f5810 fmt 2025-07-10 05:06:47 +00:00
The Miri Cronjob Bot
1f721c651e Merge from rustc 2025-07-10 05:05:40 +00:00
The Miri Cronjob Bot
e726c643e8 Preparing for merge from rustc 2025-07-10 04:58:14 +00:00
Shoyu Vanilla (Flint)
6ae9db7d64 Merge pull request #20212 from ChayimFriedman2/dyn-hint
fix: Fixes for `dyn` inlay hint
2025-07-10 04:57:57 +00:00
Shoyu Vanilla (Flint)
80f50227a6 Merge pull request #20218 from Hmikihiro/migrate_convert_match_to_let_else
Migrate `convert_match_to_let_else` assist to use `SyntaxEditor`
2025-07-10 04:32:40 +00:00
Jubilee Young
04bb68ac86 compiler: recomment needs_fn_once_adapter_shim
This requires digging up ffee9566bb
and reading the comments there to understand that the callee in
resolve_closure previously directly handled a function pointer value.
2025-07-09 20:53:23 -07:00
LevitatingBusinessMan (Rein Fernhout)
e0f76871ed rust: library: Add setsid method to CommandExt trait
Add a setsid method to the CommandExt trait so that callers can create
a process in a new session and process group whilst still using the
POSIX spawn fast path.

Co-Authored-By: Harvey Hunt <harveyhunt@fb.com>
2025-07-10 05:26:58 +02:00
Roger Curley
bc2001f158 Refactor nan tests 2025-07-09 23:24:47 -04:00
Hayashi Mikihiro
b273929156 Migrate convert_match_to_let_else assist to use SyntaxEditor
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-10 11:22:32 +09:00
Chayim Refael Friedman
c2fad05856 Put the expression stuff in the expression store behind an Option<Box>
And leave only the type stuff without it.

This is because most expression stores don't have anything but types (e.g. generics, fields, signatures) so this saves a lot of memory.

This saves 58mb on `analysis-stats .`.
2025-07-10 05:18:43 +03:00
bors
32cd911471 Auto merge of #143703 - dpaoliello:llvmupate, r=dianqk
Update LLVM submodule

Picks up <https://github.com/rust-lang/llvm-project/pull/183>

r? `@nikic`
2025-07-10 01:45:01 +00:00
yukang
0a64bfd685 Remove uncessary parens in closure body with unused lint 2025-07-10 09:25:56 +08:00
yukang
93db9e7ee0 Remove uncessary parens in closure body with unused lint 2025-07-10 09:25:56 +08:00
Trevor Gross
87e981996f mbe: Refactor the diagnostic for unrecognized metavariable expressions
Change to a structural diagnostic, update the valid list, and move the
valid list to a note.
2025-07-09 21:11:09 -04:00
Trevor Gross
e7ef31d651 mbe: Refactor diagnostics for invalid metavar expression syntax
Give a more user-friendly diagnostic about the following:

* Trailing tokens within braces, e.g. `${foo() extra}`
* Missing parentheses, e.g. `${foo}`
* Incorrect number of arguments, with a hint about correct usage.
2025-07-09 21:11:09 -04:00
Predrag Gruevski
27fb02c947 Add rustdoc JSON tests for #[doc(hidden)] handling of items. 2025-07-10 00:19:03 +00:00
bors
607fbd8d3e Auto merge of #143405 - tgross35:update-builtins, r=tgross35
Update the `compiler-builtins` subtree

Update the Josh subtree to https://github.com/rust-lang/compiler-builtins/commit/8aba4c899ee8.

r? `@ghost`
2025-07-09 22:42:11 +00:00
llogiq
49ca220ca0 Fix multiple problems in #15063 (#15070)
Closes rust-lang/rust-clippy#15063

----

changelog: [`op_ref`]: fix wrongly showed macro definition in
suggestions
changelog: [`needless_bool_assign`]: fix missing curlies when on else if
2025-07-09 21:55:36 +00:00
Ed Page
24a4ad5543 feat(lexer): Allow including frontmatter with 'tokenize' 2025-07-09 16:42:27 -05:00
Ed Page
45a1e492b1 feat(lexer): Allow including frontmatter with 'tokenize' 2025-07-09 16:42:27 -05:00
LorrensP-2158466
e56678378b Use reference for MacroRulesScopeRef instead of Interned. 2025-07-09 23:24:51 +02:00
LorrensP-2158466
e9e31b1a93 MacroData in ResolverArenas + split macro_map into extern_macro_map and local_macro_map. 2025-07-09 23:24:36 +02:00
LorrensP-2158466
b286bc3141 fix aux-build failures 2025-07-09 23:18:32 +02:00
antoyo
8a9af5f7ef Merge pull request #733 from FractalFir/volatile_load_tmp
Inserted a local variable in volatile_load, to ensure reads don't move across blocks.
2025-07-09 17:11:30 -04:00
antoyo
35bdf8b4e2 Merge pull request #734 from FractalFir/remove_needless_attr
Skip needlessly setting the default visibility on functions
2025-07-09 17:10:02 -04:00
Folkert de Vries
a90e00172b run rust programs with the runner 2025-07-09 23:08:47 +02:00
Timo
012e5f538b Fix manual_is_variant_and condition generation (#15206)
When comparing `x.map(func) == Some(bool_lit)`, the value of `bool_lit`
was ignored, despite the fact that its value should determine the value
of the proposed expression.

`func` can be either a closure or a path. For the latter, η-expansion
will be used if needed to invert the result of the function call.

changelog: [`manual_is_variant_and`]: fix inverted suggestions that
could lead to code with different semantics

Fixes rust-lang/rust-clippy#15202

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_SUMMARY_START -->

### Summary Notes

-
[Beta-nomination](https://github.com/rust-lang/rust-clippy/pull/15206#issuecomment-3034006613)
by [samueltardieu](https://github.com/samueltardieu)

*Managed by `@rustbot`—see
[help](https://forge.rust-lang.org/triagebot/note.html) for details*

<!-- TRIAGEBOT_SUMMARY_END -->
<!-- TRIAGEBOT_END -->
2025-07-09 21:04:18 +00:00
Tshepang Mbambo
99fc05bb18 do not invent a name
Nowhere else is this called "Dist check"
2025-07-09 23:03:37 +02:00
Tshepang Mbambo
d99af0b77c distcheck had only one possible invocation
That is, calling it an example is misleading
2025-07-09 23:02:16 +02:00
Tshepang Mbambo
42472f2645 add missing word 2025-07-09 22:49:41 +02:00
Josh Triplett
4c947984d6 random: Add comment on RandomSource::fill_bytes about multiple calls
This allows efficient implementations for random sources that generate a
word at a time.
2025-07-09 13:42:18 -07:00
binarycat
7e2527d3ab triagebot.toml: ping lolbinarycat if tidy extra checks were modified 2025-07-09 14:58:44 -05:00
Daniel Paoliello
65dc474d1c Update LLVM submodule 2025-07-09 12:56:06 -07:00
Ed Page
425cd0f571 test: Verify frontmatter unpretty behavior 2025-07-09 14:55:53 -05:00
bors
e43d139a82 Auto merge of #143538 - compiler-errors:instantiate-auto-trait, r=lcnr
Instantiate auto trait/`Copy`/`Clone`/`Sized` before computing constituent types binder

This makes the binder logic w.r.t. coroutines a bit simpler.

r? lcnr
2025-07-09 19:38:39 +00:00
antoyo
86f5318bbe Merge pull request #732 from FractalFir/thread_soundness_fix
Change the implementation of supports_parallel to signal tha cg_gcc is not thread safe.
2025-07-09 15:28:37 -04:00
FractalFir
7e844720bd Inserted a local variable in volatile_load, to ensure reads don't move across blocks. 2025-07-09 20:50:08 +02:00
Chayim Refael Friedman
36f6f1e72d Make AsmExpr have AstId
We need it because `global_asm!()` is an item. It's unfortunate that such thing can slip in and I see no way to automatically catch that, but thankfully analysis-stats on self has caught that.
2025-07-09 21:43:20 +03:00
Chayim Refael Friedman
56f1403319 Merge pull request #20214 from rust-lang/update-msrv
Update MSRV to 1.88.0
2025-07-09 18:41:33 +00:00
Laurențiu Nicola
ee407b5ced Merge pull request #20211 from Hmikihiro/migrate-convert_named_struct
Migrate `convert_named_struct_to_tuple_struct` assist to use 'SyntaxEditor'
2025-07-09 18:35:28 +00:00
FractalFir
6388524398 Skip needlessly setting the default visibility on functions 2025-07-09 20:32:05 +02:00
Chayim Refael Friedman
c246e06240 Update MSRV to 1.88.0 2025-07-09 21:30:22 +03:00
FractalFir
29614643e4 Change the implementation of supports_parallel to signal tha cg_gcc is not thread safe. 2025-07-09 20:29:02 +02:00
Ralf Jung
925789456a miri: fix out-of-bounds error for ptrs with negative offsets 2025-07-09 20:20:07 +02:00
Ayush Singh
d8273d3997 std: sys: net: uefi: tcp4: Add timeout support
- Implement timeout support for read, write and connect.
- A software implementation using Instant.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-07-09 22:38:12 +05:30
Michael Goulet
728017ea8f Make AsyncDrop check that it's being implemented on a local ADT 2025-07-09 17:07:04 +00:00