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

Don't unwrap the result of span_to_snippet #63859

Merged
merged 1 commit into from
Aug 25, 2019

Conversation

matthewjasper
Copy link
Contributor

Closes #63800

It can return `Err` due to macros being expanded across crates or
files.
@rust-highfive
Copy link
Collaborator

r? @cramertj

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 24, 2019
@Centril
Copy link
Contributor

Centril commented Aug 24, 2019

r? @Centril @bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 24, 2019

📌 Commit 365ff62 has been approved by Centril

@rust-highfive rust-highfive assigned Centril and unassigned cramertj Aug 24, 2019
@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 Aug 24, 2019
Centril added a commit to Centril/rust that referenced this pull request Aug 24, 2019
… r=Centril

Don't unwrap the result of `span_to_snippet`

Closes rust-lang#63800
Centril added a commit to Centril/rust that referenced this pull request Aug 25, 2019
… r=Centril

Don't unwrap the result of `span_to_snippet`

Closes rust-lang#63800
bors added a commit that referenced this pull request Aug 25, 2019
Rollup of 6 pull requests

Successful merges:

 - #62744 (Refactor `TinyList::contains` and `len` to iterate instead of recurse)
 - #63813 (Do not suggest `.try_into()` on `i32::from(x)`)
 - #63833 (Suggest calling closure with resolved return type when appropriate)
 - #63839 (Ensure miri can do bit ops on pointer values)
 - #63854 (Modifies how Arg, Arm, Field, FieldPattern and Variant are visited)
 - #63859 (Don't unwrap the result of `span_to_snippet`)

Failed merges:

r? @ghost
@bors bors merged commit 365ff62 into rust-lang:master Aug 25, 2019
@bors
Copy link
Contributor

bors commented Aug 25, 2019

☔ The latest upstream changes (presumably #63873) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 25, 2019
@matthewjasper matthewjasper deleted the check-snippet-result branch August 25, 2019 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustc panic when trying to unwrap DistinctSources
5 participants