]> git.lizzy.rs Git - rust.git/commit
Search for incompatible universes in borrow errors
authorMatthew Jasper <mjjasper1@gmail.com>
Fri, 26 Apr 2019 21:14:52 +0000 (22:14 +0100)
committerMatthew Jasper <mjjasper1@gmail.com>
Fri, 26 Apr 2019 21:14:52 +0000 (22:14 +0100)
commita962274903e7947c5847dbaffbe6c554748e29b9
treef934e817a84f6db068cf1e1b00fe8365440951a0
parent597f432489f12a3f33419daa039ccef11a12c4fd
Search for incompatible universes in borrow errors

If we have a borrow that has to live for `'static` we need to check for
any regions in incompatible universes when trying to find the cause.
src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs
src/test/ui/nll/local-outlives-static-via-hrtb.rs [new file with mode: 0644]
src/test/ui/nll/local-outlives-static-via-hrtb.stderr [new file with mode: 0644]