diff options
| author | Gianni Ciccarelli <gianni.ciccarelli@gmail.com> | 2016-09-26 03:18:42 +0200 |
|---|---|---|
| committer | Gianni Ciccarelli <gianni.ciccarelli@gmail.com> | 2016-09-26 03:18:42 +0200 |
| commit | 63a58929b9df88bfad183609a26f5829e18b2cde (patch) | |
| tree | b5f4c34ac316cddfb0ebc97524d7ad156bc196bb /src | |
| parent | a35275c89bc96e20b2d2642386f42890c988ab6d (diff) | |
#36553 specialisation error 520 is misleading
fit string in one line
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/check/mod.rs | 3 |
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) => { |
