lazily calls some fns
This commit is contained in:
parent
e423058751
commit
229d199994
7 changed files with 14 additions and 13 deletions
|
@ -157,7 +157,7 @@ impl OutlivesSuggestionBuilder {
|
|||
debug!("Collected {:?}: {:?}", fr, outlived_fr);
|
||||
|
||||
// Add to set of constraints for final help note.
|
||||
self.constraints_to_add.entry(fr).or_insert(Vec::new()).push(outlived_fr);
|
||||
self.constraints_to_add.entry(fr).or_default().push(outlived_fr);
|
||||
}
|
||||
|
||||
/// Emit an intermediate note on the given `Diagnostic` if the involved regions are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue