diff options
| author | bors <bors@rust-lang.org> | 2023-06-10 13:21:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-10 13:21:48 +0000 |
| commit | e986b6444ef7e3f9d5bb59785e697d747034b2ec (patch) | |
| tree | 4bae14757af34c60239eef3bb2f4c2583adfbf31 /clippy_lints/src/lib.rs | |
| parent | 9011c4d248cf7db69cf3ae24e1fbf233f526cfce (diff) | |
| parent | b303e2053cc0629c58419b80d9655027f06f255e (diff) | |
Auto merge of #10917 - Centri3:module_inception, r=xFrednet
allow disabling module inception on private modules Fixes #10842 changelog: Enhancement [`module_inception`]: Added `allow-private-module-inception` configuration. [#10917](https://github.com/rust-lang/rust-clippy/pull/10917) <!-- changelog_checked -->
Diffstat (limited to 'clippy_lints/src/lib.rs')
| -rw-r--r-- | clippy_lints/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 22ff5ef5859..8e42bfe7add 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -822,10 +822,12 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf: )) }); let enum_variant_name_threshold = conf.enum_variant_name_threshold; + let allow_private_module_inception = conf.allow_private_module_inception; store.register_late_pass(move |_| { Box::new(enum_variants::EnumVariantNames::new( enum_variant_name_threshold, avoid_breaking_exported_api, + allow_private_module_inception, )) }); store.register_early_pass(|| Box::new(tabs_in_doc_comments::TabsInDocComments)); |
