Skip to content

Incorrect parse of obsolete class method syntax #4830

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

Closed
brson opened this issue Feb 7, 2013 · 2 comments
Closed

Incorrect parse of obsolete class method syntax #4830

brson opened this issue Feb 7, 2013 · 2 comments
Labels
A-parser Area: The lexing & parsing of Rust source code to an AST E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone

Comments

@brson
Copy link
Contributor

brson commented Feb 7, 2013

pub struct Scheduler {
    /// The event loop used to drive the scheduler and perform I/O
    priv event_loop: ~UvSchedEventLoop
}

pub fn main() { }

Results in 'obsolete syntax: class method', pointing at priv. This syntax error is old and should be removed.

@brson
Copy link
Contributor Author

brson commented Feb 7, 2013

Removing the comments works around the error.

@sp0 sp0 mentioned this issue Feb 9, 2013
bors added a commit that referenced this issue Feb 10, 2013
@z0w0
Copy link
Contributor

z0w0 commented Feb 17, 2013

This can be closed.

@brson brson closed this as completed Feb 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parser Area: The lexing & parsing of Rust source code to an AST E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants