Skip to content

view-types: store view types in the AST - #156016

Merged
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
scrabsha:view-types/in-ast
Jul 8, 2026
Merged

view-types: store view types in the AST#156016
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
scrabsha:view-types/in-ast

Conversation

@scrabsha

@scrabshascrabsha commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

View all comments

Tracking issue: #155938.

Instead of discarding view types, we store them in the AST now!

@rustbotrustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 30, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-bors

This comment has been minimized.

@scrabsha
scrabshaforce-pushed the view-types/in-ast branch from 52c4eee to 2bafb0cCompareMay 1, 2026 13:55
@rust-log-analyzer

This comment has been minimized.

@scrabsha
scrabshaforce-pushed the view-types/in-ast branch from 2bafb0c to 7f6749bCompareMay 1, 2026 15:17
@rustbotrustbot added T-clippy Relevant to the Clippy team. T-rustfmt Relevant to the rustfmt team, which will review and decide on the PR/issue. labels May 1, 2026
@scrabsha
scrabshaforce-pushed the view-types/in-ast branch from 7f6749b to 77bdbc2CompareMay 1, 2026 15:21
@rust-log-analyzer

This comment has been minimized.

@scrabsha
scrabshaforce-pushed the view-types/in-ast branch 4 times, most recently from d9ef8d8 to ec789acCompareMay 3, 2026 09:31
Comment threadcompiler/rustc_ast/src/ast.rs Outdated
@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

@rustbotrustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 3, 2026
rust-borsBot pushed a commit that referenced this pull request May 3, 2026
view-types: store borrows of view types in the AST
Comment threadcompiler/rustc_parse/src/parser/ty.rs Outdated
@rust-bors

rust-borsBot commented May 3, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 9d3dea7 (9d3dea74651f758e35177070e510be8f3639a7fd, parent: 6769f690f947f12e36db6b6503bab265b7b2cced)

@rust-timer

This comment has been minimized.

@scrabshascrabsha mentioned this pull request May 3, 2026
13 tasks
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (9d3dea7): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf.

@bors rollup=never
@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.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-0.7%[-1.4%, -0.3%]6
Improvements ✅
(secondary)
-0.2%[-0.2%, -0.1%]2
All ❌✅ (primary)-0.7%[-1.4%, -0.3%]6

Max RSS (memory usage)

Results (primary 0.1%, secondary -2.6%)

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

meanrangecount
Regressions ❌
(primary)
1.9%[1.9%, 1.9%]1
Regressions ❌
(secondary)
1.2%[1.2%, 1.2%]1
Improvements ✅
(primary)
-0.8%[-0.8%, -0.7%]2
Improvements ✅
(secondary)
-4.4%[-7.3%, -1.5%]2
All ❌✅ (primary)0.1%[-0.8%, 1.9%]3

Cycles

Results (secondary 3.4%)

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

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
5.0%[0.5%, 9.9%]3
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
-1.3%[-1.3%, -1.3%]1
All ❌✅ (primary)--0

Binary size

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

Bootstrap: 503.61s -> 496.571s (-1.40%)
Artifact size: 394.46 MiB -> 394.47 MiB (0.00%)

@rustbotrustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 3, 2026
@rust-bors

This comment has been minimized.

@scrabsha
scrabshaforce-pushed the view-types/in-ast branch from ec789ac to 93208f2CompareMay 3, 2026 16:11
@scrabsha

scrabsha commented May 3, 2026

Copy link
Copy Markdown
ContributorAuthor

^

r? nikomatsakis

@oli-obk

Copy link
Copy Markdown
Contributor

bors r plus

@rust-bors

rust-borsBot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

📌 Commit dcdf133 has been approved by oli-obk

It is now in the queue for this repository.

@rust-borsrust-borsBot 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 Jul 6, 2026
@rust-bors

This comment has been minimized.

rust-borsBot pushed a commit that referenced this pull request Jul 7, 2026
@rust-borsrust-borsBot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 7, 2026
@rust-bors

rust-borsBot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

⚠️ A new commit 3ed5f56b7d381af42cd7a460a777cd5ea500af85 was pushed.

This pull request was unapproved.

Auto build was cancelled due to push. Cancelled workflows:

@oli-obk

Copy link
Copy Markdown
Contributor

@bors r+

@rust-bors

rust-borsBot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 3ed5f56 has been approved by oli-obk

It is now in the queue for this repository.

@rust-borsrust-borsBot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 7, 2026
@rust-bors

This comment has been minimized.

rust-borsBot pushed a commit that referenced this pull request Jul 7, 2026
@rust-borsrust-borsBot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 7, 2026
@rust-bors

rust-borsBot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 75770e7 failed: CI. Failed job:

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job aarch64-apple-macos-26 failed! Check out the build log: (web)(plain enhanced)(plain)

Click to see the possible cause of the failure (guessed by this bot)

Important

For more information how to resolve CI failures of this job, visit this link.

@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors retry

@rust-borsrust-borsBot 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 Jul 7, 2026
@scrabsha

Copy link
Copy Markdown
ContributorAuthor

@JonathanBrouwer btw, this PR used to be rollup=never because we were not sure about its perf impact, but now it's reasonable to assume the perf is ok (the code has been reworked quite a lot since). would you be ok with rolluping it?

@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors rollup=iffy

rust-borsBot pushed a commit that referenced this pull request Jul 7, 2026
…uwer
Rollup of 19 pull requests
Successful merges:
- #156016 (view-types: store view types in the AST)
- #157385 (Enable Enzyme on x86_64-apple)
- #158179 (std: unconditionally use `preadv`/`pwritev` on AArch64 macOS)
- #158621 (disallow `extern "custom"` on wasm and spirv targets)
- #158690 (delegation: support mapping of all arguments with `Self` type)
- #158696 (Rename some `body_id` to `body_def_id`)
- #158697 (Fixes for QNX SDP 8)
- #158760 (Clarify that `LocalKey::try_with` may return `AccessError`)
- #157801 (Rewrite safety requirements for `Allocator` impls)
- #158085 (rustdoc: Fix sidebar heading order)
- #158333 (Fix typetree generation for differentiated functions)
- #158646 (powerpc64le_unknown_freebsd.rs: link with -lgcc)
- #158701 ( diagnostics: suggest type annotation for closure params on HRTB FnOnce mismatch)
- #158791 (Avoid unused braces lint for macro generated arguments)
- #158802 (Use `ci-mirrors` in `armhf-gnu` for {busybox, ubuntu rootfs} artifacts)
- #158841 (Avoid final override ICE for RPITIT associated types)
- #158889 (tests: catch up with LLVM returning f128 on the stack)
- #158905 (delegation: add constraints to new generic args)
- #158922 (tests: clean up over-constraint on LLVM feature count)
Failed merges:
- #158617 (allow mGCA const arguments to fall back to anon consts)
@rust-bors
rust-borsBot merged commit 73cd65d into rust-lang:mainJul 8, 2026
13 of 14 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-clippyRelevant to the Clippy team.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-rustfmtRelevant to the rustfmt team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

14 participants

@scrabsha@rust-log-analyzer@JonathanBrouwer@rust-timer@rustbot@BoxyUwU@mejrs@oli-obk@nikomatsakis@nnethercote@fmease@ytmimi@dingxiangfei2009@TaKO8Ki