Accumulate all values of -C remark
option
When `-C remark=...` option is specified multiple times, accumulate all values instead of using only the last one.
This commit is contained in:
parent
9981e56d3b
commit
e74e39a699
3 changed files with 19 additions and 3 deletions
|
@ -833,6 +833,13 @@ impl Passes {
|
|||
Passes::All => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn extend(&mut self, passes: impl IntoIterator<Item = String>) {
|
||||
match *self {
|
||||
Passes::Some(ref mut v) => v.extend(passes),
|
||||
Passes::All => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub const fn default_lib_output() -> CrateType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue