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

Guide: improve error handling #15690

Closed
wants to merge 1 commit into from

Conversation

steveklabnik
Copy link
Member

It was sort of awkward that we glossed over errors, and it was also awkward that we had to gloss over references and methods. I fixed the second by just implementing cmp myself, and significantly improved the section on unwrap(), I think.

@huonw, what do you think?

@mdinger
Copy link
Contributor

mdinger commented Jul 17, 2014

Line 1345 wasn't updated from x.cmp(&y) to a cmp(x, y). It isn't in the diff so github wouldn't let me line-quote.

Same at Line 1365.

@steveklabnik
Copy link
Member Author

Fixed!

@steveklabnik
Copy link
Member Author

Double checked that everything passes.

@steveklabnik steveklabnik deleted the guide_errors branch July 21, 2014 23:24
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 13, 2023
vscode: Fix line and col regexp for `rustc` problem matcher

When building the Rust compiler with `./x check` from within VS Code, the current `rustc` problem matcher thinks that the output from that command that looks like this:

    Build completed successfully in 0:00:26

is about a problem in a file named `0` on line 00, col 26. This wouldn't be so bad if it wasn't for that VS Code tends to get stuck on this problem because of problems with opening the file '0'.

The rust compiler will never output problems with a line or a column that starts with 0, so change the regexp to require lines and cols to begin with `[1-9]` to fix this problem.
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.

6 participants