diff options
| author | Urgau <urgau@numericable.fr> | 2024-10-01 10:25:18 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-10-04 09:09:20 +0200 |
| commit | a3ffa1eae507809628decc6250b28db6ab167b11 (patch) | |
| tree | 1557002d8c545a8b05e453b7355fddd76fcbe1b9 /compiler/rustc_attr/src/session_diagnostics.rs | |
| parent | 781f1840cd37348ce4d76fff2b04e1ada531864e (diff) | |
| download | rust-a3ffa1eae507809628decc6250b28db6ab167b11.tar.gz rust-a3ffa1eae507809628decc6250b28db6ab167b11.zip | |
Improve non-boolean literal error in cfg predicate
Diffstat (limited to 'compiler/rustc_attr/src/session_diagnostics.rs')
| -rw-r--r-- | compiler/rustc_attr/src/session_diagnostics.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_attr/src/session_diagnostics.rs b/compiler/rustc_attr/src/session_diagnostics.rs index 959a5a4bba7..626840aa6a3 100644 --- a/compiler/rustc_attr/src/session_diagnostics.rs +++ b/compiler/rustc_attr/src/session_diagnostics.rs @@ -206,6 +206,7 @@ impl<'a, G: EmissionGuarantee> Diagnostic<'a, G> for UnsupportedLiteral { let mut diag = Diag::new(dcx, level, match self.reason { UnsupportedLiteralReason::Generic => fluent::attr_unsupported_literal_generic, UnsupportedLiteralReason::CfgString => fluent::attr_unsupported_literal_cfg_string, + UnsupportedLiteralReason::CfgBoolean => fluent::attr_unsupported_literal_cfg_boolean, UnsupportedLiteralReason::DeprecatedString => { fluent::attr_unsupported_literal_deprecated_string } |
