diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2018-06-30 22:08:27 -0700 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2018-06-30 22:48:05 -0700 |
| commit | c2d44b2286ecf84103e2c66237f578212cd9d8fe (patch) | |
| tree | 33b09018beaa22f2cfcb029bb1144d99db704d2d /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 8d1cbb018e7643e9e8d1d25b8b7de8a2b0671f2d (diff) | |
| download | rust-c2d44b2286ecf84103e2c66237f578212cd9d8fe.tar.gz rust-c2d44b2286ecf84103e2c66237f578212cd9d8fe.zip | |
in which the private/restricted-in-public error messaging gets specific
April 2016's Issue #33174 called out the E0446 diagnostics as confusing. While adding the name of the restricted type to the message (548e681f) clarified matters somewhat, Esteban Küber pointed out that we could stand to place a secondary span on the restricted type. Here, we differentiate between crate-visible, truly private, and otherwise restricted types, and place a secondary span specifically on the visibility modifier of the restricted type's declaration (which we can do now that HIR visibilities have spans!). At long last, this resolves #33174.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
