]> git.lizzy.rs Git - rust.git/commitdiff
Run cargo dev fmt
authornahuakang <kangnahua@gmail.com>
Mon, 4 Jan 2021 17:41:42 +0000 (18:41 +0100)
committernahuakang <kangnahua@gmail.com>
Mon, 4 Jan 2021 17:41:42 +0000 (18:41 +0100)
clippy_lints/src/empty_enum.rs
tests/ui/empty_enum_without_never_type.rs

index 4533d6447a770c81a75cc6eb8d4d845fe5fd1fd1..853b3afdc3ae2a0016e5c9da909c08b35cd2c400 100644 (file)
@@ -13,7 +13,7 @@
     /// if the `never_type` is enabled.
     ///
     /// **Why is this bad?** If you want to introduce a type which
-    /// can't be instantiated, you should use `!` (the primitive type never),
+    /// can't be instantiated, you should use `!` (the primitive type "never"),
     /// or a wrapper around it, because `!` has more extensive
     /// compiler support (type inference, etc...) and wrappers
     /// around it are the conventional way to define an uninhabited type.
index 4cbdfc47910f0afe6823fb7d55f81e5b13a8081f..386677352e29be18d9b0876af6f3c89e10097091 100644 (file)
@@ -4,4 +4,4 @@
 // `never_type` is not enabled; this test has no stderr file
 enum Empty {}
 
-fn main() {}
\ No newline at end of file
+fn main() {}