]> git.lizzy.rs Git - rust.git/commit
track the extern-crate def-id rather than path
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 16 Mar 2016 09:50:38 +0000 (05:50 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Fri, 25 Mar 2016 18:07:19 +0000 (14:07 -0400)
commitab9b8441468aed505f83a2ddf74454f9cdfeab33
tree394e51e1cd844943a88d9c0b20a9a7fab1e5fa61
parent6056c5fbedb3681f9fe5efa5f9befe7ff2f91e73
track the extern-crate def-id rather than path

We used to track, for each crate, a path that led to the extern-crate
that imported it. Instead of that, track the def-id of the extern crate,
along with a bit more information, and derive the path on the fly.
src/librustc/middle/cstore.rs
src/librustc/middle/ty/mod.rs
src/librustc_metadata/creader.rs
src/librustc_metadata/csearch.rs
src/librustc_metadata/cstore.rs
src/librustc_metadata/decoder.rs