Skip to content

rustc_builtin_macros cleanup, part 7 - #163389

Merged
rust-bors[bot] merged 11 commits into
rust-lang:mainfrom
cyrgani:builtin-macros-7
Sep 28, 2026
Merged

rust-bors[bot] merged 11 commits into
rust-lang:mainfrom
cyrgani:builtin-macros-7

Conversation

@cyrgani

@cyrgani cyrgani commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

This PR mainly focuses on the various helpers on ExtCtxt. Several of these are unused and were removed, others were added or used in more places. It also removes a few of the currently too many ways to construct a Path, in preparation of a single unified way in a future PR.

Previous PR in the series: #163211
r? @nnethercote

There are already way too many helpers to construct paths in this crate and this one is not very useful.
In all cases, the passed span was already the span of the ident.
@rustbot

rustbot commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_builtin_macros/src/autodiff.rs

cc @ZuseZ4

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 26, 2026
@rust-log-analyzer

This comment has been minimized.

Most of these cases were found by searching for uses of `DUMMY_NODE_ID`.
Also inline `lambda0` and `lambda1` since they're only used once and are trivial wrappers around `lambda`.
It is much more similar to the methods there than to the methods in `base.rs`.
`new_inputs` and `idents` are never read anywhere, several other `Vec`s are supposed to be `ThinVec`s instead.
@nnethercote

Copy link
Copy Markdown
Contributor

@bors r+

@rust-bors

rust-bors Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 529a0ae has been approved by nnethercote

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 27, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 28, 2026
Rollup of 11 pull requests

Successful merges:

 - #163085 (Suggest similarly named modules in import paths)
 - #163098 ([debugger visualizers] Add workaround to read `Rc` strong/weak counts)
 - #163120 (ci: make musl.sh look for patches next to the script)
 - #163301 (Fix unused_must_use for scenario which may need to keep value)
 - #163307 (Less `SpanData` in diagnostics)
 - #163389 (`rustc_builtin_macros` cleanup, part 7)
 - #152972 (implement PartialEq<VecDeque<U>> for Vec<T>, &[T], &mut [T], [T; N], &[T; N] and &mut [T; N])
 - #162536 (Implement Default for NumBuffer)
 - #163141 (Document safety requirements for intrinsic fallbacks)
 - #163384 (Various clean-ups around `LayoutCalculator`)
 - #163413 (mailmap: add Matilde Morrone)
@rust-bors
rust-bors Bot merged commit 2382266 into rust-lang:main Sep 28, 2026
13 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Sep 28, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 28, 2026
Rollup merge of #163389 - cyrgani:builtin-macros-7, r=nnethercote

`rustc_builtin_macros` cleanup, part 7

This PR mainly focuses on the various helpers on `ExtCtxt`. Several of these are unused and were removed, others were added or used in more places. It also removes a few of the currently too many ways to construct a `Path`, in preparation of a single unified way in a future PR.

Previous PR in the series: #163211
r? @nnethercote
@cyrgani
cyrgani deleted the builtin-macros-7 branch September 28, 2026 07:35
github-actions Bot pushed a commit to rust-lang/rust-analyzer that referenced this pull request Oct 1, 2026
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#163085 (Suggest similarly named modules in import paths)
 - rust-lang/rust#163098 ([debugger visualizers] Add workaround to read `Rc` strong/weak counts)
 - rust-lang/rust#163120 (ci: make musl.sh look for patches next to the script)
 - rust-lang/rust#163301 (Fix unused_must_use for scenario which may need to keep value)
 - rust-lang/rust#163307 (Less `SpanData` in diagnostics)
 - rust-lang/rust#163389 (`rustc_builtin_macros` cleanup, part 7)
 - rust-lang/rust#152972 (implement PartialEq<VecDeque<U>> for Vec<T>, &[T], &mut [T], [T; N], &[T; N] and &mut [T; N])
 - rust-lang/rust#162536 (Implement Default for NumBuffer)
 - rust-lang/rust#163141 (Document safety requirements for intrinsic fallbacks)
 - rust-lang/rust#163384 (Various clean-ups around `LayoutCalculator`)
 - rust-lang/rust#163413 (mailmap: add Matilde Morrone)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants