Skip to content

Conversation

@jonas-schievink
Copy link
Contributor

@jonas-schievink jonas-schievink commented Aug 25, 2021

r? @matklad (mostly to double-check that the redundant code I removed was, in fact, redundant)

Fixes #9864
Fixes #10023

Comment on lines +454 to +457
if let Some(err) = data.error() {
has_errors = true;
stdx::format_to!(buf, "{:#}\n", err);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This was semi-intentional -- if cargo check fails because you have a type error in non-build.rs code, we should consider that as a working workspace. I think this is a non-issue given that we use RUSTC_WRAPPER trick, but it makes sense to re-check that you don't get partially loaded workspace notification

image

just becaues borrow checked doesn't favor you today.

Copy link
Contributor

Choose a reason for hiding this comment

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

This -- the absense of errore reporting for the cases wheer cargo check run succesfully, but returned a non-zero status

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, this still seems to work correctly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Although rust-analyzer does not seem to recover when there is a build error in a build script, even after clicking on that item after fixing the issue

@matklad
Copy link
Contributor

matklad commented Aug 25, 2021

r=me

@matklad
Copy link
Contributor

matklad commented Aug 25, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 25, 2021

@bors bors bot merged commit cbbb7f3 into rust-lang:master Aug 25, 2021
@jonas-schievink jonas-schievink deleted the fix-build-script-errors branch August 25, 2021 17:48
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.

Failure to run build scripts is not visible to the user Cargo check failures are not reported

2 participants