Skip to content

Fix position of auto in auto trait declaration #2720

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

Merged
merged 1 commit into from
May 18, 2018

Conversation

tlively
Copy link
Contributor

@tlively tlively commented May 18, 2018

rustfmt 0.7.0-nightly (b0eb8993 2018-05-18) changes the following code

#![feature(optin_builtin_traits)]

pub auto trait Auto {}

which compiles cleanly, to

#![feature(optin_builtin_traits)]

auto pub trait Auto {}

which does not compile. This PR fixes the issue and adds tests for it.

@nrc nrc merged commit dab99b6 into rust-lang:master May 18, 2018
@nrc
Copy link
Member

nrc commented May 18, 2018

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants