Skip to content

Commit 85a3e9a

Browse files
committed
lint: move module-level doc comment to top
1 parent 437942e commit 85a3e9a

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

src/cargo/lib.rs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
// For various reasons, some idioms are still allow'ed, but we would like to
2-
// test and enforce them.
3-
#![warn(rust_2018_idioms)]
4-
// Due to some of the default clippy lints being somewhat subjective and not
5-
// necessarily an improvement, we prefer to not use them at this time.
6-
#![allow(clippy::all)]
7-
#![warn(clippy::disallowed_methods)]
8-
#![warn(clippy::self_named_module_files)]
9-
#![warn(clippy::print_stdout)]
10-
#![warn(clippy::print_stderr)]
11-
#![warn(clippy::dbg_macro)]
12-
#![allow(rustdoc::private_intra_doc_links)]
13-
141
//! # Cargo as a library
152
//!
163
//! There are two places you can find API documentation of cargo-the-library,
@@ -144,6 +131,20 @@
144131
//! [The Cargo Book]: https://doc.rust-lang.org/cargo/
145132
//! [Cargo Contributor Guide]: https://doc.crates.io/contrib/
146133
134+
// TODO: consider removing these lint attributes when `-Zlints` hits stable.
135+
// For various reasons, some idioms are still allow'ed, but we would like to
136+
// test and enforce them.
137+
#![warn(rust_2018_idioms)]
138+
// Due to some of the default clippy lints being somewhat subjective and not
139+
// necessarily an improvement, we prefer to not use them at this time.
140+
#![allow(clippy::all)]
141+
#![warn(clippy::disallowed_methods)]
142+
#![warn(clippy::self_named_module_files)]
143+
#![warn(clippy::print_stdout)]
144+
#![warn(clippy::print_stderr)]
145+
#![warn(clippy::dbg_macro)]
146+
#![allow(rustdoc::private_intra_doc_links)]
147+
147148
use crate::core::shell::Verbosity::Verbose;
148149
use crate::core::Shell;
149150
use anyhow::Error;

0 commit comments

Comments
 (0)