From 4f757af1769dcb89a556d453d71fa2f2d5295ce7 Mon Sep 17 00:00:00 2001 From: lcnr Date: Thu, 20 Apr 2023 14:09:41 +0200 Subject: [PATCH 1/2] remove unused message --- compiler/rustc_hir_typeck/messages.ftl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/compiler/rustc_hir_typeck/messages.ftl b/compiler/rustc_hir_typeck/messages.ftl index 2c537bf4064ae..5a935ceee356d 100644 --- a/compiler/rustc_hir_typeck/messages.ftl +++ b/compiler/rustc_hir_typeck/messages.ftl @@ -3,10 +3,6 @@ hir_typeck_field_multiply_specified_in_initializer = .label = used more than once .previous_use_label = first use of `{$ident}` -hir_typeck_copy_impl_on_type_with_dtor = - the trait `Copy` cannot be implemented for this type; the type has a destructor - .label = `Copy` not allowed on types with destructors - hir_typeck_multiple_relaxed_default_bounds = type parameter has more than one relaxed default bound, only one is supported From 82cb8a2933e04bc362869e47f10b041242911c10 Mon Sep 17 00:00:00 2001 From: lcnr Date: Thu, 20 Apr 2023 14:17:52 +0200 Subject: [PATCH 2/2] more msg removal --- compiler/rustc_hir_typeck/messages.ftl | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/compiler/rustc_hir_typeck/messages.ftl b/compiler/rustc_hir_typeck/messages.ftl index 5a935ceee356d..6d40df7d0ccfa 100644 --- a/compiler/rustc_hir_typeck/messages.ftl +++ b/compiler/rustc_hir_typeck/messages.ftl @@ -3,17 +3,6 @@ hir_typeck_field_multiply_specified_in_initializer = .label = used more than once .previous_use_label = first use of `{$ident}` -hir_typeck_multiple_relaxed_default_bounds = - type parameter has more than one relaxed default bound, only one is supported - -hir_typeck_copy_impl_on_non_adt = - the trait `Copy` cannot be implemented for this type - .label = type is not a structure or enumeration - -hir_typeck_trait_object_declared_with_no_traits = - at least one trait is required for an object type - .alias_span = this alias does not contain a trait - hir_typeck_functional_record_update_on_non_struct = functional record update syntax requires a struct