Formatting and naming

This commit is contained in:
Philipp Krones
2020-04-19 20:38:07 +02:00
committed by GitHub
parent d7f1a1ed2b
commit 41115d994a
5 changed files with 38 additions and 35 deletions

View File

@@ -50,7 +50,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EmptyEnum {
EMPTY_ENUM,
item.span,
"enum with no variants",
Some(item.span),
None,
"consider using the uninhabited type `!` (never type) or a wrapper \
around it to introduce a type which can't be instantiated",
);