]> git.lizzy.rs Git - rust.git/commit
Fix DeBruijn accounting. It used to be that all trait-refs were binders,
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 13 Jan 2015 19:00:59 +0000 (14:00 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 14 Jan 2015 21:35:14 +0000 (16:35 -0500)
commit02aacaba8f7584ee334303840ad88fcd513e3f13
tree8d4f2e1c2d915f50802bbd8f76d14c7989e9a175
parente94a9f033eb79b3b4fb037722366644650e8e16c
Fix DeBruijn accounting. It used to be that all trait-refs were binders,
but now only poly-trait-refs are binders. Fixes #20831.
src/librustc_typeck/astconv.rs
src/test/compile-fail/issue-20831-debruijn.rs [new file with mode: 0644]
src/test/run-pass/regions-debruijn-of-object.rs [new file with mode: 0644]