mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 18:12:51 +00:00
Merge pull request #2205 from topecongiro/issue-2202
Print unstable option's name on warning
This commit is contained in:
commit
566f34f2b4
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user