Skip to content

Commit 2614a31

Browse files
committed
formatted
1 parent 3e6d575 commit 2614a31

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

clippy_lints/src/large_enum_variant.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ use rustc_middle::ty::{self, Ty};
1010
use rustc_session::impl_lint_pass;
1111
use rustc_span::Span;
1212

13-
14-
15-
1613
declare_clippy_lint! {
1714
/// ### What it does
1815
/// Checks for large size differences between variants on
@@ -156,7 +153,6 @@ impl<'tcx> LateLintPass<'tcx> for LargeEnumVariant {
156153
if !is_no_std_crate(cx) {
157154
diag.span_help(def.variants[variants_size[0].ind].span, help_text);
158155
}
159-
160156
},
161157
);
162158
}

tests/ui/large_enum_variant_no_std.stderr

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ LL | | Large([u8; 1024]),
1010
LL | | }
1111
| |_^ the entire enum is at least 1025 bytes
1212
|
13-
help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum
14-
--> tests/ui/large_enum_variant_no_std.rs:7:5
15-
|
16-
LL | Large([u8; 1024]),
17-
| ^^^^^^^^^^^^^^^^^
1813
= note: `-D clippy::large-enum-variant` implied by `-D warnings`
1914
= help: to override `-D warnings` add `#[allow(clippy::large_enum_variant)]`
2015

0 commit comments

Comments
 (0)