Skip to content

Don't crash when recieving unkown file for cargo diagnostic. #3044

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

Merged
merged 2 commits into from
Feb 7, 2020
Merged

Don't crash when recieving unkown file for cargo diagnostic. #3044

merged 2 commits into from
Feb 7, 2020

Conversation

kiljacken
Copy link
Contributor

Fixes #3014

None => {
log::error!(
"File with cargo diagnostic not found in VFS: {}",
path.to_string_lossy()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
path.to_string_lossy()
path.display()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@matklad
Copy link
Member

matklad commented Feb 7, 2020

bors r+

bors bot added a commit that referenced this pull request Feb 7, 2020
3044: Don't crash when recieving unkown file for cargo diagnostic. r=matklad a=kiljacken

Fixes #3014

Co-authored-by: Emil Lauridsen <[email protected]>
@bors
Copy link
Contributor

bors bot commented Feb 7, 2020

Build succeeded

  • Rust (macos-latest)
  • Rust (ubuntu-latest)
  • Rust (windows-latest)
  • TypeScript

@bors bors bot merged commit 137a878 into rust-lang:master Feb 7, 2020
@kiljacken kiljacken deleted the dont-crash-on-unknown-file branch February 7, 2020 12:35
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.

Repeated crashes with Error: "unknown file"
2 participants