Ignore unstable key when overriding config

This commit is contained in:
Ruben Schmidmeister 2019-05-13 09:40:16 +02:00
parent 4ac0d35ebb
commit 3eb8e4d33c
No known key found for this signature in database
GPG Key ID: 29387B5A7AAF863F
4 changed files with 3 additions and 2 deletions

View File

@ -500,7 +500,7 @@ fn read_config(filename: &Path) -> Config {
};
for (key, val) in &sig_comments {
if key != "target" && key != "config" {
if key != "target" && key != "config" && key != "unstable" {
config.override_value(key, val);
if config.is_default(key) {
warn!("Default value {} used explicitly for {}", val, key);

View File

@ -1 +0,0 @@
normalize_doc_attributes = true

View File

@ -1,4 +1,5 @@
// rustfmt-unstable: true
// rustfmt-normalize_doc_attributes: true
#[doc = "This comment
is split

View File

@ -1,4 +1,5 @@
// rustfmt-unstable: true
// rustfmt-normalize_doc_attributes: true
///This comment
///is split