Skip to content

Commit

Permalink
generate scope types with pub(self) visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jswrenn committed Oct 12, 2020
1 parent be8c6ef commit a325078
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions text/0000-safer-transmute.md
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,8 @@ impl Foo for ! {
```
Scope types should (as much as possible) pretty print in compiler error messages as their definition path.

These scope types should generated with `pub(self)` visibility. We are not currently aware of any reason why publicly re-exporting a scope type via a type alias would be a good idea; restricting the visibility of these types will warn users against doing so. If compelling use-cases for re-exported scope types are discovered in the future, a broader visibility could be used instead without breaking backwards compatibility.

### Implementing `Constructible`
The compiler implements `Constructible<Scope>` for `T` if `T` is fully implicitly constructible in the scope uniquely identified by the type `Scope`.

Expand Down

0 comments on commit a325078

Please sign in to comment.