rustbot · GitHub

@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

Mar 13, 2025

compiler-errors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 13, 2025
type privacy: Check constructor types in tuple struct patterns
This fixes a hole in type privacy checker.
In `TupleStruct(something)` expression the `TupleStruct` part has its type recorded and we are checking it, but in patterns only type of the whole pattern is kept, so we were missing the constructor's type in the privacy check.

Closed

@petrochenkov

@petrochenkov

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 17, 2025
type privacy: Check constructor types in tuple struct patterns
This fixes a hole in type privacy checker.
In `TupleStruct(something)` expression the `TupleStruct` part has its type recorded and we are checking it, but in patterns only type of the whole pattern is kept, so we were missing the constructor's type in the privacy check.

@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

Mar 18, 2025

Merged

@petrochenkov

Read the original on github.com ↗