rust/compiler
Matthias Krüger 4d4a3691e9
Rollup merge of #101875 - fmease:allow-more-negative-copy-impls, r=lcnr
Allow more `!Copy` impls

You can already implement `!Copy` for a lot of types (with `#![feature(negative_impls)]`). However, before this PR you could not implement `!Copy` for ADTs whose fields don't implement `Copy` which didn't make any sense. Further, you couldn't implement `!Copy` for types impl'ing `Drop` (equally nonsensical).

``@rustbot`` label T-types F-negative_impls
Fixes #101836.

r? types
2022-09-26 19:19:19 +02:00
..
rustc Don't rerun the build script for the compiler each time on linux 2022-07-10 23:57:25 -05:00
rustc_apfloat Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_arena Make use of [wrapping_]byte_{add,sub} 2022-08-23 19:32:37 +04:00
rustc_ast remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_ast_lowering remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_ast_passes remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_ast_pretty make mk_attr_id part of ParseSess 2022-09-14 08:49:10 +08:00
rustc_attr remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_borrowck Auto merge of #102051 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum 2022-09-26 14:22:43 +00:00
rustc_builtin_macros remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_codegen_cranelift rename Unevaluated to UnevaluatedConst 2022-09-23 14:27:34 +02:00
rustc_codegen_gcc Remove dead broken code from const zst handling in backends 2022-09-06 14:09:49 +00:00
rustc_codegen_llvm remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_codegen_ssa remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_const_eval remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_data_structures remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_driver remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_error_codes Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
rustc_error_messages Auto merge of #102165 - matthiaskrgr:rollup-n5oquhe, r=matthiaskrgr 2022-09-23 09:33:23 +00:00
rustc_errors remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_expand remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_feature replace stabilization placeholders 2022-09-26 10:13:44 +02:00
rustc_fs_util Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_graphviz Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_hir remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_hir_pretty Handle generic parameters. 2022-09-09 01:31:46 +00:00
rustc_incremental remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_index remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_infer remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_interface remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_lexer remove unnecessary PartialOrd and Ord 2022-09-08 06:15:33 +09:00
rustc_lint remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_lint_defs Revert "Auto merge of #101620 - cjgillot:compute_lint_levels_by_def, r=oli-obk" 2022-09-22 19:36:11 +02:00
rustc_llvm Rollup merge of #101997 - cuviper:drop-legacy-pm, r=nikic 2022-09-25 22:06:38 +08:00
rustc_log Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_macros remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_metadata remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_middle remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_mir_build remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_mir_dataflow remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_mir_transform remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_monomorphize remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_parse remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_parse_format Separate CountIsStar from CountIsParam in rustc_parse_format. 2022-08-25 14:49:09 +02:00
rustc_passes remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_plugin_impl UPDATE - rename DiagnosticHandler macro to Diagnostic 2022-09-21 11:39:53 -04:00
rustc_privacy remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_query_impl Auto merge of #101785 - jyn514:query-struct-fn-ptrs, r=cjgillot 2022-09-26 00:17:59 +00:00
rustc_query_system remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_resolve remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_save_analysis remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_serialize remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_session remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_smir Only keep one version of ImplicitSelfKind. 2022-09-13 19:18:23 +02:00
rustc_span remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_symbol_mangling separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_target remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_trait_selection remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_traits remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_transmute rustc_transmute: fix big-endian discriminants 2022-09-20 13:03:43 -07:00
rustc_ty_utils remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_type_ir Address code review comments 2022-09-13 14:50:12 -07:00
rustc_typeck Rollup merge of #101875 - fmease:allow-more-negative-copy-impls, r=lcnr 2022-09-26 19:19:19 +02:00