Skip to content

Handle more cases of typos misinterpreted as type ascription - #62791

Merged
bors merged 2 commits into
rust-lang:masterfrom
estebank:type-ascription
Jul 23, 2019
Merged

Handle more cases of typos misinterpreted as type ascription#62791
bors merged 2 commits into
rust-lang:masterfrom
estebank:type-ascription

Conversation

@estebank

Copy link
Copy Markdown
Contributor

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @eddyb

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

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 18, 2019
@petrochenkovpetrochenkov self-assigned this Jul 19, 2019
@estebank

Copy link
Copy Markdown
ContributorAuthor

r? @petrochenkov

@rust-highfive

This comment has been minimized.

Comment threadsrc/test/ui/suggestions/type-ascription-instead-of-variant.stderr Outdated
Comment threadsrc/libsyntax/parse/parser.rs Outdated
Comment threadsrc/libsyntax/parse/diagnostics.rs Outdated
@petrochenkov

Copy link
Copy Markdown
Contributor

r=me with nits addressed and the debugging 3 removed

@petrochenkovpetrochenkov 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-review Status: Awaiting review from the assignee but also interested parties. labels Jul 19, 2019
@rust-highfive

This comment has been minimized.

@estebank

Copy link
Copy Markdown
ContributorAuthor

@bors r=petrochenkov

@bors

bors commented Jul 19, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 9dbe2e7 has been approved by petrochenkov

@borsbors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 19, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 21, 2019
@CentrilCentril mentioned this pull request Jul 21, 2019
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 23, 2019
bors added a commit that referenced this pull request Jul 23, 2019
Rollup of 14 pull requests
Successful merges:
- #60951 (more specific errors in src/librustc/mir/interpret/error.rs)
- #62523 (Delay bug to resolve HRTB ICE)
- #62656 (explain how to search in slice without owned data)
- #62791 (Handle more cases of typos misinterpreted as type ascription)
- #62804 (rustc_typeck: improve diagnostics for _ const/static declarations)
- #62808 (Revert "Disable stack probing for gnux32.")
- #62817 (Tweak span for variant not found error)
- #62842 (Add tests for issue-58887)
- #62851 (move unescape module to rustc_lexer)
- #62859 (Place::as_place_ref is now Place::as_ref)
- #62869 (add rustc_private as a proper language feature gate)
- #62880 (normalize use of backticks in compiler messages for librustc_allocator)
- #62885 (Change "OSX" to "macOS")
- #62889 (Update stage0.txt)
Failed merges:
r? @ghost
@bors
bors merged commit 9dbe2e7 into rust-lang:masterJul 23, 2019
@frehberg

Copy link
Copy Markdown
Contributor

Sorry, I removed my comment, it was caused by an error in my code.

bors added a commit that referenced this pull request Aug 4, 2019
Point at type ascription before macro invocation on expansion parse error
Fix#47666. Follow up to #62791.
r? @petrochenkov
@estebank
estebank deleted the type-ascription branch November 9, 2023 05:19
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type ascription typo yields unclear error message

7 participants

@estebank@rust-highfive@petrochenkov@bors@frehberg@CryZe@eddyb