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

Avoid unwrap in Parser::is_lit_bad_ident #110022

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

Ezrashaw
Copy link
Contributor

@Ezrashaw Ezrashaw commented Apr 6, 2023

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 6, 2023
@compiler-errors
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 6, 2023

📌 Commit 9dbf20e has been approved by compiler-errors

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 6, 2023
@compiler-errors
Copy link
Member

I'm not sure if I've commented on one of your PRs with this before, but I find myself saying it a lot on github in general, but it's typically more useful to give a PR a title that describes what it does functionally, e.g. "Avoid unwrap in Parser::is_lit_bad_ident when literal doesn't have suffix" is more useful for history than "fix ###".

The "fix ###" part is already in the description of the PR anyways, so it doesn't also need to be the title title.

@Ezrashaw
Copy link
Contributor Author

Ezrashaw commented Apr 6, 2023

Don't think I've ever been told that before. It's one of the things which you just don't know until someone tells you (rustc-dev-guide doesn't really give that advice, etc) so thank you. I'll improve them in the future :)

@Noratrieb Noratrieb changed the title fix: fix regression in #109203 Avoid unwrap in Parser::is_lit_bad_ident Apr 6, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 7, 2023
…iaskrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#109806 (Workaround rust-lang#109797 on windows-gnu)
 - rust-lang#109957 (diagnostics: account for self type when looking for source of unsolved type variable)
 - rust-lang#109960 (Fix buffer overrun in bootstrap and (test-only) symlink_junction)
 - rust-lang#110013 (Label `non_exhaustive` attribute on privacy errors from non-local items)
 - rust-lang#110016 (Run collapsed GUI test in mobile mode as well)
 - rust-lang#110022 (fix: fix regression in rust-lang#109203)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 903b439 into rust-lang:master Apr 7, 2023
@rustbot rustbot added this to the 1.70.0 milestone Apr 7, 2023
@Ezrashaw Ezrashaw deleted the fix-parser-ident-regression branch April 7, 2023 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'rustc' panicked at 'called Option::unwrap() on a None value'
4 participants