-
Notifications
You must be signed in to change notification settings - Fork 163
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
Fix parser bug on tupplestruct pattern #2646
Conversation
gcc/rust/ChangeLog: * parse/rust-parse-impl.h: Add missing token consumption Signed-off-by: Jakub Dupak <[email protected]>
New error: test.rs:1:43: error: failed to resolve TypePath: A in this scope [E0412]
1 | pub fn struct_tuple(A { 0: a, 1: ref b }: A) -> i32 {
| ^
test.rs:1:21: error: Cannot find path ‘A’ in this scope [E0433]
1 | pub fn struct_tuple(A { 0: a, 1: ref b }: A) -> i32 {
| ^
(null):0: confused by earlier errors, bailing out |
check-rust passed locally |
@jdupak Could you had a test ? |
@P-E-P I am not sure, how should the test look like, since the compilation still fails (because unimplemented) in a later stage. |
You could specify --frust-compile-until to test only the parsing step am I right ? |
gcc/testsuite/ChangeLog: * rust/compile/issue-2645.rs: New test. Signed-off-by: Jakub Dupak <[email protected]>
Added |
Fixes #2645
gcc/rust/ChangeLog: