Skip to content

rustc_builtin_macros cleanup, part 5 - #163080

Merged
rust-bors[bot] merged 9 commits into
rust-lang:mainfrom
cyrgani:builtin-macros-5
Sep 22, 2026
Merged

rust-bors[bot] merged 9 commits into
rust-lang:mainfrom
cyrgani:builtin-macros-5

Conversation

@cyrgani

@cyrgani cyrgani commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

This PR among other things removes the "mini" version of Path, the nonselflike_args and most of the usages of type_ident. It also comes with some perf gains.
Followup to #162925.

r? @nnethercote

@rustbot

rustbot commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Changes to the code generated for builtin derived traits.

cc @nnethercote

@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 20, 2026
@rust-log-analyzer

This comment has been minimized.

@clarfonthey

Copy link
Copy Markdown
Contributor

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 20, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 20, 2026
`rustc_builtin_macros` cleanup, part 5
@rust-bors

rust-bors Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 7e9ca0a (7e9ca0a359bea11fd329d868a5e49ec7a11f447b)
Base parent: bba5310 (bba531001d4de6d7f49693e0836a2668ca063282)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (7e9ca0a): comparison URL.

Overall result: ❌✅ regressions and improvements - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.2% [0.1%, 0.3%] 3
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.8% [-0.8%, -0.8%] 1
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary 2.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.1% [2.1%, 2.1%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.1% [2.1%, 2.1%] 1

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 496.585s -> 495.879s (-0.14%)
Artifact size: 408.87 MiB -> 406.94 MiB (-0.47%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 21, 2026
@rust-bors

This comment has been minimized.

@nnethercote nnethercote left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good, just the one concern about an error message.

View changes since this review

Comment thread tests/ui/union/union-derive-clone.stderr
.additional_bounds
.iter()
.map(|p| cx.trait_bound(p.to_path(cx, span), self.is_const))
.map(|p| cx.trait_bound(ast::Path { span, ..p.clone() }, self.is_const))

@cyrgani cyrgani Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diagnostic previously changed because I didn't notice that this span is not the same as self.span, and p was constructed with self.span.

View changes since the review

@nnethercote

Copy link
Copy Markdown
Contributor

@bors r+

Do you have the removal of Ty on your todo list? I've always found it a strange type.

@rust-bors

rust-bors Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

📌 Commit c2328bf 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 21, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 22, 2026
Rollup of 4 pull requests

Successful merges:

 - #163049 (Tweak dyn compatibility error when pointing at receiver)
 - #163051 (Make CovariantUnsafeCell actually covariant)
 - #163080 (`rustc_builtin_macros` cleanup, part 5)
 - #163100 (normalize normalizes, avoid next-solver hack)
@rust-bors
rust-bors Bot merged commit c85cbf5 into rust-lang:main Sep 22, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 22, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 22, 2026
Rollup merge of #163080 - cyrgani:builtin-macros-5, r=nnethercote

`rustc_builtin_macros` cleanup, part 5

This PR among other things removes the "mini" version of `Path`, the `nonselflike_args` and most of the usages of `type_ident`. It also comes with some perf gains.
Followup to #162925.

r? @nnethercote
@cyrgani
cyrgani deleted the builtin-macros-5 branch September 22, 2026 07:55
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.

6 participants