]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #13284 : pnkfelix/rust/more-fs-info-on-crate-mismatch, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 5 Apr 2014 04:06:34 +0000 (21:06 -0700)
committerbors <bors@rust-lang.org>
Sat, 5 Apr 2014 04:06:34 +0000 (21:06 -0700)
Fix #13266.

There is a little bit of acrobatics in the definition of `crate_paths`
to avoid calling `clone()` on the dylib/rlib unless we actually are
going to need them.

The other oddity is that I have replaced the `root_ident: Option<&str>`
parameter with a `root: &Option<CratePaths>`, which may surprise one
who was expecting to see something like: `root: Option<&CratePaths>`.
I went with the approach here because I could not come up with code for
the alternative that was acceptable to the borrow checker.

1  2 
src/librustc/metadata/creader.rs
src/librustc/metadata/loader.rs

Simple merge
Simple merge