about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-03-19 15:33:58 +0530
committerGitHub <noreply@github.com>2023-03-19 15:33:58 +0530
commit879d6f257b30a8b19fde64d300b6bca99e6b93dd (patch)
tree6b5fca1e89ca2aa6c5d752b5c411ead70171e78f /compiler/rustc_plugin_impl/src
parent654204f455332618f55dd808e9fe4fc4ae1d6a2f (diff)
parent0dc36fcd5b0bdf07fe1c180c050e0337f1cd3efe (diff)
downloadrust-879d6f257b30a8b19fde64d300b6bca99e6b93dd.tar.gz
rust-879d6f257b30a8b19fde64d300b6bca99e6b93dd.zip
Rollup merge of #109212 - Ezrashaw:no-similar-sugg-for-unstable, r=estebank
fix: don't suggest similar method when unstable

Fixes #109177

Don't display typo suggestions for unstable things, unless the feature flag is enabled.

AFAIK, there are two places this occurs:
- `rustc_resolve`: before type checking, effectively just `FnCtxt::Free`.
- `rustc_hir_typck`: during type checking, for `FnCtxt::Assoc(..)`s.

The linked issue is about the latter, obviously the issue is applicable to both.

r? `@estebank`
Diffstat (limited to 'compiler/rustc_plugin_impl/src')
0 files changed, 0 insertions, 0 deletions