about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorNikita Revenco <154856872+NikitaRevenco@users.noreply.github.com>2025-02-21 01:00:19 +0000
committerNikita Revenco <154856872+NikitaRevenco@users.noreply.github.com>2025-02-21 20:44:35 +0000
commitec88bc2e00985e99923ff3de966a947daa63c567 (patch)
tree2fae71a7a1eee01d0cfe188684f8b12cb6f5f7cc /compiler/rustc_interface/src/errors.rs
parent28b83ee59698ae069f5355b8e03f976406f410f5 (diff)
downloadrust-ec88bc2e00985e99923ff3de966a947daa63c567.tar.gz
rust-ec88bc2e00985e99923ff3de966a947daa63c567.zip
fix: naming convention "ferris" suggestion for idents named 🦀
test: add tests for correct ferris capitalization

fix: add "struct"

style: use rustfmt

style: remove newline

fix: _

_

_

_

_
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
-rw-r--r--compiler/rustc_interface/src/errors.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/errors.rs b/compiler/rustc_interface/src/errors.rs
index ca4e556dcdb..eed729a1777 100644
--- a/compiler/rustc_interface/src/errors.rs
+++ b/compiler/rustc_interface/src/errors.rs
@@ -24,8 +24,9 @@ pub(crate) struct CrateNameInvalid<'a> {
 pub struct FerrisIdentifier {
     #[primary_span]
     pub spans: Vec<Span>,
-    #[suggestion(code = "ferris", applicability = "maybe-incorrect")]
+    #[suggestion(code = "{ferris_fix}", applicability = "maybe-incorrect")]
     pub first_span: Span,
+    pub ferris_fix: &'static str,
 }
 
 #[derive(Diagnostic)]