Commit Graph

303456 Commits

Author SHA1 Message Date
Kornel
081b565478 Allow cargo fix to partially apply mismatched_lifetime_syntaxes 2025-07-28 20:03:05 +01:00
Noratrieb
327ee15959 Ensure external paths passed via flags end up in rustdoc depinfo
rustdoc has many flags to pass external HTML/Markdown/CSS files that end
up in the build. These need to be recorded in depinfo so that Cargo will
rebuild the crate if they change.
2025-07-28 20:53:01 +02:00
binarycat
4096582662 bootstrap: enable tidy auto extra checks on tools profile 2025-07-28 13:12:51 -05:00
binarycat
5185a665a9 tidy: increase performance of auto extra checks feature
Co-authored-by: Jakub Beránek <berykubik@gmail.com>
2025-07-28 13:03:37 -05:00
Laurențiu Nicola
36df2c98c1 Merge pull request #20321 from rust-lang/rustc-pull
Rustc pull update
2025-07-28 17:42:46 +00:00
Laurențiu Nicola
2e3688e5b2 Merge pull request #20330 from Kobzol/triagebot-reopen
Configure triagebot to reopen bot PRs
2025-07-28 17:37:03 +00:00
Laurențiu Nicola
cde861ef36 Format and bump rustc crates 2025-07-28 20:31:22 +03:00
Jakub Beránek
86bef358fa Configure triagebot to reopen bot PRs 2025-07-28 19:24:45 +02:00
dswij
7b3bd5bc8c Fix typo in internal error message (#15363)
changelog: none

@rustbot label +P-low +A-infra
2025-07-28 17:12:59 +00:00
bit-aloo
c071101da7 make sure to populate DownloadState dependencies before its initialization in config parsing 2025-07-28 22:23:56 +05:30
apiraino
c5b4606d2a Enable t-compiler backport nomination 2025-07-28 18:52:57 +02:00
bors
e3514bde96 Auto merge of #144377 - camsteffen:simplify-impl-of-method, r=fee1-dead
Rename impl_of_method and trait_of_item

This PR used to tweak the implementation of impl_of_method, but that introduced a perf regression.

Rename impl_of_method and trait_of_item to impl_of_assoc and trait_of_assoc respectively. This reflects how the two functions are closely related. And it reflects the behavior more accurately as the functions check whether the input is an associated item.
2025-07-28 16:38:15 +00:00
Michael Goulet
2db97b2f7d Account for .yield in illegal postfix operator message 2025-07-28 16:09:59 +00:00
joboet
73751a0491 thread name in stack overflow message 2025-07-28 18:09:35 +02:00
Samuel Tardieu
431f95ec85 Fix typo in internal error message 2025-07-28 17:32:40 +02:00
Samuel Tardieu
4f1044a5a6 Do not specialize for if_chain any longer
Now that `if let` chains have been introduced, the `if_chain` external
crate is no longer necessary. Dropping special support for it also
alleviates the need to keep the crate as a dependency in tests.
2025-07-28 17:26:38 +02:00
Cameron Steffen
cdcfdd1a1b Tweak docs 2025-07-28 09:54:55 -05:00
Cameron Steffen
86ff11e729 Rename impl_of_method -> impl_of_assoc 2025-07-28 09:54:53 -05:00
Cameron Steffen
b43164cef6 Rename impl_of_method -> impl_of_assoc 2025-07-28 09:54:53 -05:00
Cameron Steffen
b0740198ae Rename trait_of_item -> trait_of_assoc 2025-07-28 09:53:50 -05:00
Cameron Steffen
172af038a7 Rename trait_of_item -> trait_of_assoc 2025-07-28 09:53:50 -05:00
Cameron Steffen
0d7abc8df0 Introduce assoc_parent 2025-07-28 09:53:50 -05:00
Cameron Steffen
96aca2b442 Remove TraitAlias from trait_of_item
This is dead code.
2025-07-28 09:53:50 -05:00
Alex Macleod
d73a6b797f Do not treat NixOS as a Pascal-cased identifier (#15361)
changelog: [`doc_markdown`]: do not treat NixOS as a Pascal-cased
identifier

Fixes rust-lang/rust-clippy#15360
2025-07-28 14:53:08 +00:00
Vadim Petrochenkov
c56f49dc34 expand: Micro-optimize prelude injection
Use `splice` to avoid shifting the other items twice.
Put `extern crate std;` first so it's already resolved when we resolve `::std::prelude::rust_20XX`.
2025-07-28 17:35:09 +03:00
Lukas Wirth
892b4554a8 Merge pull request #20313 from Veykril/push-qmorsnlvwlrr
fix: Fix runnables extra env not substituting env vars
2025-07-28 14:29:27 +00:00
Lukas Wirth
a7c07f66be Merge pull request #20327 from Wilfred/saved_file_placeholder
Don't show '$saved_file' literally in IDE status updates
2025-07-28 14:29:05 +00:00
Ralf Jung
86e9370061 Merge pull request #4504 from RalfJung/link-section-arrays
lookup_link_section: support arrays of function pointers
2025-07-28 14:21:35 +00:00
Samuel Tardieu
a55517ff4b Fix cast-lossless should not suggest when casting type is from macro input (#15358)
Closes rust-lang/rust-clippy#15348

The span of the `as` expr is also incorrect, but I believe it is not a
bug from Clippy.

changelog: [`cast-lossless`] fix wrong suggestions when casting type is
from macro input
2025-07-28 14:11:10 +00:00
bit-aloo
db42d5b36c remove config wrappers of download_toolchain and maybe_download_fmt and during config parsing directly invoke cdownload methods 2025-07-28 19:23:04 +05:30
Ralf Jung
d409694c74 lookup_link_section: support arrays of function pointers 2025-07-28 15:51:41 +02:00
yanglsh
938e79fdac fix: cast-lossless should not suggest when casting type is from macro input 2025-07-28 21:45:40 +08:00
Shoyu Vanilla (Flint)
d026135732 Merge pull request #20303 from Hmikihiro/migrate_path_transform
Migrate path transform
2025-07-28 13:33:08 +00:00
Samuel Tardieu
18a13b15fe Do not treat NixOS as a Pascal-cased identifier 2025-07-28 15:25:46 +02:00
Shoyu Vanilla
d87b4f2c77 fix: Reject upvar scrutinees for loop_match 2025-07-28 22:24:58 +09:00
bit-aloo
f63f212a04 use dry_run and verbose directly from exec_ctx 2025-07-28 18:53:24 +05:30
usamoi
71920e265c fix Atomic*::as_ptr wording 2025-07-28 20:41:24 +08:00
Kornel
276c4238a7 Support multiple crate versions in --extern-html-root-url 2025-07-28 13:34:03 +01:00
Kornel
0813cc9dcf Test renamed crates in rustdoc 2025-07-28 13:34:03 +01:00
Kornel
8a0f976047 Save names of used extern crates
Tracks association between `self.sess.opts.externs` (aliases in `--extern alias=rlib`) and resolved `CrateNum`

Intended to allow Rustdoc match the aliases in `--extern-html-root-url`

Force-injected extern crates aren't included, since they're meant for the linker only
2025-07-28 13:34:03 +01:00
Kornel
671e083391 Clarify update_extern_crate 2025-07-28 13:34:03 +01:00
Kornel
e008fe0c18 Avoid redundant lookup in CrateLoader::existing_match 2025-07-28 13:34:03 +01:00
dswij
f4f579f4ac Fix match_single_binding wrongly handles scope (#15060)
Closes rust-lang/rust-clippy#15018
Closes rust-lang/rust-clippy#15269

Continuation of rust-lang/rust-clippy#15017

changelog: [`match_single_binding`] fix wrong handling of scope
2025-07-28 12:10:42 +00:00
Caiweiran
6c7dc05f7d Fix tests/codegen-llvm/simd/extract-insert-dyn.rs test failure on riscv64 2025-07-28 11:58:38 +00:00
bors
9ba00e0f9e Auto merge of #144543 - scottmcm:more-sroa, r=cjgillot
Allow more MIR SROA

This removes some guards on SROA that are no longer needed:
- With https://github.com/rust-lang/compiler-team/issues/838 it no longer needs to check for SIMD
- With https://github.com/rust-lang/compiler-team/issues/807 it no longer needs to check for niches
  - This means that `Wrapper(char)` and `Pin<&mut T>` can get SRoA'd now, where previously they weren't because the check was banning SRaA for anything with a niche -- not just things with `#[rustc_layout_scalar_valid_range_*]`.
  - Technically rust-lang/rust#133652 isn't complete yet, but `NonZero` and `NonNull` have already moved over, so this is fine.  At worst this will mean that LLVM gets less `!range` metadata on something that wasn't already fixed by rust-lang/rust#133651 or rust-lang/rust#135236, but that's still sound, and unblocking general SRoA is worth that tradeoff.
2025-07-28 11:53:15 +00:00
Folkert de Vries
8b90847416 update fortanix run-make test
Make it more idiomatic with the new run-make infra
2025-07-28 13:39:55 +02:00
Folkert de Vries
91bccd6ba8 use minicore for fortanix assembly tests 2025-07-28 13:34:25 +02:00
Wilfred Hughes
d51db69e09 Don't show '$saved_file' literally in IDE status updates
We've had a few users get confused when VS Code shows `my_custom_check
--args $saved_file`, as it looks like substitution didn't occur.

Instead, show `my_custom_check --args ...` in the display output. This
is also shorter, and the VS Code status bar generally works best with
short text.
2025-07-28 11:33:46 +01:00
Oli Scherer
45b0c8d03e Add regression test 2025-07-28 10:29:02 +00:00
Yosh
68f08c5dd9 Add core::mem::DropGuard
Fix CI for drop_guard

fix CI

fix all tidy lints

fix tidy link

add first batch of feedback from review

Add second batch of feedback from review

add third batch of feedback from review

fix failing test

Update library/core/src/mem/drop_guard.rs

Co-authored-by: Ruby Lazuli <general@patchmixolydic.com>

fix doctests

Implement changes from T-Libs-API review

And start tracking based on the tracking issue.

fix tidy lint
2025-07-28 12:12:40 +02:00