Skip to content
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

More helpful error when rust-src is missing #797

Closed
wants to merge 1 commit into from

Conversation

mgsloan
Copy link

@mgsloan mgsloan commented Sep 19, 2017

Note that this changes the behavior when "rustc --print sysroot" returns a
value. Before the change, if this command was successful, but the expected paths
not found in the yielded root, it would fallback on looking for the dir in
"/usr/...". I think this makes sense, if rustc is present and functional, it
should use its sysroot or fail. Otherwise, things are potentially inconsistent.

Also makes the following changes:

  • Fixes environment variable name in description()

  • Fixes double use of " around paths, display for PathBuf already includes
    quotes.

Note I am new to rust, so this change should probably be scrutinized carefully. I did test it out, of course, it seems to work well.

Note that this changes the behavior when "rustc --print sysroot" returns a
value. Before the change, if this command was successful, but the expected paths
not found in the yielded root, it would fallback on looking for the dir in
"/usr/...". I think this makes sense, if rustc is present and functional, it
should use its sysroot or fail. Otherwise, things are potentially inconsistent.

Also makes the following changes:

* Fixes environment variable name in description()

* Fixes double use of " around paths, display for PathBuf already includes
  quotes.
@TedDriggs
Copy link
Contributor

This is showing all tests failing; is it dependent on another commit, or is it a WIP?

@kngwyu
Copy link
Collaborator

kngwyu commented May 25, 2018

Closing due to inactivity.
But, please feel free to reopen whenever you want.

@kngwyu kngwyu closed this May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants