|
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 |
| - |
14 | 1 | //! # Cargo as a library
|
15 | 2 | //!
|
16 | 3 | //! There are two places you can find API documentation of cargo-the-library,
|
|
144 | 131 | //! [The Cargo Book]: https://doc.rust-lang.org/cargo/
|
145 | 132 | //! [Cargo Contributor Guide]: https://doc.crates.io/contrib/
|
146 | 133 |
|
| 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 | + |
147 | 148 | use crate::core::shell::Verbosity::Verbose;
|
148 | 149 | use crate::core::Shell;
|
149 | 150 | use anyhow::Error;
|
|
0 commit comments