diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-09 23:32:06 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-11-09 23:32:06 +0100 |
| commit | f235b6f9c6788e213b6365103cfa9c6c798fe659 (patch) | |
| tree | 57a57420aca41b847ee3e9af48bb4434cdbc48b6 /compiler/rustc_session/src/parse.rs | |
| parent | 822762c966b0c8e85c0a552929a5a9c53bf93a97 (diff) | |
| download | rust-f235b6f9c6788e213b6365103cfa9c6c798fe659.tar.gz rust-f235b6f9c6788e213b6365103cfa9c6c798fe659.zip | |
give a hint which feature is missing
Diffstat (limited to 'compiler/rustc_session/src/parse.rs')
| -rw-r--r-- | compiler/rustc_session/src/parse.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs index f20ae85b8e8..21c11655110 100644 --- a/compiler/rustc_session/src/parse.rs +++ b/compiler/rustc_session/src/parse.rs @@ -155,6 +155,7 @@ pub fn feature_warn_issue( } /// Adds the diagnostics for a feature to an existing error. +/// Must be a language feature! pub fn add_feature_diagnostics<G: EmissionGuarantee>( err: &mut Diag<'_, G>, sess: &Session, |
