about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-04-19 06:03:16 +0200
committerGitHub <noreply@github.com>2019-04-19 06:03:16 +0200
commitbd0d097a33988580dc1353ce646a8890b2afb346 (patch)
treeaab5def0e0054b9306c78e84bf6438b97faebf52 /src/test/ui/thinlto
parent2171250ca4bfece031a560af75d9121dba2b219d (diff)
parent6aa4c992bc8ee003be01bfc59d2d7b54d01bc131 (diff)
downloadrust-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