Don't emit an error about failing to produce a file with a specific name
If user never gave an explicit name
This commit is contained in:
parent
03994e498d
commit
bf12aa49e7
3 changed files with 29 additions and 1 deletions
|
@ -557,6 +557,11 @@ impl OutputTypes {
|
|||
self.0.contains_key(key)
|
||||
}
|
||||
|
||||
/// Returns `true` if user specified a name and not just produced type
|
||||
pub fn contains_explicit_name(&self, key: &OutputType) -> bool {
|
||||
self.0.get(key).map_or(false, |f| f.is_some())
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> BTreeMapIter<'_, OutputType, Option<OutFileName>> {
|
||||
self.0.iter()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue