]> git.lizzy.rs Git - rust.git/commit
Simplify cache selection by just using the local cache whenever there
authorNiko Matsakis <niko@alum.mit.edu>
Sat, 7 Feb 2015 00:11:50 +0000 (19:11 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Sat, 7 Feb 2015 00:11:50 +0000 (19:11 -0500)
commitacaad3ad675004c63f73e385f7d07153e0aceb4e
tree5a6c25a3094668ef4c243d3f43fec80c929e2905
parent7884eb8e2ff8f0796a95aa0216e69241934ce14f
Simplify cache selection by just using the local cache whenever there
are any where-clauses at all. This seems to be the simplest possible
rule and will (hopefully!) put an end to these annoying "cache leak"
bugs. Fixes #22019.
src/librustc/middle/traits/doc.rs
src/librustc/middle/traits/select.rs
src/test/run-pass/traits-issue-22019.rs [new file with mode: 0644]