You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.note1 = functions with the `{$abi}` ABI must pass their result via the available return registers
86
86
.note2 = the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
87
87
88
+
hir_analysis_coerce_multi = implementing `{$trait_name}` does not allow multiple fields to be coerced
89
+
.note = the trait `{$trait_name}` may only be implemented when a single field is being coerced
90
+
.label = these fields must be coerced for `{$trait_name}` to be valid
91
+
88
92
hir_analysis_coerce_pointee_no_field = `CoercePointee` can only be derived on `struct`s with at least one field
89
93
90
94
hir_analysis_coerce_pointee_no_user_validity_assertion = asserting applicability of `derive(CoercePointee)` on a target data is forbidden
@@ -97,10 +101,7 @@ hir_analysis_coerce_pointee_not_transparent = `derive(CoercePointee)` is only ap
97
101
98
102
hir_analysis_coerce_unsized_may = the trait `{$trait_name}` may only be implemented for a coercion between structures
99
103
100
-
hir_analysis_coerce_unsized_multi = implementing the trait `CoerceUnsized` requires multiple coercions
101
-
.note = `CoerceUnsized` may only be implemented for a coercion between structures with one field being coerced
102
-
.coercions_note = currently, {$number} fields need coercions: {$coercions}
103
-
.label = requires multiple coercions
104
+
hir_analysis_coerce_zero = implementing `{$trait_name}` requires a field to be coerced
104
105
105
106
hir_analysis_coercion_between_struct_same_note = expected coercion between the same definition; expected `{$source_path}`, found `{$target_path}`
106
107
@@ -139,10 +140,6 @@ hir_analysis_cross_crate_traits = cross-crate traits with a default impl, like `
139
140
hir_analysis_cross_crate_traits_defined = cross-crate traits with a default impl, like `{$traits}`, can only be implemented for a struct/enum type defined in the current crate
140
141
.label = can't implement cross-crate trait for type in another crate
141
142
142
-
hir_analysis_dispatch_from_dyn_multi = implementing the `DispatchFromDyn` trait requires multiple coercions
143
-
.note = the trait `DispatchFromDyn` may only be implemented for a coercion between structures with a single field being coerced
144
-
.coercions_note = currently, {$number} fields need coercions: {$coercions}
145
-
146
143
hir_analysis_dispatch_from_dyn_repr = structs implementing `DispatchFromDyn` may not have `#[repr(packed)]` or `#[repr(C)]`
147
144
148
145
hir_analysis_dispatch_from_dyn_zst = the trait `DispatchFromDyn` may only be implemented for structs containing the field being coerced, ZST fields with 1 byte alignment that don't mention type/const generics, and nothing else
0 commit comments