Print unstable option's name on warning

This commit is contained in:
Seiichi Uchida 2017-11-29 20:31:58 +09:00
parent 426ba1cdab
commit 4cb1dccb97

View File

@ -363,8 +363,8 @@ fn fill_from_parsed_config(mut self, parsed: PartialConfig) -> 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);
}
}
}