]> git.lizzy.rs Git - rust.git/commit
rustc: Don't allocate a cnum to syntax crates
authorAlex Crichton <alex@alexcrichton.com>
Wed, 16 Apr 2014 18:42:22 +0000 (11:42 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 16 Apr 2014 18:42:22 +0000 (11:42 -0700)
commit4ba94e2c24faf7b327567f67a7cf1e49cf0ffcce
treee2e67a09075f06350018fd7f66b095976e2afd8d
parent12391df5b78a7a904112c0056aa28773abecb65d
rustc: Don't allocate a cnum to syntax crates

Syntax-only crates are no longer registered with the cstore, so there's no need
to allocate crate numbers to them. This ends up leaving gaps in the crate
numbering scheme which is not expected in the rest of the compiler.

Closes #13560
src/librustc/metadata/creader.rs
src/test/auxiliary/issue-13560-1.rs [new file with mode: 0644]
src/test/auxiliary/issue-13560-2.rs [new file with mode: 0644]
src/test/auxiliary/issue-13560-3.rs [new file with mode: 0644]
src/test/run-pass-fulldeps/issue-13560.rs [new file with mode: 0644]