Skip to content

Commit 3f0f0dc

Browse files
author
Ype Kingma
committed
Updated to master, resolved a minor conflict, fixed a typo
1 parent 680256f commit 3f0f0dc

9 files changed

+883
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5297,6 +5297,7 @@ Released 2018-09-13
52975297
[`explicit_deref_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_deref_methods
52985298
[`explicit_into_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_into_iter_loop
52995299
[`explicit_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop
5300+
[`explicit_lifetimes_bound_nested_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_lifetimes_bound_nested_ref
53005301
[`explicit_write`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_write
53015302
[`extend_from_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_from_slice
53025303
[`extend_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_with_drain
@@ -5357,6 +5358,7 @@ Released 2018-09-13
53575358
[`impl_trait_in_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#impl_trait_in_params
53585359
[`implicit_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone
53595360
[`implicit_hasher`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
5361+
[`implicit_lifetimes_bound_nested_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_lifetimes_bound_nested_ref
53605362
[`implicit_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return
53615363
[`implicit_saturating_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_add
53625364
[`implicit_saturating_sub`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub

clippy_lints/src/declared_lints.rs

+2
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
268268
crate::let_with_type_underscore::LET_WITH_TYPE_UNDERSCORE_INFO,
269269
crate::lifetimes::EXTRA_UNUSED_LIFETIMES_INFO,
270270
crate::lifetimes::NEEDLESS_LIFETIMES_INFO,
271+
crate::lifetimes_bound_nested_ref::IMPLICIT_LIFETIMES_BOUND_INFO,
272+
crate::lifetimes_bound_nested_ref::EXPLICIT_LIFETIMES_BOUND_INFO,
271273
crate::lines_filter_map_ok::LINES_FILTER_MAP_OK_INFO,
272274
crate::literal_representation::DECIMAL_LITERAL_REPRESENTATION_INFO,
273275
crate::literal_representation::INCONSISTENT_DIGIT_GROUPING_INFO,

clippy_lints/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ mod let_if_seq;
191191
mod let_underscore;
192192
mod let_with_type_underscore;
193193
mod lifetimes;
194+
mod lifetimes_bound_nested_ref;
194195
mod lines_filter_map_ok;
195196
mod literal_representation;
196197
mod loops;
@@ -1158,6 +1159,7 @@ pub fn register_lints(store: &mut rustc_lint::LintStore, conf: &'static Conf) {
11581159
store.register_late_pass(move |_| Box::new(assigning_clones::AssigningClones::new(msrv())));
11591160
store.register_late_pass(|_| Box::new(zero_repeat_side_effects::ZeroRepeatSideEffects));
11601161
store.register_late_pass(|_| Box::new(manual_unwrap_or_default::ManualUnwrapOrDefault));
1162+
store.register_early_pass(|| Box::new(lifetimes_bound_nested_ref::LifetimesBoundNestedRef));
11611163
store.register_late_pass(|_| Box::new(integer_division_remainder_used::IntegerDivisionRemainderUsed));
11621164
store.register_late_pass(move |_| {
11631165
Box::new(macro_metavars_in_unsafe::ExprMetavarsInUnsafe {

0 commit comments

Comments
 (0)