Skip to content

Commit

Permalink
Merge pull request #16 from dtolnay/fnregression
Browse files Browse the repository at this point in the history
Revert "Work around rustc fn ptr parsing regression"
  • Loading branch information
dtolnay authored Oct 31, 2020
2 parents e14a8d9 + bb69c47 commit c6b33de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ fn trivial_fields(fields: &Fields) -> Result<Vec<&Type>> {
Ok(trivial)
}

// FIXME: https://github.com/rust-lang/rust/issues/78507
type Workaround = fn(&Field) -> Result<bool>;
fn decide_trivial(fields: &Fields) -> Result<Workaround> {
fn decide_trivial(fields: &Fields) -> Result<fn(&Field) -> Result<bool>> {
for field in fields {
if is_explicit_trivial(field)? {
return Ok(is_explicit_trivial);
Expand Down

0 comments on commit c6b33de

Please sign in to comment.