diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-19 06:03:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-19 06:03:16 +0200 |
| commit | bd0d097a33988580dc1353ce646a8890b2afb346 (patch) | |
| tree | aab5def0e0054b9306c78e84bf6438b97faebf52 /src/test/ui/thinlto | |
| parent | 2171250ca4bfece031a560af75d9121dba2b219d (diff) | |
| parent | 6aa4c992bc8ee003be01bfc59d2d7b54d01bc131 (diff) | |
| download | rust-bd0d097a33988580dc1353ce646a8890b2afb346.tar.gz rust-bd0d097a33988580dc1353ce646a8890b2afb346.zip | |
Rollup merge of #60045 - estebank:suggest-std, r=petrochenkov
Suggest appropriate path when calling associated item on bare types When looking at the documentation for `std::f32` or `std::str`, for example, it is easy to get confused and assume `std::f32` and `f32` are the same thing. Because of this, it is not uncommon to attempt writing `f32::consts::PI` instead of the correct `std::f32::consts::PI`. When encountering the former, which results in an access error due to it being an inexistent path, try to access the same path under `std`. If this succeeds, this information is stored for later tweaking of the final E0599 to provide an appropriate suggestion. Fix #26760, fix #46660.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
