diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-09-28 23:10:48 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-09-28 23:10:48 +0300 |
| commit | 4a4a7f859944ac3301e5b141a7c1e70261539af3 (patch) | |
| tree | ed21ebafad58bd5daaac5489ebcf441e415ca46c | |
| parent | 85ef265dbe9c95dddb37e74a2d4ccb06a93ee233 (diff) | |
| download | rust-4a4a7f859944ac3301e5b141a7c1e70261539af3.tar.gz rust-4a4a7f859944ac3301e5b141a7c1e70261539af3.zip | |
expand: Minor fn ptr call cleanup
| -rw-r--r-- | compiler/rustc_expand/src/base.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_expand/src/base.rs b/compiler/rustc_expand/src/base.rs index 1ae2be47b14..f7651ca0ba6 100644 --- a/compiler/rustc_expand/src/base.rs +++ b/compiler/rustc_expand/src/base.rs @@ -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)) } } @@ -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)) } } @@ -365,7 +365,7 @@ where span: Span, input: TokenStream, ) -> Box<dyn MacResult + 'cx> { - (*self)(ecx, span, input) + self(ecx, span, input) } } |
