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
To allow use of Receiver with Target diverging from Deref::Target,
one must now enable an unstable feature flag arbitrary-self-types-split-chains.
Signed-off-by: Xiangfei Ding <dingxiangfei2009@protonmail.ch>
Copy file name to clipboardExpand all lines: compiler/rustc_hir_analysis/messages.ftl
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,11 @@ hir_analysis_cross_crate_traits = cross-crate traits with a default impl, like `
149
149
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
150
150
.label = can't implement cross-crate trait for type in another crate
151
151
152
+
hir_analysis_deref_receiver_target_diverge = `Deref::Target` does not agree with `Receiver::Target`
153
+
.label = `Deref::Target` is `{$deref_ty}` but `Receiver::Target` is `{$recv_ty}`
154
+
.note = `#![feature(arbitrary_self_types_merge_chains)]` rejects this kind of divergence
155
+
hir_analysis_deref_receiver_target_diverge_feature = `Receiver::Target` diverging from `Deref::Target` is not supported, we look forward to your feedback
156
+
152
157
hir_analysis_dispatch_from_dyn_repr = structs implementing `DispatchFromDyn` may not have `#[repr(packed)]` or `#[repr(C)]`
153
158
154
159
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