]> git.lizzy.rs Git - rust.git/commit
warn for where/return-types that reference regions
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 22 Mar 2016 10:37:12 +0000 (06:37 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 18 May 2016 00:25:18 +0000 (20:25 -0400)
commitccfb74e800eff83f316f55ecae337569d7e83ee4
tree36722ea65bec3d6f97ba4e23effdd7515d91bcff
parent97ca8d799c2b6e6a4ce1b55b7d6e28526d3f23d5
warn for where/return-types that reference regions

This is a step towards fixing #32330. The full fix would be a breaking
change, so we begin by issuing warnings for scenarios that will break.
src/librustc/lint/builtin.rs
src/librustc/ty/fold.rs
src/librustc_lint/lib.rs
src/librustc_typeck/astconv.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/collect.rs
src/test/compile-fail/associated-types-eq-hr.rs
src/test/compile-fail/associated-types/bound-lifetime-constrained.rs [new file with mode: 0644]
src/test/compile-fail/associated-types/bound-lifetime-in-binding-only.rs [new file with mode: 0644]
src/test/compile-fail/associated-types/bound-lifetime-in-return-only.rs [new file with mode: 0644]