78013f296a
Once this anonymization has performed, we have no
way of recovering the original names during NLL
borrow checking. Keeping the original names allows
error messages in full NLL mode to contain the original
bound region names.
As a result, the typeck results may contain types that
differ only in the names used for their bound regions. However,
anonimization of bound regions does not guarantee that
all distinct types are unqual (e.g. not subtypes of each other).
For example, `for<'a> fn(&'a u32, &'a u32)` and
`for<'b, 'c> fn(&'b u32, &'c u32)` are subtypes of each other,
as explained here:
|
||
---|---|---|
.. | ||
old-lub-glb-hr-eq.rs | ||
old-lub-glb-hr-noteq1.nll.stderr | ||
old-lub-glb-hr-noteq1.rs | ||
old-lub-glb-hr-noteq1.stderr | ||
old-lub-glb-hr-noteq2.rs | ||
old-lub-glb-hr-noteq2.stderr | ||
old-lub-glb-object.nll.stderr | ||
old-lub-glb-object.rs | ||
old-lub-glb-object.stderr |