Skip to content

Commit 8afb40b

Browse files
committedOct 30, 2023
Delete unused InvalidDeprecationVersion diagnostic
1 parent 2fe7d17 commit 8afb40b

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed
 

‎compiler/rustc_passes/messages.ftl

-5
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,6 @@ passes_invalid_attr_at_crate_level =
396396
passes_invalid_attr_at_crate_level_item =
397397
the inner attribute doesn't annotate this {$kind}
398398
399-
passes_invalid_deprecation_version =
400-
invalid deprecation version found
401-
.label = invalid deprecation version
402-
.item = the stability attribute annotates this item
403-
404399
passes_invalid_macro_export_arguments = `{$name}` isn't a valid `#[macro_export]` argument
405400
406401
passes_invalid_macro_export_arguments_too_many_items = `#[macro_export]` can only take 1 or 0 arguments

‎compiler/rustc_passes/src/errors.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1524,16 +1524,6 @@ pub struct CannotStabilizeDeprecated {
15241524
pub item_sp: Span,
15251525
}
15261526

1527-
#[derive(Diagnostic)]
1528-
#[diag(passes_invalid_deprecation_version)]
1529-
pub struct InvalidDeprecationVersion {
1530-
#[primary_span]
1531-
#[label]
1532-
pub span: Span,
1533-
#[label(passes_item)]
1534-
pub item_sp: Span,
1535-
}
1536-
15371527
#[derive(Diagnostic)]
15381528
#[diag(passes_missing_stability_attr)]
15391529
pub struct MissingStabilityAttr<'a> {

0 commit comments

Comments
 (0)