]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/module_inception.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / module_inception.rs
index 77bd446c569c45d80621e5e601e4462e68448c9b..730055931c4a618fd37ad716dacdd58eb2e7c79b 100644 (file)
@@ -1,6 +1,13 @@
+// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
 
-
-#![warn(module_inception)]
+#![warn(clippy::module_inception)]
 
 mod foo {
     mod bar {
@@ -14,11 +21,10 @@ mod bar {}
     }
 }
 
-// No warning. See <https://github.com/rust-lang-nursery/rust-clippy/issues/1220>.
+// No warning. See <https://github.com/rust-lang/rust-clippy/issues/1220>.
 mod bar {
-    #[allow(module_inception)]
-    mod bar {
-    }
+    #[allow(clippy::module_inception)]
+    mod bar {}
 }
 
 fn main() {}