]> git.lizzy.rs Git - rust.git/commit
remove `usize: DepGraphRead` and add `Untracked`
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 16 Aug 2016 15:42:30 +0000 (11:42 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 17 Aug 2016 19:21:59 +0000 (15:21 -0400)
commit6b33f47514f47267d9e07bebbf4c97b2404fa58c
treed5d4ff7b97e46cee783294812ee3bbc2e9df8e49
parent9daea5b6393af6706dd50a48d4bf8e6eeaff9860
remove `usize: DepGraphRead` and add `Untracked`

The idea is that a `usize` is sort of ambiguous: in this case, it
represents indices that do not need tracking, but it could as easily be
some data read out from a tracked location, and hence represent tracked
data. Therefore, we add an `Untracked` type that lets user assert
that value is not tracked.

Also correct various typos.
src/librustc_metadata/encoder.rs
src/librustc_metadata/index_builder.rs