Skip to content

rustc: Strip struct fields and enum variants#11093

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:issue-11085
Jan 3, 2014
Merged

rustc: Strip struct fields and enum variants#11093
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:issue-11085

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

Closes #11085

@huonw

huonw commented Dec 21, 2013

Copy link
Copy Markdown
Contributor

You'll need xfail-fast because of the compile-flags.

@alexcrichton

Copy link
Copy Markdown
Member Author

xfail-fast added, nice catch

@huonw

huonw commented Dec 22, 2013

Copy link
Copy Markdown
Contributor

Hm, what about

enum Foo {
    Bar {
        #[cfg(foo)] a: int, 
        b: int
    }
}

@alexcrichton

Copy link
Copy Markdown
Member Author

Fields in struct variants are now handled.

bors added a commit that referenced this pull request Jan 3, 2014
@bors bors closed this Jan 3, 2014
@bors bors merged commit 1c648fc into rust-lang:master Jan 3, 2014
@alexcrichton alexcrichton deleted the issue-11085 branch January 3, 2014 18:26
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 14, 2023
[`unnecessary_literal_unwrap`]: also lint `unwrap_(err_)unchecked`

Closes rust-lang#11093

changelog: [`unnecessary_literal_unwrap`]: also lint `unwrap_unchecked` and `unwrap_err_unchecked`
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.

#[cfg] does not filter struct fields or enum variants

4 participants