Skip to content

Commit 63a5892

Browse files
committed
#36553 specialisation error 520 is misleading
fit string in one line
1 parent a35275c commit 63a5892

File tree

1 file changed

+1
-2
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-2
lines changed

src/librustc_typeck/check/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,7 @@ fn report_forbidden_specialization<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
912912
match tcx.span_of_impl(parent_impl) {
913913
Ok(span) => {
914914
err.span_label(span, &"parent `impl` is here");
915-
err.note(&format!("to specialize, `{}` \
916-
in the parent `impl` must be marked `default`",
915+
err.note(&format!("to specialize, `{}` in the parent `impl` must be marked `default`",
917916
impl_item.name));
918917
}
919918
Err(cname) => {

0 commit comments

Comments
 (0)