-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Using rustc as a library hits "can't find crate for std" error #11792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
One possible solution to this is #11068. The problem is that I wouldn't be so harsh as to say that rustc is completely unusable, you'll just need to explicitly specify a path or two for now, more a minor annoyance than a fundamental blocker. |
I think it's more than minor: I don't know of a feasible way of getting the correct path cross-platform, and there's not even a sensible way of doing it on a single platform... some people install to |
@alexcrichton where would I specify that path? I'm running into this problem now (code here https://gist.github.com/jaredly/089b60e0649c4bda3cd9) |
I believe it's the |
Triage: this code has changed significantly, but I'm not sure if anything else has changed in the meantime to fix this. |
Closing due to inactivity. Feel free to comment/reopen if this problem is actively causing you pain. |
[`map_identity`]: respect match ergonomics Fixes rust-lang#11764 Note: the original tests before this were slightly wrong themselves already and had to be changed. They were calling `map` on an iterator of `&(i32, i32)`s, so this PR would stop linting there, but they were meant to test something else unrelated to binding modes, so I just changed them to remove the references so that it iterates over owned values and they all bind by value. This way they continue to test what they checked for before: the identity function for tuple patterns. changelog: [`map_identity`]: respect match ergonomics
The following is the parse, expand & analyse steps of the compiler (cribbed from rustdoc). Running on any non-
#[no_std]
file causes the following error:This makes
rustc
completely unusable as a library for out-of-source-tree tools.The text was updated successfully, but these errors were encountered: