Remove Partial/Ord
from BoundRegion
This commit is contained in:
parent
e87d10846e
commit
459ea32a27
6 changed files with 20 additions and 20 deletions
|
@ -1074,7 +1074,8 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
let (sig, reg) = ty::print::FmtPrinter::new(self.tcx, Namespace::TypeNS)
|
||||
.name_all_regions(sig)
|
||||
.unwrap();
|
||||
let lts: Vec<String> = reg.into_values().map(|kind| kind.to_string()).collect();
|
||||
let lts: Vec<String> =
|
||||
reg.into_items().map(|(_, kind)| kind.to_string()).into_sorted_stable_ord();
|
||||
(if lts.is_empty() { String::new() } else { format!("for<{}> ", lts.join(", ")) }, sig)
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue