File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,9 @@ attr_unknown_meta_item =
104
104
attr_unknown_version_literal =
105
105
unknown version literal format, assuming it refers to a future version
106
106
107
+ attr_unstable_cfg_target_compact =
108
+ compact `cfg(target(..))` is experimental and subject to change
109
+
107
110
attr_unsupported_literal_cfg_string =
108
111
literal in `cfg` predicate value must be a string
109
112
attr_unsupported_literal_deprecated_kv_pair =
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ use rustc_span::hygiene::Transparency;
20
20
use rustc_span:: symbol:: { sym, Symbol } ;
21
21
use rustc_span:: Span ;
22
22
23
+ use crate :: fluent_generated;
23
24
use crate :: session_diagnostics:: { self , IncorrectReprFormatGenericCause } ;
24
25
25
26
/// The version placeholder that recently stabilized features contain inside the
@@ -592,7 +593,6 @@ pub fn parse_version(s: Symbol) -> Option<RustcVersion> {
592
593
593
594
/// Evaluate a cfg-like condition (with `any` and `all`), using `eval` to
594
595
/// evaluate individual items.
595
- #[ allow( rustc:: untranslatable_diagnostic) ] // FIXME: make this translatable
596
596
pub fn eval_condition (
597
597
cfg : & ast:: MetaItem ,
598
598
sess : & Session ,
@@ -679,7 +679,7 @@ pub fn eval_condition(
679
679
sess,
680
680
sym:: cfg_target_compact,
681
681
cfg. span ,
682
- "compact `cfg(target(..))` is experimental and subject to change" ,
682
+ fluent_generated :: attr_unstable_cfg_target_compact ,
683
683
)
684
684
. emit ( ) ;
685
685
}
You can’t perform that action at this time.
0 commit comments