about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-02-24 07:20:47 +0000
committerGitHub <noreply@github.com>2025-02-24 07:20:47 +0000
commitbba96636213e996d712454f24e4b08abf105835f (patch)
treea5355f8c6e871a3feb9e502b1ecebe6f6f561f56 /compiler/rustc_interface/src/errors.rs
parent13ff65e7bf0814f6e4b71b0e94472d122731d949 (diff)
parent18e19b9f04fed7363056fc19f5f836c05fd858de (diff)
downloadrust-bba96636213e996d712454f24e4b08abf105835f.tar.gz
rust-bba96636213e996d712454f24e4b08abf105835f.zip
Merge pull request #4203 from RalfJung/rustup
Rustup
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)]