]> git.lizzy.rs Git - rust.git/commitdiff
E0248 Change in issue format
authorShyamSundarB <shyambaskaran@outlook.com>
Sun, 7 Aug 2016 18:45:36 +0000 (00:15 +0530)
committerGitHub <noreply@github.com>
Sun, 7 Aug 2016 18:45:36 +0000 (00:15 +0530)
src/librustc_typeck/astconv.rs

index 50ffa52e88ba497e5c6833635470a78a7ed6a4b8..deba31db5dfcf6aec2c9c7c0aabc967ba99a0544 100644 (file)
@@ -1582,9 +1582,11 @@ fn base_def_to_ty(&self,
                 return self.tcx().types.err;
             }
             _ => {
-                span_err!(tcx.sess, span, E0248,
-                          "found value `{}` used as a type",
-                          tcx.item_path_str(def.def_id()));
+                struct_span_err!(tcx.sess, span, E0248,
+                           "found value `{}` used as a type",
+                            tcx.item_path_str(def.def_id()))
+                           .span_label(span, &format!("value used as a type"))
+                           .emit();
                 return self.tcx().types.err;
             }
         }