diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-02-28 03:49:40 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-28 03:49:40 +0000 |
commit | cbec9958220a7ce5d51289e2fc59c2eb0754ac87 (patch) | |
tree | 81a4a09539f49b5993a2315625b704c0a51943f3 /crates/syntax/test_data/parser/fragments/pattern/ok | |
parent | f682627da4be4777fa0c1527398ef4136cd929b1 (diff) | |
parent | 6990b89b2650d8263dad348173f4f729d6753360 (diff) |
Merge #7801
7801: Restrict visibilities to the containing DefMap r=jonas-schievink a=jonas-schievink
Visibilities must always point into the DefMap where they are used, but in a block expression `self` resolves to the *containing* non-block module, which is in a different DefMap. Restrict visibilities accordingly, turning them into basically `pub(block)`, which Rust has no syntax for.
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/syntax/test_data/parser/fragments/pattern/ok')
0 files changed, 0 insertions, 0 deletions