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

Warn when private structs have public fields #17697

Closed
mahkoh opened this issue Oct 1, 2014 · 1 comment
Closed

Warn when private structs have public fields #17697

mahkoh opened this issue Oct 1, 2014 · 1 comment
Labels
A-lints Area: Lints (warnings about flaws in source code) such as unused_mut.

Comments

@mahkoh
Copy link
Contributor

mahkoh commented Oct 1, 2014

#![crate_type = "lib"]

struct X {
    pub i: int,
}

pub fn f() {
    X { i: 1 };
}
@huonw huonw added the A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. label Oct 1, 2014
@frewsxcv
Copy link
Member

We still don't warn with the latest Rust. This issue is still valid.

@mahkoh mahkoh closed this as completed Apr 11, 2015
@rust-lang rust-lang locked and limited conversation to collaborators Apr 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-lints Area: Lints (warnings about flaws in source code) such as unused_mut.
Projects
None yet
Development

No branches or pull requests

3 participants