]> git.lizzy.rs Git - rust.git/commit
Fix #48276
authorbobtwinkles <srkoser+github@gmail.com>
Thu, 22 Feb 2018 02:38:10 +0000 (21:38 -0500)
committerbobtwinkles <srkoser+github@gmail.com>
Mon, 5 Mar 2018 07:47:08 +0000 (02:47 -0500)
commit264c2013eb25f929135a5f4fc8b20b3baeae2af1
treee22bca351b0585a4a6a462c2ed9c0085f689afcc
parente2746d870017c869b84fc56ecd63f5e4f9646c96
Fix #48276

The ExplicitSelf::determine function expects to be able to compare regions.
However, when the compare_self_type error reporting code runs we haven't
resolved bound regions yet. Thus we replace them with free regions first.
src/librustc_typeck/check/compare_method.rs
src/test/ui/issue-48276.rs [new file with mode: 0644]
src/test/ui/issue-48276.stderr [new file with mode: 0644]