about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-08-03 20:42:42 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2016-08-03 22:39:51 +0200
commit9b690c94f042a49f5f06c417cb9c5ab401dd0be8 (patch)
treeaeafb8bcaa5142616cc05fee3fb3a08a5a8cdf20
parentd603892ea7649f5b1a31f871a2ddc54c18d6a02b (diff)
Update E0132 to new format
-rw-r--r--src/librustc_typeck/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/librustc_typeck/lib.rs b/src/librustc_typeck/lib.rs
index 3b2d02dc861..6f0892cdcdf 100644
--- a/src/librustc_typeck/lib.rs
+++ b/src/librustc_typeck/lib.rs
@@ -261,8 +261,11 @@ fn check_start_fn_ty(ccx: &CrateCtxt,
                     match it.node {
                         hir::ItemFn(_,_,_,_,ref ps,_)
                         if ps.is_parameterized() => {
-                            span_err!(tcx.sess, start_span, E0132,
-                                      "start function is not allowed to have type parameters");
+                            struct_span_err!(tcx.sess, start_span, E0132,
+                                "start function is not allowed to have type parameters")
+                                .span_label(ps.span().unwrap(),
+                                            &format!("start function cannot have type parameters"))
+                                .emit();
                             return;
                         }
                         _ => ()