You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was a very interesting and potentially useful warning from rustc:
cfg/mod.rs:13:1: 13:20 error: found possibly newer version of crate `std` which `rustc` depends on
cfg/mod.rs:13 extern crate rustc;
^~~~~~~~~~~~~~~~~~~
cfg/mod.rs:13:1: 13:20 note: perhaps this crate needs to be recompiled?
cfg/mod.rs:13 extern crate rustc;
^~~~~~~~~~~~~~~~~~~
It would be even more useful if it told me the paths it was using for the two crates involved (std and rustc), so that I could be sure that the files I am inspecting (in my file system, and in practice in my makefile debugging) actually correspond to the ones that rustc is informing me about.
The text was updated successfully, but these errors were encountered:
All it checks, unfortunately, is that you actually printed at least
two lines for crateA paths and at least one line for crateB paths.
But that's enough to capture the spirit of the bug, I think. I did
not bother trying to verify that the paths themselves reflected where
the crates end up.
…r=alexcrichton
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.
Fixrust-lang#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.
This was a very interesting and potentially useful warning from
rustc
:It would be even more useful if it told me the paths it was using for the two crates involved (
std
andrustc
), so that I could be sure that the files I am inspecting (in my file system, and in practice in my makefile debugging) actually correspond to the ones thatrustc
is informing me about.The text was updated successfully, but these errors were encountered: