Skip to content

Commit 23ee3e0

Browse files
committed
lint: port unstable feature diagnostics
Signed-off-by: David Wood <[email protected]>
1 parent d071f50 commit 23ee3e0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

compiler/rustc_error_messages/locales/en-US/lint.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,3 +352,5 @@ lint-builtin-const-no-mangle = const items should never be `#[no_mangle]`
352352
353353
lint-builtin-mutable-transmutes =
354354
transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell
355+
356+
lint-builtin-unstable-features = unstable feature

compiler/rustc_lint/src/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ impl<'tcx> LateLintPass<'tcx> for UnstableFeatures {
13231323
if let Some(items) = attr.meta_item_list() {
13241324
for item in items {
13251325
cx.struct_span_lint(UNSTABLE_FEATURES, item.span(), |lint| {
1326-
lint.build("unstable feature").emit();
1326+
lint.build(fluent::lint::builtin_unstable_features).emit();
13271327
});
13281328
}
13291329
}

0 commit comments

Comments
 (0)