rust/compiler
Dylan DPC 879d6f257b
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`
2023-03-19 15:33:58 +05:30
..
rustc
rustc_abi
rustc_apfloat
rustc_arena
rustc_ast Rollup merge of #108958 - clubby789:unbox-the-hir, r=compiler-errors 2023-03-17 08:42:37 +01:00
rustc_ast_lowering Gate fmt args flattening behind -Zflatten-format-args. 2023-03-16 11:21:50 +01:00
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_baked_icu_data
rustc_borrowck Rollup merge of #109215 - est31:sort_by_key, r=Nilstrieb 2023-03-17 08:42:40 +01:00
rustc_builtin_macros Properly allow macro expanded format_args invocations to uses captures 2023-03-14 13:16:52 +00:00
rustc_codegen_cranelift Tweak implementation of overflow checking assertions 2023-03-16 22:55:45 +01:00
rustc_codegen_gcc
rustc_codegen_llvm
rustc_codegen_ssa Rollup merge of #109287 - scottmcm:hash-slice-size-of-val, r=oli-obk 2023-03-18 12:04:24 +01:00
rustc_const_eval Rollup merge of #109234 - tmiasko:overflow-checks, r=cjgillot 2023-03-18 12:04:23 +01:00
rustc_data_structures Fast path that skips over unchanged obligations in process_obligations 2023-03-17 19:56:03 +01:00
rustc_driver
rustc_driver_impl
rustc_error_codes Rollup merge of #107416 - czzrr:issue-80618, r=GuillaumeGomez 2023-03-18 12:04:21 +01:00
rustc_error_messages
rustc_errors
rustc_expand Suggest surrounding the macro with {} to interpret as a statement 2023-03-17 14:36:22 +08:00
rustc_feature Bump version placeholders 2023-03-15 08:55:22 -04:00
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #108958 - clubby789:unbox-the-hir, r=compiler-errors 2023-03-17 08:42:37 +01:00
rustc_hir_analysis Rollup merge of #109238 - spastorino:new-rpitit-12, r=compiler-errors 2023-03-18 12:04:23 +01:00
rustc_hir_pretty Remove box expressions from HIR 2023-03-14 17:18:26 +00:00
rustc_hir_typeck Rollup merge of #109212 - Ezrashaw:no-similar-sugg-for-unstable, r=estebank 2023-03-19 15:33:58 +05:30
rustc_incremental
rustc_index
rustc_infer Rollup merge of #105793 - lukas-code:circular-deps, r=Mark-Simulacrum 2023-03-19 15:33:55 +05:30
rustc_interface Gate fmt args flattening behind -Zflatten-format-args. 2023-03-16 11:21:50 +01:00
rustc_lexer
rustc_lint Rollup merge of #109003 - GuillaumeGomez:useless-anonymous-reexport-lint, r=cjgillot 2023-03-19 15:33:57 +05:30
rustc_lint_defs Auto merge of #109035 - scottmcm:ptr-read-should-know-undef, r=WaffleLapkin,JakobDegen 2023-03-15 11:44:12 +00:00
rustc_llvm
rustc_log
rustc_macros
rustc_metadata Rollup merge of #109198 - compiler-errors:new-rpitit-default-body, r=spastorino 2023-03-17 08:42:40 +01:00
rustc_middle Rollup merge of #109234 - tmiasko:overflow-checks, r=cjgillot 2023-03-18 12:04:23 +01:00
rustc_mir_build address review comments 2023-03-18 00:43:37 -05:00
rustc_mir_dataflow Use index based drop loop for slices and arrays 2023-03-14 21:29:32 +01:00
rustc_mir_transform Auto merge of #108944 - cjgillot:clear-local-info, r=oli-obk 2023-03-16 19:59:56 +00:00
rustc_monomorphize Rollup merge of #109109 - compiler-errors:polymorphize-foreign, r=Nilstrieb 2023-03-15 17:51:31 +05:30
rustc_parse
rustc_parse_format Improve heuristics for format_args literal being suggestable 2023-03-14 13:20:39 +00:00
rustc_passes Rollup merge of #108958 - clubby789:unbox-the-hir, r=compiler-errors 2023-03-17 08:42:37 +01:00
rustc_plugin_impl
rustc_privacy Rename impl_trait_in_trait_parent to impl_trait_in_trait_parent_fn 2023-03-15 12:27:16 -03:00
rustc_query_impl
rustc_query_system
rustc_resolve Rollup merge of #109257 - petrochenkov:bindebug, r=WaffleLapkin 2023-03-18 00:05:55 +01:00
rustc_serialize
rustc_session Gate fmt args flattening behind -Zflatten-format-args. 2023-03-16 11:21:50 +01:00
rustc_smir
rustc_span Don't allow new const panic through format flattening. 2023-03-16 11:21:50 +01:00
rustc_symbol_mangling
rustc_target Fix riscv64 fuchsia LLVM target name 2023-03-15 12:55:37 +09:00
rustc_trait_selection Fast path that skips over unchanged obligations in process_obligations 2023-03-17 19:56:03 +01:00
rustc_traits
rustc_transmute
rustc_ty_utils Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
rustc_type_ir