Skip to content

Conversation

@fmease
Copy link
Member

@fmease fmease commented Nov 7, 2025

Follow-up to #146664 and #143036.

is_explicit_dyn_type still checked for TokenKind::Star which made no sense now that dyn* is no more.

Removing it doesn't represent a functional change and merely affects diagnostics. That's because the check only dictated whether to interpret dyn as the start of a trait object type in Rust 2015 (where this identifier is only a contextual keyword). However, we would still fail at the * later on as it doesn't start a bound.

While at it, I also took the time to clean up in the vicinity.

@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 Nov 7, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 7, 2025

r? @JonathanBrouwer

rustbot has assigned @JonathanBrouwer.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rust-log-analyzer

This comment has been minimized.

@fmease fmease marked this pull request as draft November 7, 2025 23:59
@rustbot rustbot 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-review Status: Awaiting review from the assignee but also interested parties. labels Nov 7, 2025
@fmease fmease added the rla-silenced Silences rust-log-analyzer postings to the PR it's added on. label Nov 7, 2025
@fmease fmease force-pushed the del-dyn_star-remnant branch from 7a3d133 to 474501b Compare November 8, 2025 05:48
@fmease fmease removed the rla-silenced Silences rust-log-analyzer postings to the PR it's added on. label Nov 8, 2025
@fmease fmease marked this pull request as ready for review November 8, 2025 05:48
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 8, 2025
@JonathanBrouwer
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Nov 8, 2025

📌 Commit 474501b has been approved by JonathanBrouwer

It is now in the queue for this repository.

@bors bors 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 Nov 8, 2025
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 9, 2025
…athanBrouwer

Remove a remnant of `dyn*` from the parser

Follow-up to rust-lang#146664 and rust-lang#143036.

`is_explicit_dyn_type` still checked for `TokenKind::Star` which made no sense now that `dyn*` is no more.

Removing it doesn't represent a functional change and merely affects diagnostics. That's because the check only dictated whether to interpret `dyn` as the start of a trait object type in Rust 2015 (where this identifier is only a *contextual* keyword). However, we would still fail at the `*` later on as it doesn't start a bound.

While at it, I also took the time to clean up in the vicinity.
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.

5 participants