about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-07-10Rollup merge of #143270 - TimNN:fix-enum-match, r=nikicTrevor Gross-1/+1
tests/codegen/enum/enum-match.rs: accept negative range attribute The test current fails when `rustc` is built with HEAD LLVM: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/38097/steps/canvas?sid=0197c492-5661-4c42-8ae7-3d789e85c6ca I suspect the change was caused by https://github.com/llvm/llvm-project/commit/545cdca4883552b147a0f1adfac713f76fc22305 ``@rustbot`` label llvm-main
2025-07-10Rollup merge of #143265 - scottmcm:mention-as-chunks, r=ibraheemdevTrevor Gross-0/+32
Mention as_chunks in the docs for chunks and `as_rchunks_mut` from `rchunks_exact_mut`, and such. As suggested in https://github.com/rust-lang/rust/issues/76354#issuecomment-3015376438 (but does not close that issue).
2025-07-10Rollup merge of #143011 - LorrensP-2158466:warn-ambiguity-into-error, ↵Trevor Gross-116/+510
r=petrochenkov Make lint `ambiguous_glob_imports` deny-by-default and report-in-deps This pr aims to finish the second part of rust-lang/rust#114095. It converts the `ambiguous_glob_imports` lint from a warning to an error. Currently, only the lint definition and the related tests are changed, a crater run should provide us with information on whether we should go for this.
2025-07-10Rollup merge of #142950 - tgross35:metavariable-expr-rework, r=petrochenkovTrevor Gross-134/+259
mbe: Rework diagnostics for metavariable expressions Make the diagnostics for metavariable expressions more user-friendly. This mostly addresses syntactic errors; I will be following up with improvements to `concat(..)`.
2025-07-10Rollup merge of #141996 - Daniel-Aaron-Bloom:dollar_crate, r=petrochenkovTrevor Gross-49/+859
Fix `proc_macro::Ident`'s handling of `$crate` This PR is addresses a few minor bugs, all relating to `proc_macro::Ident`'s support for `$crate`. `Ident` currently supports `$crate` (as can be seen in the `mixed-site-span` test), but: * `proc_macro::Symbol::can_be_raw` is out of sync with `rustc_span::Symbol::can_be_raw` * former doesn't cover `$crate` while the latter does cover `kw::DollarCrate` * `Ident::new` rejects `$crate` * This conflicts with the [reference definition](https://doc.rust-lang.org/nightly/reference/macros-by-example.html#r-macro.decl.meta.specifier) of `ident` which includes `$crate`. * This also conflicts with the documentation on [`Display for Ident`](https://doc.rust-lang.org/proc_macro/struct.Ident.html#impl-Display-for-Ident) which says the output "should be losslessly convertible back into the same identifier". This PR fixes the above issues and extends the `mixed-site-span` test to exercise these fixed code paths, as well as validating the different possible spans resolve `$crate` as expected (for both the new and old `$crate` construction code paths).
2025-07-10Auto merge of #143696 - oli-obk:constable-type-id2, r=RalfJungbors-151/+432
Add opaque TypeId handles for CTFE Reopen of https://github.com/rust-lang/rust/pull/142789#issuecomment-3053155043 after some bors insta-merge chaos r? `@RalfJung`
2025-07-10Merge pull request #4458 from rust-lang/rustup-2025-07-10Ralf Jung-2969/+8452
Automatic Rustup
2025-07-10silence clippyRalf Jung-0/+1
2025-07-10Merge pull request #2499 from rust-lang/tshepang-patch-2nora-1/+3
distcheck has only one possible invocation
2025-07-10Merge pull request #20210 from ChayimFriedman2/naked-asm-safeShoyu Vanilla (Flint)-84/+303
fix: Inline asm fixes
2025-07-10Merge pull request #2500 from rust-lang/tshepang-patch-3nora-1/+1
do not invent a name
2025-07-10Merge pull request #2498 from rust-lang/tshepang-patch-1nora-1/+1
add missing word
2025-07-10Fix `--skip-std-check-if-no-download-rustc`Jakub Beránek-7/+31
Since https://github.com/rust-lang/rust/pull/143048, we now explicitly set the build compiler for `check::Std`, which caused it to be built before we checked `--skip-std-check-if-no-download-rustc`. So I moved the check earlier to `make_run`, which resolves it. I also added a regression test for this. Sadly we can't really test for the positive case easily (when download-ci-rustc is enabled), but we can test the negative cases, where it is disabled.
2025-07-10Use `is_windows_msvc` instead of `is_msvc` in run-make testsJieyou Xu-53/+57
2025-07-10Only provide `is_windows_msvc` to gate on windows-msvcJieyou Xu-34/+29
And not both `is_windows_msvc` and `is_msvc`.
2025-07-10remove unnecessary parens in rust-analyzeryukang-1/+1
2025-07-10Merge pull request #20221 from lnicola/assist-let-chainLaurențiu Nicola-7/+6
minor: Revert "remove `if-let` chains"
2025-07-09Make UB transmutes really UB in LLVMScott McMurray-16/+18
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-10Revert "remove `if-let` chains"Laurențiu Nicola-7/+6
This reverts commit fcc81a38b3ed55447735f71e8d374fcb36c22f24.
2025-07-10fmtThe Miri Cronjob Bot-1/+3
2025-07-10Merge from rustcThe Miri Cronjob Bot-2968/+8448
2025-07-10Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-07-10Merge pull request #20212 from ChayimFriedman2/dyn-hintShoyu Vanilla (Flint)-5/+31
fix: Fixes for `dyn` inlay hint
2025-07-10Merge pull request #20218 from Hmikihiro/migrate_convert_match_to_let_elseShoyu Vanilla (Flint)-13/+15
Migrate `convert_match_to_let_else` assist to use `SyntaxEditor`
2025-07-09compiler: recomment `needs_fn_once_adapter_shim`Jubilee Young-8/+6
This requires digging up ffee9566bbd7728e6411e6094105d6905373255d and reading the comments there to understand that the callee in resolve_closure previously directly handled a function pointer value.
2025-07-10rust: library: Add setsid method to CommandExt traitLevitatingBusinessMan (Rein Fernhout)-0/+89
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-09Refactor nan testsRoger Curley-56/+23
2025-07-10Migrate `convert_match_to_let_else` assist to use `SyntaxEditor`Hayashi Mikihiro-13/+15
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-10Put the expression stuff in the expression store behind an `Option<Box>`Chayim Refael Friedman-271/+419
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-10Auto merge of #143703 - dpaoliello:llvmupate, r=dianqkbors-0/+0
Update LLVM submodule Picks up <https://github.com/rust-lang/llvm-project/pull/183> r? `@nikic`
2025-07-09Add a mailmap entry for gnzlbgTrevor Gross-0/+1
The submodule->subtree changes add a lot of commits with the GitHub email.
2025-07-10Remove uncessary parens in closure body with unused lintyukang-3/+3
2025-07-10Remove uncessary parens in closure body with unused lintyukang-27/+160
2025-07-09mbe: Refactor the diagnostic for unrecognized metavariable expressionsTrevor Gross-12/+25
Change to a structural diagnostic, update the valid list, and move the valid list to a note.
2025-07-09mbe: Refactor diagnostics for invalid metavar expression syntaxTrevor Gross-122/+234
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-10Add rustdoc JSON tests for `#[doc(hidden)]` handling of items.Predrag Gruevski-0/+36
2025-07-09Auto merge of #143405 - tgross35:update-builtins, r=tgross35bors-393/+566
Update the `compiler-builtins` subtree Update the Josh subtree to https://github.com/rust-lang/compiler-builtins/commit/8aba4c899ee8. r? `@ghost`
2025-07-09Fix multiple problems in #15063 (#15070)llogiq-18/+144
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-09feat(lexer): Allow including frontmatter with 'tokenize'Ed Page-20/+17
2025-07-09feat(lexer): Allow including frontmatter with 'tokenize'Ed Page-38/+47
2025-07-09Use reference for MacroRulesScopeRef instead of Interned.LorrensP-2158466-3/+2
2025-07-09MacroData in ResolverArenas + split macro_map into extern_macro_map and ↵LorrensP-2158466-29/+50
local_macro_map.
2025-07-09fix aux-build failuresLorrensP-2158466-30/+50
2025-07-09Merge pull request #733 from FractalFir/volatile_load_tmpantoyo-1/+5
Inserted a local variable in volatile_load, to ensure reads don't move across blocks.
2025-07-09Merge pull request #734 from FractalFir/remove_needless_attrantoyo-1/+1
Skip needlessly setting the default visibility on functions
2025-07-09run rust programs with the runnerFolkert de Vries-95/+90
2025-07-09Fix `manual_is_variant_and` condition generation (#15206)Timo-36/+454
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-09do not invent a nameTshepang Mbambo-1/+1
Nowhere else is this called "Dist check"
2025-07-09distcheck had only one possible invocationTshepang Mbambo-1/+3
That is, calling it an example is misleading
2025-07-09add missing wordTshepang Mbambo-1/+1