1
Fork 0
rust/compiler
Michael Goulet f9ccbf084f
Rollup merge of #105846 - compiler-errors:issue-105838, r=jackh726
Account for return-position `impl Trait` in trait in `opt_suggest_box_span`

RPITITs are the only types where their opaque bounds might normalize to some other self type than the opaque type itself. To avoid needing to do normalization, let's just match on either alias kind.

Ideally, we'd just get rid of `opt_suggest_box_span`. It's kind of a wart on type-checking `if`/`match`. I've recently refactored this expression for being confusing/wrong, but moving it into the error path is pretty hard.

Fixes #105838
2023-01-04 20:36:27 -08:00
..
rustc rustc: Use unix_sigpipe instead of rustc_driver::set_sigpipe_handler 2022-10-02 17:49:36 +02:00
rustc_abi Auto merge of #105446 - erikdesjardins:vt-size, r=nikic 2022-12-18 22:01:39 +00:00
rustc_apfloat compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_arena compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_ast Rollup merge of #106361 - clubby789:int-literal-too-large, r=estebank 2023-01-04 07:28:56 +01:00
rustc_ast_lowering Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_ast_passes Allow impl ~const Trait opaque types 2022-12-15 11:26:15 +00:00
rustc_ast_pretty Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_attr rustc_attr remove ref patterns 2022-12-06 14:45:58 +00:00
rustc_baked_icu_data Update crate documentation of rustc_baked_icu_data crate 2022-11-18 14:46:36 -08:00
rustc_borrowck Merge borrowck permission checks 2023-01-04 15:25:45 +01:00
rustc_builtin_macros Update format.rs 2023-01-02 15:51:54 +05:30
rustc_codegen_cranelift Auto merge of #105613 - Nilstrieb:rename-assert_uninit_valid, r=RalfJung 2022-12-21 23:20:04 +00:00
rustc_codegen_gcc Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
rustc_codegen_llvm Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses-for-that, r=cjgillot 2022-12-25 22:15:00 +01:00
rustc_codegen_ssa Auto merge of #106224 - bjorn3:staticlib_fixes, r=wesleywiser 2023-01-04 21:35:15 +00:00
rustc_const_eval Auto merge of #105085 - oli-obk:stop_promoting_all_the_things, r=RalfJung 2022-12-24 14:00:37 +00:00
rustc_data_structures Reduce HIR debug output 2023-01-02 20:15:48 +01:00
rustc_driver Only deduplicate stack traces for good path bugs 2022-12-31 02:14:26 +00:00
rustc_error_codes refactor: merge E0465 into E0464 2022-12-31 20:44:54 +13:00
rustc_error_messages Auto merge of #106224 - bjorn3:staticlib_fixes, r=wesleywiser 2023-01-04 21:35:15 +00:00
rustc_errors Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_expand Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_feature Use the correct tracking issue for dyn_star 2023-01-01 19:56:10 +01:00
rustc_fs_util Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_graphviz Indicate anonymous lifetime 2022-12-23 15:59:53 +01:00
rustc_hir Reduce HIR debug output 2023-01-02 20:15:48 +01:00
rustc_hir_analysis Rollup merge of #106200 - compiler-errors:suggest-impl-trait, r=estebank 2023-01-04 07:28:54 +01:00
rustc_hir_pretty Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_hir_typeck Rollup merge of #105846 - compiler-errors:issue-105838, r=jackh726 2023-01-04 20:36:27 -08:00
rustc_incremental rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
rustc_index A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
rustc_infer Address comments 2023-01-04 00:51:50 +00:00
rustc_interface Rollup merge of #106274 - jyn514:dump-mono-stats, r=lqd 2023-01-04 07:28:54 +01:00
rustc_lexer Recover fn keyword as Fn trait in bounds 2022-12-27 06:14:46 +00:00
rustc_lint Address comments 2023-01-04 00:51:50 +00:00
rustc_lint_defs fix some typos 2022-12-25 00:43:50 +01:00
rustc_llvm llvm-wrapper: adapt for LLVM API changes 2022-12-11 09:14:50 +00:00
rustc_log Use IsTerminal in rustc_log 2022-10-16 15:10:40 +01:00
rustc_macros Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
rustc_metadata Auto merge of #105609 - bjorn3:shrink_rustc_dev, r=jyn514 2023-01-03 08:05:54 +00:00
rustc_middle review comment: Deduplicate dyn ty_and_layout_field code 2023-01-04 01:03:04 +00:00
rustc_mir_build Don't trim path for unsafe_op_in_unsafe_fn lints 2023-01-03 00:28:54 +01:00
rustc_mir_dataflow Fix handling of dead unwinds in backward analyses 2023-01-02 22:24:01 +01:00
rustc_mir_transform Reenable limited top-down MIR inlining 2023-01-01 22:01:29 -08:00
rustc_monomorphize Fix unknown_crate when --crate-name isn't passed on the CLI 2023-01-02 23:02:58 +00:00
rustc_parse Auto merge of #106268 - kraktus:patch-2, r=Nilstrieb 2022-12-30 06:59:13 +00:00
rustc_parse_format Add enum for find_width_map_from_snippet 2022-12-28 17:43:35 +01:00
rustc_passes Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_plugin_impl Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_privacy Prevent the creation of TraitRef without dedicated methods 2022-12-14 15:36:39 +00:00
rustc_query_impl Enable query_impl doctests 2023-01-03 20:38:28 -06:00
rustc_query_system Auto merge of #106307 - Nilstrieb:dynamic->static, r=cjgillot 2023-01-02 20:12:16 +00:00
rustc_resolve Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
rustc_save_analysis Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_serialize compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_session Rollup merge of #106361 - clubby789:int-literal-too-large, r=estebank 2023-01-04 07:28:56 +01:00
rustc_smir
rustc_span Suggest more impl Trait on -> _ 2023-01-03 23:50:31 +00:00
rustc_symbol_mangling CFI: Monomorphize transparent ADTs before typeid 2022-12-29 10:21:07 -08:00
rustc_target Auto merge of #105712 - amg98:feat/vita-support, r=wesleywiser 2023-01-03 23:38:28 +00:00
rustc_trait_selection has_overflow only if value is *not* within limit 2023-01-03 01:09:08 +00:00
rustc_traits rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
rustc_transmute Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_ty_utils layout_of: T: Thin implies sizeof(&T) == sizeof(usize) 2023-01-04 00:56:05 +00:00
rustc_type_ir A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00