]> git.lizzy.rs Git - rust.git/commit
watch out for krate numbers being reassigned
authorNiko Matsakis <niko@alum.mit.edu>
Fri, 29 Jul 2016 23:55:30 +0000 (19:55 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 2 Aug 2016 09:31:25 +0000 (05:31 -0400)
commitb4929d11aea4b497b8f53b11a595a8cbc55c9f1e
tree29e8b355f56fdca9cf9034b3dede58dd0c7cd1f1
parentc56eb4b7f5206f157aa200e8424f697791990d27
watch out for krate numbers being reassigned

The biggest problem, actually, is krate numbers being removed entirely,
which can lead to array-index-out-of-bounds errors.

cc #35123 -- not a complete fix, since really we ought to "map" the old
crate numbers to the new ones, not just detect changes.
src/librustc_incremental/persist/directory.rs
src/test/incremental/krate_reassign_34991/auxiliary/a.rs [new file with mode: 0644]
src/test/incremental/krate_reassign_34991/main.rs [new file with mode: 0644]