]> git.lizzy.rs Git - rust.git/commitdiff
Add backticks to E0558
authorvarkor <github@varkor.com>
Sat, 23 Jun 2018 21:33:36 +0000 (22:33 +0100)
committervarkor <github@varkor.com>
Sat, 23 Jun 2018 23:16:10 +0000 (00:16 +0100)
src/librustc_codegen_llvm/diagnostics.rs
src/librustc_typeck/collect.rs
src/librustc_typeck/diagnostics.rs
src/test/ui/error-codes/E0558.stderr

index 57cc33d09bbea94e1f36f7fa1c82fe58ae831ce5..94776f17c7989074aea7cf6b89a75776788d76dd 100644 (file)
@@ -48,8 +48,3 @@ fn main() {
 "##,
 
 }
-
-
-register_diagnostics! {
-    E0558
-}
index 3d66768c24a8b3fc15858cf473f9a070330a5102..c24e20c5699092189f939316583910f7006afb54 100644 (file)
@@ -1909,7 +1909,7 @@ fn codegen_fn_attrs<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, id: DefId) -> Codegen
                 codegen_fn_attrs.export_name = Some(s);
             } else {
                 struct_span_err!(tcx.sess, attr.span, E0558,
-                                 "export_name attribute has invalid format")
+                                 "`export_name` attribute has invalid format")
                     .span_label(attr.span, "did you mean #[export_name=\"*\"]?")
                     .emit();
             }
index 75ff17241aaaca4fc08c39ba56ac2a0682608b53..cdfbb77071836e1219a8805a51154a96c9740e2f 100644 (file)
@@ -3709,7 +3709,7 @@ fn main() {}
 Erroneous code example:
 
 ```ignore (error-emitted-at-codegen-which-cannot-be-handled-by-compile_fail)
-#[export_name] // error: export_name attribute has invalid format
+#[export_name] // error: `export_name` attribute has invalid format
 pub fn something() {}
 
 fn main() {}
index 0cb8af9929418245cd5f0f91e58bb9e3658adc38..0777c44058fe81e3cf682c9448413d6789dfff45 100644 (file)
@@ -1,4 +1,4 @@
-error[E0558]: export_name attribute has invalid format
+error[E0558]: `export_name` attribute has invalid format
   --> $DIR/E0558.rs:11:1
    |
 LL | #[export_name]