Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 3eb8e4d

Browse files
author
Ruben Schmidmeister
committed
Ignore unstable key when overriding config
1 parent 4ac0d35 commit 3eb8e4d

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

src/test/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ fn read_config(filename: &Path) -> Config {
500500
};
501501

502502
for (key, val) in &sig_comments {
503-
if key != "target" && key != "config" {
503+
if key != "target" && key != "config" && key != "unstable" {
504504
config.override_value(key, val);
505505
if config.is_default(key) {
506506
warn!("Default value {} used explicitly for {}", val, key);

tests/config/normalize_multiline_doc_attribute.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/source/normalize_multiline_doc_attribute.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// rustfmt-unstable: true
2+
// rustfmt-normalize_doc_attributes: true
23

34
#[doc = "This comment
45
is split

tests/target/normalize_multiline_doc_attribute.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// rustfmt-unstable: true
2+
// rustfmt-normalize_doc_attributes: true
23

34
///This comment
45
///is split

0 commit comments

Comments
 (0)