]> git.lizzy.rs Git - rust.git/commitdiff
Update comment regarding crate level cfg_attr
authorPhilipp Hansch <dev@phansch.net>
Mon, 11 Feb 2019 21:32:54 +0000 (22:32 +0100)
committerPhilipp Hansch <dev@phansch.net>
Mon, 11 Feb 2019 21:32:54 +0000 (22:32 +0100)
clippy_lints/src/lib.rs

index 56c994b5c2683b82b5454b315bb3cde9903f12f9..2f114c065bb131b038ece95b293c6cb0314ea744 100644 (file)
@@ -260,8 +260,8 @@ mod reexport {
 ///
 /// Pre-expansion lints run before any macro expansion has happened.
 ///
-/// Note that due to the architechture of the compiler, currently `cfg_attr` attributes will still
-/// be expanded even when using a pre-expansion pass.
+/// Note that due to the architechture of the compiler, currently `cfg_attr` attributes on crate
+/// level (i.e `#![cfg_attr(...)]`) will still be expanded even when using a pre-expansion pass.
 ///
 /// Used in `./src/driver.rs`.
 pub fn register_pre_expansion_lints(