rust/compiler
bors 37a42258ff Auto merge of #97778 - compiler-errors:misc-diagnostics-tidy, r=cjgillot
Tidy up miscellaneous bounds suggestions

Just some small fixes to suggestions

- Generalizes `Ty::is_suggestable` into a `TypeVisitor`, so that it can be called on things other than `Ty`
- Makes `impl Trait` in arg position no longer suggestible (generalizing the fix in #97640)
- Fixes `impl Trait` not being replaced with fresh type param when it's deeply nested in function signature (fixes #97760)
- Fixes some poor handling of `where` clauses with no predicates (also #97760)
- Uses `InferCtxt::resolve_numeric_literals_with_default` so we suggest `i32` instead of `{integer}` (fixes #97677)

Sorry there aren't many tests the fixes. Most of them would just be duplicates of other tests with empty `where` clauses or `impl Trait` in arg position instead of generic params. Let me know if you'd want more test coverage.
2022-06-12 00:47:54 +00:00
..
rustc Auto merge of #96737 - ChrisDenton:win-manifest, r=wesleywiser 2022-06-02 07:58:29 +00:00
rustc_apfloat Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_arena mark FIXMES for all the places found that are probably offset_from 2022-03-29 20:18:28 -04:00
rustc_ast Revert b983e42936. 2022-06-10 08:35:03 +10:00
rustc_ast_lowering Address comments 2022-06-11 16:38:48 -07:00
rustc_ast_passes Auto merge of #97512 - scottmcm:add-coldcc, r=nagisa,lcnr 2022-06-07 08:12:45 +00:00
rustc_ast_pretty Revert #96682. 2022-06-02 11:22:16 +10:00
rustc_attr RFC3239: Implement compact cfg(target(..)) 2022-05-24 13:51:36 +02:00
rustc_borrowck bound_vars -> infer: don't return lt map 2022-06-10 10:09:50 +02:00
rustc_builtin_macros Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_codegen_cranelift Auto merge of #97825 - Dylan-DPC:rollup-ya51k1k, r=Dylan-DPC 2022-06-07 11:08:58 +00:00
rustc_codegen_gcc Remove unused macro rule 2022-06-07 08:50:13 -04:00
rustc_codegen_llvm Rollup merge of #97969 - inglorion:prelinkpasses, r=nikic 2022-06-11 18:05:34 +02:00
rustc_codegen_ssa Auto merge of #97905 - nnethercote:revert-infallible-encoder, r=bjorn3 2022-06-11 04:00:23 +00:00
rustc_const_eval Rollup merge of #97761 - RalfJung:vtable-validation, r=cjgillot 2022-06-11 12:59:26 +02:00
rustc_data_structures Revert b983e42936. 2022-06-10 08:35:03 +10:00
rustc_driver Auto merge of #95565 - jackh726:remove-borrowck-mode, r=nikomatsakis 2022-06-07 05:04:14 +00:00
rustc_error_codes Rollup merge of #96868 - nrc:turbo-stable, r=jhpratt,nbdd0121,nagisa 2022-06-11 07:42:12 +02:00
rustc_error_messages Deactivate feature gate explicit_generic_args_with_impl_trait 2022-06-06 12:21:49 +01:00
rustc_errors Rollup merge of #97718 - xFrednet:95540-delayed-good-path-ice-for-expect, r=wesleywiser 2022-06-10 17:22:28 +09:00
rustc_expand Auto merge of #97903 - est31:unused_macro_rules_compile_error, r=petrochenkov 2022-06-11 08:46:21 +00:00
rustc_feature Rollup merge of #96868 - nrc:turbo-stable, r=jhpratt,nbdd0121,nagisa 2022-06-11 07:42:12 +02:00
rustc_fs_util
rustc_graphviz Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_hir Address comments 2022-06-11 16:38:48 -07:00
rustc_hir_pretty Compute lifetimes in scope at diagnostic time. 2022-06-04 15:28:15 +02:00
rustc_incremental Revert dc08bc51f2. 2022-06-10 11:58:29 +10:00
rustc_index Auto merge of #97862 - SparrowLii:superset, r=lcnr 2022-06-09 07:13:46 +00:00
rustc_infer Make is_suggestable work on all TypeFoldable 2022-06-11 16:38:48 -07:00
rustc_interface Rollup merge of #97789 - ferrocene:pa-fix-issue-71363-test, r=cjgillot 2022-06-11 12:59:27 +02:00
rustc_lexer Reduce max hash in raw strings from u16 to u8 2022-03-23 22:13:55 +01:00
rustc_lint Address comments 2022-06-11 16:38:48 -07:00
rustc_lint_defs Use serde_json for json error messages 2022-06-03 16:46:19 +00:00
rustc_llvm RustWrapper: adapt to APInt API changes in LLVM 15 2022-06-07 14:47:57 -04:00
rustc_log clippy::complexity fixes 2022-05-26 13:14:24 +02:00
rustc_macros Auto merge of #94732 - nnethercote:infallible-encoder, r=bjorn3 2022-06-08 10:24:12 +00:00
rustc_metadata Auto merge of #95880 - cjgillot:def-ident-span, r=petrochenkov 2022-06-11 20:08:48 +00:00
rustc_middle Address comments 2022-06-11 16:38:48 -07:00
rustc_mir_build thir: wrap hir id of vars into local var id 2022-06-09 17:00:38 +08:00
rustc_mir_dataflow Rollup merge of #97597 - tmiasko:simplify-locals-side-effects, r=RalfJung,JakobDegen 2022-06-08 07:37:30 +02:00
rustc_mir_transform Auto merge of #97740 - RalfJung:ctfe-cycle-spans, r=lcnr 2022-06-09 01:52:15 +00:00
rustc_monomorphize Folding revamp. 2022-06-08 09:24:03 +10:00
rustc_parse Rollup merge of #97857 - ChayimFriedman2:box-identifier-help, r=compiler-errors 2022-06-08 13:32:21 -07:00
rustc_parse_format Make rustc_parse_format compile on stable 2022-05-03 11:26:58 +02:00
rustc_passes Rollup merge of #97301 - semicoleon:unstable-reexport, r=petrochenkov 2022-06-07 11:41:07 +02:00
rustc_plugin_impl Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_privacy Folding revamp. 2022-06-08 09:24:03 +10:00
rustc_query_impl Revert dc08bc51f2. 2022-06-10 11:58:29 +10:00
rustc_query_system Revert dc08bc51f2. 2022-06-10 11:58:29 +10:00
rustc_resolve Auto merge of #97903 - est31:unused_macro_rules_compile_error, r=petrochenkov 2022-06-11 08:46:21 +00:00
rustc_save_analysis Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_serialize Revert dc08bc51f2. 2022-06-10 11:58:29 +10:00
rustc_session Rollup merge of #97789 - ferrocene:pa-fix-issue-71363-test, r=cjgillot 2022-06-11 12:59:27 +02:00
rustc_span Auto merge of #97980 - Dylan-DPC:rollup-l8exe4b, r=Dylan-DPC 2022-06-11 06:17:54 +00:00
rustc_symbol_mangling Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_target Rollup merge of #97928 - hoodmane:emscripten-no-assertions, r=tlively 2022-06-10 22:32:30 +02:00
rustc_trait_selection Address comments 2022-06-11 16:38:48 -07:00
rustc_traits Folding revamp. 2022-06-08 09:24:03 +10:00
rustc_ty_utils Auto merge of #95880 - cjgillot:def-ident-span, r=petrochenkov 2022-06-11 20:08:48 +00:00
rustc_type_ir Revert b983e42936. 2022-06-10 08:35:03 +10:00
rustc_typeck Auto merge of #97778 - compiler-errors:misc-diagnostics-tidy, r=cjgillot 2022-06-12 00:47:54 +00:00