diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-28 21:36:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-28 21:36:08 +0100 |
| commit | 30431a33ead3cef1988266e3cb99d35607f7e3bb (patch) | |
| tree | 2077cb9f1ca4643f57ae5ce4b0ee400672963880 /src/libsyntax/parse/parser | |
| parent | 545166435cfcc10bb5665c693566e012834d4093 (diff) | |
| parent | f1aa8b2c01a97b0114f84b2d557e4598e6070515 (diff) | |
| download | rust-30431a33ead3cef1988266e3cb99d35607f7e3bb.tar.gz rust-30431a33ead3cef1988266e3cb99d35607f7e3bb.zip | |
Rollup merge of #65893 - jafern14:let-expr-stable-error-messaging, r=Centril
Output previous stable error messaging when using stable build. Fixes #65254 As I had mentioned previously there I have the logic running right now however I'm not getting the exact same syntax highlighting as there was originally for this error. I'm currently getting the following: ``` error: expected expression, found statement (`let`) --> src/main.rs:2:14 | 2 | let x = (let y = 6); | ^^^^^^^^^ | = note: variable declaration using `let` is a statement ``` I'd like to get the following instead: ``` | let x = (let y = 6); | ^^^ ``` My current understanding is that the `span` being passed into `lower_expr_let` is coming from `lowering.rs`. I still don't know how the byte range is calculated for the erroneous syntax and need to look into it a bit more. In the meantime does anybody have any hints/tips regarding this??
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions
