Skip to content

Commit 11d7080

Browse files
committed
m1
1 parent 5745868 commit 11d7080

File tree

150 files changed

+116
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+116
-30
lines changed

clippy_lints/src/ineffective_open_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::methods::method_call;
1+
use super::method_call;
22
use clippy_utils::diagnostics::span_lint_and_sugg;
33
use clippy_utils::peel_blocks;
44
use declare_clippy_lint::declare_clippy_lint;

clippy_lints/src/methods/chars_next_cmp.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

clippy_lints/src/methods/chars_next_cmp_with_unwrap.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

clippy_lints_methods/Cargo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[package]
2+
name = "clippy_lints_methods"
3+
version = "0.1.89"
4+
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
5+
repository = "https://github.com/rust-lang/rust-clippy"
6+
readme = "../README.md"
7+
license = "MIT OR Apache-2.0"
8+
keywords = ["clippy", "lint", "plugin"]
9+
edition = "2024"
10+
11+
[dependencies]
12+
# arrayvec = { version = "0.7", default-features = false }
13+
# cargo_metadata = "0.18"
14+
clippy_config = { path = "../clippy_config" }
15+
clippy_utils = { path = "../clippy_utils" }
16+
# itertools = "0.12"
17+
# quine-mc_cluskey = "0.2"
18+
# regex-syntax = "0.8"
19+
# serde = { version = "1.0", features = ["derive"] }
20+
# toml = "0.7.3"
21+
# unicode-normalization = "0.1"
22+
# unicode-script = { version = "0.5", default-features = false }
23+
# semver = "1.0"
24+
# url = "2.2"
25+
26+
[package.metadata.rust-analyzer]
27+
# This crate uses #[feature(rustc_private)]
28+
rustc_private = true
File renamed without changes.
File renamed without changes.
File renamed without changes.

clippy_lints/src/methods/bytes_nth.rs renamed to clippy_lints_methods/src/bytes_nth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustc_errors::Applicability;
55
use rustc_hir::{Expr, LangItem};
66
use rustc_lint::LateContext;
77

8-
use crate::methods::method_call;
8+
use super::method_call;
99

1010
use super::BYTES_NTH;
1111

File renamed without changes.

clippy_lints/src/methods/chars_cmp.rs renamed to clippy_lints_methods/src/chars_cmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rustc_middle::ty;
99
/// Wrapper fn for `CHARS_NEXT_CMP` and `CHARS_LAST_CMP` lints.
1010
pub(super) fn check(
1111
cx: &LateContext<'_>,
12-
info: &crate::methods::BinaryExprInfo<'_>,
12+
info: &super::BinaryExprInfo<'_>,
1313
chain_methods: &[&str],
1414
lint: &'static Lint,
1515
suggest: &str,

0 commit comments

Comments
 (0)