about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGianni Ciccarelli <gianni.ciccarelli@gmail.com>2016-09-26 03:18:42 +0200
committerGianni Ciccarelli <gianni.ciccarelli@gmail.com>2016-09-26 03:18:42 +0200
commit63a58929b9df88bfad183609a26f5829e18b2cde (patch)
treeb5f4c34ac316cddfb0ebc97524d7ad156bc196bb /src
parenta35275c89bc96e20b2d2642386f42890c988ab6d (diff)
#36553 specialisation error 520 is misleading
fit string in one line
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/check/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs
index b59273a7b5d..10c9ff8cdb8 100644
--- a/src/librustc_typeck/check/mod.rs
+++ b/src/librustc_typeck/check/mod.rs
@@ -912,8 +912,7 @@ fn report_forbidden_specialization<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
     match tcx.span_of_impl(parent_impl) {
         Ok(span) => {
             err.span_label(span, &"parent `impl` is here");
-            err.note(&format!("to specialize, `{}` \
-                               in the parent `impl` must be marked `default`",
+            err.note(&format!("to specialize, `{}` in the parent `impl` must be marked `default`",
                               impl_item.name));
         }
         Err(cname) => {