Skip to content
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

Rustfmt puts "C" ABI marker on extern type block #2204

Closed
crumblingstatue opened this issue Nov 29, 2017 · 1 comment
Closed

Rustfmt puts "C" ABI marker on extern type block #2204

crumblingstatue opened this issue Nov 29, 2017 · 1 comment

Comments

@crumblingstatue
Copy link
Contributor

Input:

#![feature(extern_types)]

extern {
    type Foo;
}

Output:

#![feature(extern_types)]

extern "C" {
    type Foo;
}

I don't know if this is intentional/acceptable, but the RFC doesn't mention anything about specifying ABI for extern types.

@topecongiro
Copy link
Contributor

It was discussed here, and we already have a style guide here.

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

No branches or pull requests

2 participants