Skip to content

Commit a7224c9

Browse files
committed
Don't explicitly warn against semicolon_in_expressions_from_macros
This has been warn-by-default for two years now and has already been added to the future-incompat lints in 1.68.
1 parent 2d66f6d commit a7224c9

File tree

38 files changed

+38
-38
lines changed

38 files changed

+38
-38
lines changed

crates/base-db/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! base_db defines basic database traits. The concrete DB is defined by ide.
22
3-
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
3+
#![warn(rust_2018_idioms, unused_lifetimes)]
44

55
mod input;
66
mod change;

crates/cfg/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! cfg defines conditional compiling options, `cfg` attribute parser and evaluator
22
3-
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
3+
#![warn(rust_2018_idioms, unused_lifetimes)]
44

55
mod cfg_expr;
66
mod dnf;

crates/flycheck/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! another compatible command (f.x. clippy) in a background thread and provide
33
//! LSP diagnostics based on the output of the command.
44
5-
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
5+
#![warn(rust_2018_idioms, unused_lifetimes)]
66

77
use std::{
88
ffi::OsString,

crates/hir-def/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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, semicolon_in_expressions_from_macros)]
10+
#![warn(rust_2018_idioms, unused_lifetimes)]
1111
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
1212

1313
#[allow(unused)]

crates/hir-expand/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! tree originates not from the text of some `FileId`, but from some macro
55
//! expansion.
66
7-
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
7+
#![warn(rust_2018_idioms, unused_lifetimes)]
88

99
pub mod db;
1010
pub mod ast_id_map;

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, semicolon_in_expressions_from_macros)]
3+
#![warn(rust_2018_idioms, unused_lifetimes)]
44
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
55

66
#[allow(unused)]

crates/hir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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, semicolon_in_expressions_from_macros)]
20+
#![warn(rust_2018_idioms, unused_lifetimes)]
2121
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
2222
#![recursion_limit = "512"]
2323

crates/ide-assists/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
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, semicolon_in_expressions_from_macros)]
61+
#![warn(rust_2018_idioms, unused_lifetimes)]
6262

6363
#[allow(unused)]
6464
macro_rules! eprintln {

crates/ide-completion/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! `completions` crate provides utilities for generating completions of user input.
22
3-
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
3+
#![warn(rust_2018_idioms, unused_lifetimes)]
44

55
mod completions;
66
mod config;

crates/ide-db/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! It is mainly a `HirDatabase` for semantic analysis, plus a `SymbolsDatabase`, for fuzzy search.
44
5-
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
5+
#![warn(rust_2018_idioms, unused_lifetimes)]
66

77
mod apply_change;
88

0 commit comments

Comments
 (0)