Skip to content

Commit

Permalink
Revert "new lints for visibility"
Browse files Browse the repository at this point in the history
This reverts commit 0e5a537.
  • Loading branch information
Centri3 committed Jun 16, 2023
1 parent 0e5a537 commit ec4e194
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 427 deletions.
3 changes: 0 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5020,7 +5020,6 @@ Released 2018-09-13
[`needless_option_take`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
[`needless_parens_on_range_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_parens_on_range_literals
[`needless_pass_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
[`needless_pub_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self
[`needless_question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
[`needless_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
[`needless_raw_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string
Expand Down Expand Up @@ -5095,8 +5094,6 @@ Released 2018-09-13
[`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
[`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
[`pub_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_use
[`pub_with_shorthand`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_with_shorthand
[`pub_without_shorthand`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_without_shorthand
[`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
[`question_mark_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark_used
[`range_minus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_minus_one
Expand Down
3 changes: 0 additions & 3 deletions clippy_lints/src/declared_lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,6 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
crate::useless_conversion::USELESS_CONVERSION_INFO,
crate::vec::USELESS_VEC_INFO,
crate::vec_init_then_push::VEC_INIT_THEN_PUSH_INFO,
crate::visibility::NEEDLESS_PUB_SELF_INFO,
crate::visibility::PUB_WITHOUT_SHORTHAND_INFO,
crate::visibility::PUB_WITH_SHORTHAND_INFO,
crate::wildcard_imports::ENUM_GLOB_USE_INFO,
crate::wildcard_imports::WILDCARD_IMPORTS_INFO,
crate::write::PRINTLN_EMPTY_STRING_INFO,
Expand Down
2 changes: 0 additions & 2 deletions clippy_lints/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ mod use_self;
mod useless_conversion;
mod vec;
mod vec_init_then_push;
mod visibility;
mod wildcard_imports;
mod write;
mod zero_div_zero;
Expand Down Expand Up @@ -1058,7 +1057,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
needless_raw_string_hashes_allow_one,
})
});
store.register_early_pass(|| Box::new(visibility::Visibility));
// add lints here, do not remove this comment, it's used in `new_lint`
}

Expand Down
127 changes: 0 additions & 127 deletions clippy_lints/src/visibility.rs

This file was deleted.

2 changes: 1 addition & 1 deletion tests/ui/manual_async_fn.fixed
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//@run-rustfix
#![warn(clippy::manual_async_fn)]
#![allow(clippy::needless_pub_self, unused)]
#![allow(unused)]

use std::future::Future;

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/manual_async_fn.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//@run-rustfix
#![warn(clippy::manual_async_fn)]
#![allow(clippy::needless_pub_self, unused)]
#![allow(unused)]

use std::future::Future;

Expand Down
33 changes: 0 additions & 33 deletions tests/ui/needless_pub_self.fixed

This file was deleted.

33 changes: 0 additions & 33 deletions tests/ui/needless_pub_self.rs

This file was deleted.

22 changes: 0 additions & 22 deletions tests/ui/needless_pub_self.stderr

This file was deleted.

38 changes: 0 additions & 38 deletions tests/ui/pub_with_shorthand.fixed

This file was deleted.

38 changes: 0 additions & 38 deletions tests/ui/pub_with_shorthand.rs

This file was deleted.

28 changes: 0 additions & 28 deletions tests/ui/pub_with_shorthand.stderr

This file was deleted.

Loading

0 comments on commit ec4e194

Please sign in to comment.