about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-02 14:53:22 +0000
committerbors <bors@rust-lang.org>2024-01-02 14:53:22 +0000
commit86e559bf3fe1403eba6c58c6a8d3d4a33de4911b (patch)
tree293e76c4e282dab35c9d283fccb4f1f7b323035e /lib
parent1a0b772a43173a3a0bd1699e0781de827d0b58db (diff)
parentefc87092b3d9e350f12b87f5e3823bc44561ba9b (diff)
downloadrust-86e559bf3fe1403eba6c58c6a8d3d4a33de4911b.tar.gz
rust-86e559bf3fe1403eba6c58c6a8d3d4a33de4911b.zip
Auto merge of #16211 - tetsuharuohzeki:update-lint, r=Veykril
Use Cargo's [workspace.lints.*] to config clippy

This change begin to use [`[workspace.lints.*]`](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table) that is stabilized since [Rust 1.74](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html).

By this change, we make the configure more readable and simplify `xargo lint` more.
Diffstat (limited to 'lib')
-rw-r--r--lib/la-arena/Cargo.toml3
-rw-r--r--lib/line-index/Cargo.toml3
-rw-r--r--lib/lsp-server/Cargo.toml3
3 files changed, 9 insertions, 0 deletions
diff --git a/lib/la-arena/Cargo.toml b/lib/la-arena/Cargo.toml
index 01f2b87b39d..589d026142b 100644
--- a/lib/la-arena/Cargo.toml
+++ b/lib/la-arena/Cargo.toml
@@ -8,3 +8,6 @@ documentation = "https://docs.rs/la-arena"
 categories = ["data-structures", "memory-management", "rust-patterns"]
 edition = "2021"
 rust-version = "1.56"
+
+[lints]
+workspace = true
diff --git a/lib/line-index/Cargo.toml b/lib/line-index/Cargo.toml
index 494a7fa979a..77e187de1ed 100644
--- a/lib/line-index/Cargo.toml
+++ b/lib/line-index/Cargo.toml
@@ -9,3 +9,6 @@ edition = "2021"
 [dependencies]
 text-size = "1.1.1"
 nohash-hasher = "0.2.0"
+
+[lints]
+workspace = true
\ No newline at end of file
diff --git a/lib/lsp-server/Cargo.toml b/lib/lsp-server/Cargo.toml
index 116b376b0b0..a89eb4b144c 100644
--- a/lib/lsp-server/Cargo.toml
+++ b/lib/lsp-server/Cargo.toml
@@ -15,3 +15,6 @@ crossbeam-channel = "0.5.8"
 [dev-dependencies]
 lsp-types = "=0.95"
 ctrlc = "3.4.1"
+
+[lints]
+workspace = true
\ No newline at end of file