Merge pull request #2205 from topecongiro/issue-2202

Print unstable option's name on warning
This commit is contained in:
Nick Cameron 2017-11-30 08:44:36 +13:00 committed by GitHub
commit 566f34f2b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,8 +363,8 @@ macro_rules! create_config {
self.$i.1 = true;
self.$i.2 = val;
} else {
println!("Warning: can't set some features as unstable \
features are only available in nightly channel.");
println!("Warning: can't set `{} = {:?}`, unstable features are only \
available in nightly channel.", stringify!($i), val);
}
}
}