Skip to content

Commit 9b690c9

Browse files
Update E0132 to new format
1 parent d603892 commit 9b690c9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustc_typeck/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,11 @@ fn check_start_fn_ty(ccx: &CrateCtxt,
261261
match it.node {
262262
hir::ItemFn(_,_,_,_,ref ps,_)
263263
if ps.is_parameterized() => {
264-
span_err!(tcx.sess, start_span, E0132,
265-
"start function is not allowed to have type parameters");
264+
struct_span_err!(tcx.sess, start_span, E0132,
265+
"start function is not allowed to have type parameters")
266+
.span_label(ps.span().unwrap(),
267+
&format!("start function cannot have type parameters"))
268+
.emit();
266269
return;
267270
}
268271
_ => ()

0 commit comments

Comments
 (0)