Skip to content

Commit ec4e194

Browse files
committed
Revert "new lints for visibility"
This reverts commit 0e5a537.
1 parent 0e5a537 commit ec4e194

15 files changed

+2
-427
lines changed

CHANGELOG.md

-3
Original file line numberDiff line numberDiff line change
@@ -5020,7 +5020,6 @@ Released 2018-09-13
50205020
[`needless_option_take`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
50215021
[`needless_parens_on_range_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_parens_on_range_literals
50225022
[`needless_pass_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
5023-
[`needless_pub_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self
50245023
[`needless_question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
50255024
[`needless_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
50265025
[`needless_raw_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string
@@ -5095,8 +5094,6 @@ Released 2018-09-13
50955094
[`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
50965095
[`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
50975096
[`pub_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_use
5098-
[`pub_with_shorthand`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_with_shorthand
5099-
[`pub_without_shorthand`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_without_shorthand
51005097
[`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
51015098
[`question_mark_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark_used
51025099
[`range_minus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_minus_one

clippy_lints/src/declared_lints.rs

-3
Original file line numberDiff line numberDiff line change
@@ -664,9 +664,6 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
664664
crate::useless_conversion::USELESS_CONVERSION_INFO,
665665
crate::vec::USELESS_VEC_INFO,
666666
crate::vec_init_then_push::VEC_INIT_THEN_PUSH_INFO,
667-
crate::visibility::NEEDLESS_PUB_SELF_INFO,
668-
crate::visibility::PUB_WITHOUT_SHORTHAND_INFO,
669-
crate::visibility::PUB_WITH_SHORTHAND_INFO,
670667
crate::wildcard_imports::ENUM_GLOB_USE_INFO,
671668
crate::wildcard_imports::WILDCARD_IMPORTS_INFO,
672669
crate::write::PRINTLN_EMPTY_STRING_INFO,

clippy_lints/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ mod use_self;
337337
mod useless_conversion;
338338
mod vec;
339339
mod vec_init_then_push;
340-
mod visibility;
341340
mod wildcard_imports;
342341
mod write;
343342
mod zero_div_zero;
@@ -1058,7 +1057,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10581057
needless_raw_string_hashes_allow_one,
10591058
})
10601059
});
1061-
store.register_early_pass(|| Box::new(visibility::Visibility));
10621060
// add lints here, do not remove this comment, it's used in `new_lint`
10631061
}
10641062

clippy_lints/src/visibility.rs

-127
This file was deleted.

tests/ui/manual_async_fn.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@run-rustfix
22
#![warn(clippy::manual_async_fn)]
3-
#![allow(clippy::needless_pub_self, unused)]
3+
#![allow(unused)]
44

55
use std::future::Future;
66

tests/ui/manual_async_fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@run-rustfix
22
#![warn(clippy::manual_async_fn)]
3-
#![allow(clippy::needless_pub_self, unused)]
3+
#![allow(unused)]
44

55
use std::future::Future;
66

tests/ui/needless_pub_self.fixed

-33
This file was deleted.

tests/ui/needless_pub_self.rs

-33
This file was deleted.

tests/ui/needless_pub_self.stderr

-22
This file was deleted.

tests/ui/pub_with_shorthand.fixed

-38
This file was deleted.

tests/ui/pub_with_shorthand.rs

-38
This file was deleted.

tests/ui/pub_with_shorthand.stderr

-28
This file was deleted.

0 commit comments

Comments
 (0)