Skip to content

Commit

Permalink
expand: Minor fn ptr call cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Sep 27, 2020
1 parent 2532a7e commit 3b27799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_expand/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ where
ts: TokenStream,
) -> Result<TokenStream, ErrorReported> {
// FIXME setup implicit context in TLS before calling self.
Ok((*self)(ts))
Ok(self(ts))
}
}

Expand All @@ -338,7 +338,7 @@ where
annotated: TokenStream,
) -> Result<TokenStream, ErrorReported> {
// FIXME setup implicit context in TLS before calling self.
Ok((*self)(annotation, annotated))
Ok(self(annotation, annotated))
}
}

Expand All @@ -365,7 +365,7 @@ where
span: Span,
input: TokenStream,
) -> Box<dyn MacResult + 'cx> {
(*self)(ecx, span, input)
self(ecx, span, input)
}
}

Expand Down

0 comments on commit 3b27799

Please sign in to comment.