-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Outer attribute after inner attribute error should give more information #61218
Comments
Hey @estebank , I tried to solve this with a little help of @badboy on a rust meetup.
But I started to add some code you can read here: robinboehm@d71319c is this going into the right direction? |
@robinboehm thank you for taking a look at this! You should be able to run the tests with The code you've written would generate the following output:
Instead, we'd want this to be a single error. What you'd want to do is 1) get the span for the prior attribute from rust/src/libsyntax/parse/attr.rs Lines 94 to 104 in dc6db14
to be
This lets you point at the prior span in the same error. The second part of this ticket is changing the linked code to no longer use
|
Are you still working on this? I'm thinking of giving it a try. |
Go on! I don’t have so much time atm so just go there step by step while
learning rust.
If you want so solve it - awesome 🙌
…On Thu 6. Jun 2019 at 09:51, Yair Halberstadt ***@***.***> wrote:
@robinboehm <https://github.com/robinboehm>
Are you still working on this?
I'm thinking of giving it a try.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#61218?email_source=notifications&email_token=AAGIJJ5XRIILBBLLXLPIQBTPZC6X5A5CNFSM4HPXMLD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXCA5QY#issuecomment-499388099>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGIJJ72VC2S4Y3P2I7RUJDPZC6X5ANCNFSM4HPXMLDQ>
.
--
*Angular.DE - Schulungen & Beratung*
*Veranstalter der NG-DE 2019*
Ticket für Angular-Konferenz NG-DE im August in Berlin kaufen:
https://angular.de/ng-de-konferenz/ <https://angular.de/ng-de-konferenz/>
Angular-Schulung für Einsteiger buchen:
https://angular.de/schulungen/angular-intensiv/
<https://angular.de/schulungen/angular-intensiv/>
Angular-Schulung für
Fortgeschrittene buchen:
https://angular.de/schulungen/angular-advanced/
<https://angular.de/schulungen/angular-advanced/>
Symetics GmbH, c/o
Factory, Lohmühlenstraße 65, 12435 Berlin
Amtsgericht Essen, HRB 26120,
Sitz Essen
Geschäftsführer: Sascha Brink, Robin Böhm
|
Make more informative error on outer attribute after inner Fixes rust-lang#61218. ?r @estebank
Given the following
rust/src/test/ui/parser/inner-attr.rs
Lines 1 to 4 in dc6db14
we currently emit
rust/src/test/ui/parser/inner-attr.stderr
Lines 1 to 7 in dc6db14
We should emit at least the following
We might also want to provide suggestions when it makes sense (like turning the
feature
attr into an outer attr).The text was updated successfully, but these errors were encountered: