Skip to content

Commit f4c2ac4

Browse files
committed
Remove inline rust_2018_idioms, unused_lifetimes lint warn, Cargo.toml already enforces this
1 parent 8c526ee commit f4c2ac4

File tree

35 files changed

+3
-58
lines changed

35 files changed

+3
-58
lines changed

src/tools/rust-analyzer/crates/base-db/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! base_db defines basic database traits. The concrete DB is defined by ide.
22
3-
#![warn(rust_2018_idioms, unused_lifetimes)]
4-
53
mod change;
64
mod input;
75

src/tools/rust-analyzer/crates/cfg/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! cfg defines conditional compiling options, `cfg` attribute parser and evaluator
22
3-
#![warn(rust_2018_idioms, unused_lifetimes)]
4-
53
mod cfg_expr;
64
mod dnf;
75
#[cfg(test)]

src/tools/rust-analyzer/crates/flycheck/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// addition to `cargo check`. Either split it into 3 crates (one for test, one for check
77
// and one common utilities) or change its name and docs to reflect the current state.
88

9-
#![warn(rust_2018_idioms, unused_lifetimes)]
10-
119
use std::{fmt, io, process::Command, time::Duration};
1210

1311
use crossbeam_channel::{never, select, unbounded, Receiver, Sender};

src/tools/rust-analyzer/crates/hir-def/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//! Note that `hir_def` is a work in progress, so not all of the above is
88
//! actually true.
99
10-
#![warn(rust_2018_idioms, unused_lifetimes)]
1110
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
1211

1312
#[cfg(feature = "in-rust-tree")]

src/tools/rust-analyzer/crates/hir-expand/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//! tree originates not from the text of some `FileId`, but from some macro
55
//! expansion.
66
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
7-
#![warn(rust_2018_idioms, unused_lifetimes)]
87

98
pub mod attrs;
109
pub mod builtin_attr_macro;

src/tools/rust-analyzer/crates/hir-ty/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! The type system. We currently use this to infer types for completion, hover
22
//! information and various assists.
3-
#![warn(rust_2018_idioms, unused_lifetimes)]
3+
44
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
55

66
#[cfg(feature = "in-rust-tree")]

src/tools/rust-analyzer/crates/hir/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
//! from the ide with completions, hovers, etc. It is a (soft, internal) boundary:
1818
//! <https://www.tedinski.com/2018/02/06/system-boundaries.html>.
1919
20-
#![warn(rust_2018_idioms, unused_lifetimes)]
2120
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
2221
#![recursion_limit = "512"]
2322

src/tools/rust-analyzer/crates/ide-assists/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
//! See also this post:
5959
//! <https://rust-analyzer.github.io/blog/2020/09/28/how-to-make-a-light-bulb.html>
6060
61-
#![warn(rust_2018_idioms, unused_lifetimes)]
62-
6361
mod assist_config;
6462
mod assist_context;
6563
#[cfg(test)]

src/tools/rust-analyzer/crates/ide-completion/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! `completions` crate provides utilities for generating completions of user input.
22
3-
#![warn(rust_2018_idioms, unused_lifetimes)]
4-
53
mod completions;
64
mod config;
75
mod context;

src/tools/rust-analyzer/crates/ide-db/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//!
33
//! It is mainly a `HirDatabase` for semantic analysis, plus a `SymbolsDatabase`, for fuzzy search.
44
5-
#![warn(rust_2018_idioms, unused_lifetimes)]
6-
75
mod apply_change;
86

97
pub mod active_parameter;

0 commit comments

Comments
 (0)