Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e37e022

Browse files
committed
Remove a dead early lint
Dropped in favor a hard error in RUST-127907.
1 parent e0c3fd8 commit e37e022

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

‎compiler/rustc_lint/messages.ftl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ lint_builtin_unused_doc_comment = unused doc comment
181181
lint_builtin_while_true = denote infinite loops with `loop {"{"} ... {"}"}`
182182
.suggestion = use `loop`
183183
184-
lint_byte_slice_in_packed_struct_with_derive = {$ty} slice in a packed struct that derives a built-in trait
185-
.help = consider implementing the trait by hand, or remove the `packed` attribute
186-
187184
lint_check_name_unknown_tool = unknown lint tool: `{$tool_name}`
188185
189186
lint_closure_returning_async_block = closure returning async block can be made into an async closure

‎compiler/rustc_lint/src/early/diagnostics.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,6 @@ pub fn decorate_builtin_lint(
270270
}
271271
.decorate_lint(diag);
272272
}
273-
BuiltinLintDiag::ByteSliceInPackedStructWithDerive { ty } => {
274-
lints::ByteSliceInPackedStructWithDerive { ty }.decorate_lint(diag);
275-
}
276273
BuiltinLintDiag::ExternCrateNotIdiomatic { vis_span, ident_span } => {
277274
let suggestion_span = vis_span.between(ident_span);
278275
let code = if vis_span.is_empty() { "use " } else { " use " };

‎compiler/rustc_lint/src/lints.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,14 +2910,6 @@ pub(crate) struct NamedArgumentUsedPositionally {
29102910
pub named_arg_name: String,
29112911
}
29122912

2913-
#[derive(LintDiagnostic)]
2914-
#[diag(lint_byte_slice_in_packed_struct_with_derive)]
2915-
#[help]
2916-
pub(crate) struct ByteSliceInPackedStructWithDerive {
2917-
// FIXME: make this translatable
2918-
pub ty: String,
2919-
}
2920-
29212913
#[derive(LintDiagnostic)]
29222914
#[diag(lint_extern_crate_not_idiomatic)]
29232915
pub(crate) struct ExternCrateNotIdiomatic {

‎compiler/rustc_lint_defs/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,6 @@ pub enum BuiltinLintDiag {
690690
/// Indicates if the named argument is used as a width/precision for formatting
691691
is_formatting_arg: bool,
692692
},
693-
ByteSliceInPackedStructWithDerive {
694-
// FIXME: enum of byte/string
695-
ty: String,
696-
},
697693
ExternCrateNotIdiomatic {
698694
vis_span: Span,
699695
ident_span: Span,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /