]> git.lizzy.rs Git - rust.git/commit
erase regions instead of using `builtin_deref`
authorNicholas Matsakis <nmatsakis@psyche.localdomain>
Wed, 11 Dec 2019 18:23:07 +0000 (13:23 -0500)
committerNicholas Matsakis <nmatsakis@psyche.localdomain>
Wed, 11 Dec 2019 18:23:07 +0000 (13:23 -0500)
commit5cd9f22464a3ae2620c384094986d9549eca182e
tree83210c3fbb44b9dc7f241744a1de5f375b76de19
parentf0b51145c5006f79da8304e1fb09d6f0eb95ae1a
erase regions instead of using `builtin_deref`

The reason we were invoking `builtin_deref` was to enable comparisons
when the type was `&T`. For the reasons outlined in the comment, those
comparisons failed because the regions disagreed.
src/librustc/traits/error_reporting.rs