diff options
| author | naosense <pingao777@gmail.com> | 2022-11-23 16:50:05 +0800 |
|---|---|---|
| committer | naosense <pingao777@gmail.com> | 2022-11-29 15:00:51 +0800 |
| commit | 1fc98c51dfd771e5cd45c2feee0649ae299ab18b (patch) | |
| tree | a3ee70950211ba878d7694137444a7eb1efba1f7 | |
| parent | c9bf4b75cea2259ad927228c762d4cf323628ae5 (diff) | |
| download | rust-1fc98c51dfd771e5cd45c2feee0649ae299ab18b.tar.gz rust-1fc98c51dfd771e5cd45c2feee0649ae299ab18b.zip | |
change default value
| -rw-r--r-- | clippy_lints/src/utils/conf.rs | 2 | ||||
| -rw-r--r-- | tests/ui-toml/suppress_lint_in_const/clippy.toml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs index 0022044ea41..f5f0e3ef48c 100644 --- a/clippy_lints/src/utils/conf.rs +++ b/clippy_lints/src/utils/conf.rs @@ -413,7 +413,7 @@ define_Conf! { /// suggested counterparts are unavailable in constant code. This /// configuration will cause restriction lints to trigger even /// if no suggestion can be made. - (suppress_restriction_lint_in_const: bool = true), + (suppress_restriction_lint_in_const: bool = false), } /// Search for the configuration file. diff --git a/tests/ui-toml/suppress_lint_in_const/clippy.toml b/tests/ui-toml/suppress_lint_in_const/clippy.toml index d458f53a73d..d6b6fc7f268 100644 --- a/tests/ui-toml/suppress_lint_in_const/clippy.toml +++ b/tests/ui-toml/suppress_lint_in_const/clippy.toml @@ -1 +1 @@ -suppress-restriction-lint-in-const = false \ No newline at end of file +suppress-restriction-lint-in-const = false |
