]> git.proxmox.com Git - cargo.git/commit
Fix caching features across backtracking
authorAlex Crichton <alex@alexcrichton.com>
Mon, 14 Mar 2016 22:45:05 +0000 (15:45 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 16 Mar 2016 21:20:52 +0000 (14:20 -0700)
commite3b7f2f57d13e6626b5f3fbf40bbb1efd928d92b
tree32b64604ea5a9032fe0ce5d230b1b6fbdbcd69cd
parentc3b571f3937d638ead1421a17b74a71aa5612611
Fix caching features across backtracking

In the local loop during resolution all variables need to be reset whenever we
backtrack up a frame, but currently the `method` and `features` set are
accidentally not reset whenever we backtrack. Calculate the `method` later and
cache `features` in each frame so we can properly backtrack.

Closes #2472
src/cargo/core/resolver/mod.rs
tests/support/registry.rs
tests/test_cargo_cfg.rs
tests/test_cargo_registry.rs