about summary refs log tree commit diff
diff options
context:
space:
mode:
authordaxpedda <daxpedda@gmail.com>2021-02-06 17:38:14 +0100
committerdaxpedda <daxpedda@gmail.com>2021-02-06 17:39:18 +0100
commitf2391a5569a468e5c73cce3b312bb47b655da9d4 (patch)
treeec1c5074198c171778858fc3658f522b712c84cc
parent8805931ce35eeebb9c27c3efdf90245afecef20c (diff)
downloadrust-f2391a5569a468e5c73cce3b312bb47b655da9d4.tar.gz
rust-f2391a5569a468e5c73cce3b312bb47b655da9d4.zip
Change clippy configuration option.
-rw-r--r--clippy_lints/src/lib.rs2
-rw-r--r--clippy_lints/src/utils/conf.rs2
-rw-r--r--tests/ui-cargo/cargo_common_metadata/pass/clippy.toml2
3 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs
index e8e8229915b..122523b0528 100644
--- a/clippy_lints/src/lib.rs
+++ b/clippy_lints/src/lib.rs
@@ -1180,7 +1180,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
     store.register_early_pass(|| box redundant_else::RedundantElse);
     store.register_late_pass(|| box create_dir::CreateDir);
     store.register_early_pass(|| box needless_arbitrary_self_type::NeedlessArbitrarySelfType);
-    let cargo_ignore_publish = conf._cargo_ignore_publish;
+    let cargo_ignore_publish = conf.cargo_ignore_publish;
     store.register_late_pass(move || box cargo_common_metadata::CargoCommonMetadata::new(cargo_ignore_publish));
     store.register_late_pass(|| box multiple_crate_versions::MultipleCrateVersions);
     store.register_late_pass(|| box wildcard_dependencies::WildcardDependencies);
diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs
index e8a4236eeaa..b4498d13a24 100644
--- a/clippy_lints/src/utils/conf.rs
+++ b/clippy_lints/src/utils/conf.rs
@@ -174,7 +174,7 @@ define_Conf! {
     /// Lint: UNREADABLE_LITERAL. Should the fraction of a decimal be linted to include separators.
     (unreadable_literal_lint_fractions, "unreadable_literal_lint_fractions": bool, true),
     /// Lint: _CARGO_COMMON_METADATA. For internal testing only, ignores the current `publish` settings in the Cargo manifest.
-    (_cargo_ignore_publish, "_cargo_ignore_publish": bool, false),
+    (cargo_ignore_publish, "cargo_ignore_publish": bool, false),
 }
 
 impl Default for Conf {
diff --git a/tests/ui-cargo/cargo_common_metadata/pass/clippy.toml b/tests/ui-cargo/cargo_common_metadata/pass/clippy.toml
index 866c4f3c35e..de4f04b24fc 100644
--- a/tests/ui-cargo/cargo_common_metadata/pass/clippy.toml
+++ b/tests/ui-cargo/cargo_common_metadata/pass/clippy.toml
@@ -1 +1 @@
-_cargo_ignore_publish = true
+cargo-ignore-publish = true