1
Fork 0

Rename region_should_not_be_omitted to should_print_region

to avoid double negation
This commit is contained in:
Tomasz Miąsko 2022-02-22 00:00:00 +00:00
parent bafe8d06e0
commit 1113cd5bbe
3 changed files with 6 additions and 6 deletions

View file

@ -149,7 +149,7 @@ impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx> {
}
impl<'tcx> PrettyPrinter<'tcx> for AbsolutePathPrinter<'tcx> {
fn region_should_not_be_omitted(&self, _region: ty::Region<'_>) -> bool {
fn should_print_region(&self, _region: ty::Region<'_>) -> bool {
false
}
fn comma_sep<T>(mut self, mut elems: impl Iterator<Item = T>) -> Result<Self, Self::Error>