rust/compiler
Dylan DPC 0e80a7ab59
Rollup merge of #95197 - frank-king:feat/unary_op_type_constrain, r=petrochenkov
Suggest constraining param for unary ops when missing trait impl

This PR adds a suggestion of constraining param for unary ops `-` and `!` when the corresponding trait implementation
is missing.

Fixs #94543.

BTW, this is my first time to touch rustc, please correct me if I did anything wrong.
2022-03-22 19:07:35 +01:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #94584 - pnkfelix:inject-use-suggestion-sites, r=ekuber 2022-03-15 03:56:33 +00:00
rustc_ast_lowering Rollup merge of #94960 - codehorseman:master, r=oli-obk 2022-03-17 22:55:05 +01:00
rustc_ast_passes rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
rustc_ast_pretty
rustc_attr Rollup merge of #94948 - jhpratt:rustc_deprecated, r=Dylan-DPC 2022-03-20 09:14:59 +01:00
rustc_borrowck diagnostics: do not give Option::as_ref suggestion for complex match 2022-03-19 15:54:30 -07:00
rustc_builtin_macros Auto merge of #94584 - pnkfelix:inject-use-suggestion-sites, r=ekuber 2022-03-15 03:56:33 +00:00
rustc_codegen_cranelift Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20 2022-03-20 16:55:21 +01:00
rustc_codegen_gcc Auto merge of #88098 - Amanieu:oom_panic, r=nagisa 2022-03-18 03:01:46 +00:00
rustc_codegen_llvm Auto merge of #88098 - Amanieu:oom_panic, r=nagisa 2022-03-18 03:01:46 +00:00
rustc_codegen_ssa Auto merge of #95056 - Dylan-DPC:rollup-swtuw2n, r=Dylan-DPC 2022-03-18 00:35:19 +00:00
rustc_const_eval rename LocalState::Uninitialized to Unallocated 2022-03-21 22:48:11 -04:00
rustc_data_structures
rustc_driver rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
rustc_error_codes
rustc_errors rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
rustc_expand Fix generated tokens hygiene 2022-03-21 19:45:55 -03:00
rustc_feature move adt_const_params to its own tracking issue 2022-03-21 16:33:42 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir Give more details in Display for hir::Target 2022-03-19 02:03:37 -07:00
rustc_hir_pretty
rustc_incremental rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
rustc_index Fix small typo in FIXME 2022-03-15 12:04:23 +01:00
rustc_infer rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
rustc_interface Auto merge of #88098 - Amanieu:oom_panic, r=nagisa 2022-03-18 03:01:46 +00:00
rustc_lexer Add test for >65535 hashes in lexing raw string 2022-03-16 06:37:41 +01:00
rustc_lint rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
rustc_lint_defs resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
rustc_llvm
rustc_log
rustc_macros
rustc_metadata rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
rustc_middle fix two comments referring to moved code (rustc_mir_transform::generator) 2022-03-20 23:31:04 +01:00
rustc_mir_build Rollup merge of #94960 - codehorseman:master, r=oli-obk 2022-03-17 22:55:05 +01:00
rustc_mir_dataflow
rustc_mir_transform Rollup merge of #95196 - RalfJung:unalloc-not-uninit, r=oli-obk 2022-03-22 19:07:34 +01:00
rustc_monomorphize rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
rustc_parse Auto merge of #95104 - compiler-errors:remove-ascription, r=davidtwco 2022-03-21 02:29:55 +00:00
rustc_parse_format
rustc_passes use format-args-capture and remove unnecessary nested if blocks in some parts of rustc_passes 2022-03-22 00:02:18 +09:00
rustc_plugin_impl
rustc_privacy rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
rustc_query_impl
rustc_query_system
rustc_resolve Return err instead of ICE 2022-03-21 19:56:23 +03:00
rustc_save_analysis
rustc_serialize
rustc_session Auto merge of #88098 - Amanieu:oom_panic, r=nagisa 2022-03-18 03:01:46 +00:00
rustc_span Add deprecated_safe feature gate and attribute, cc #94978 2022-03-15 19:48:52 -03:00
rustc_symbol_mangling resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
rustc_target resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
rustc_trait_selection Rollup merge of #95039 - spastorino:overlap-super-predicates, r=nikomatsakis 2022-03-18 05:21:55 +01:00
rustc_traits
rustc_ty_utils Rollup merge of #94960 - codehorseman:master, r=oli-obk 2022-03-17 22:55:05 +01:00
rustc_type_ir
rustc_typeck suggest constraining param for unary ops when missing trait impl 2022-03-22 12:17:30 +08:00