about summary refs log tree commit diff
path: root/clippy_dev
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2024-01-25 19:17:36 +0100
committerPhilipp Krones <hello@philkrones.com>2024-01-25 19:17:36 +0100
commit798865c593b8ad255ed1e19ee2502c8d91f16c65 (patch)
tree45a86a528d2ea8bed8b4c82f4a6d0ad108e67f5e /clippy_dev
parent0b6cf3b78c9602798b132ea4a420ea51fe3aa795 (diff)
downloadrust-798865c593b8ad255ed1e19ee2502c8d91f16c65.tar.gz
rust-798865c593b8ad255ed1e19ee2502c8d91f16c65.zip
Merge commit '66c29b973b3b10278bd39f4e26b08522a379c2c9' into clippy-subtree-update
Diffstat (limited to 'clippy_dev')
-rw-r--r--clippy_dev/Cargo.toml4
-rw-r--r--clippy_dev/src/update_lints.rs3
2 files changed, 3 insertions, 4 deletions
diff --git a/clippy_dev/Cargo.toml b/clippy_dev/Cargo.toml
index ce738e3f4ec..5ec67554e7d 100644
--- a/clippy_dev/Cargo.toml
+++ b/clippy_dev/Cargo.toml
@@ -4,11 +4,11 @@ version = "0.0.1"
 edition = "2021"
 
 [dependencies]
-aho-corasick = "0.7"
+aho-corasick = "1.0"
 clap = "4.1.4"
 indoc = "1.0"
 itertools = "0.11"
-opener = "0.5"
+opener = "0.6"
 shell-escape = "0.1"
 walkdir = "2.3"
 
diff --git a/clippy_dev/src/update_lints.rs b/clippy_dev/src/update_lints.rs
index 6b76a44debf..9a357466923 100644
--- a/clippy_dev/src/update_lints.rs
+++ b/clippy_dev/src/update_lints.rs
@@ -504,9 +504,8 @@ fn replace_ident_like(contents: &str, replacements: &[(&str, &str)]) -> Option<S
     }
 
     let searcher = AhoCorasickBuilder::new()
-        .dfa(true)
         .match_kind(aho_corasick::MatchKind::LeftmostLongest)
-        .build_with_size::<u16, _, _>(replacements.iter().map(|&(x, _)| x.as_bytes()))
+        .build(replacements.iter().map(|&(x, _)| x.as_bytes()))
         .unwrap();
 
     let mut result = String::with_capacity(contents.len() + 1024);