Skip to content

Commit e95f141

Browse files
committed
handle other forms of the nightly deref! "macro"
1 parent e7b7c82 commit e95f141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ fn pat_search_pat(tcx: TyCtxt<'_>, pat: &rustc_hir::Pat<'_>) -> (Pat, Pat) {
585585
let (_, end) = pat_search_pat(tcx, p);
586586
(Pat::Str("box"), end)
587587
},
588-
PatKind::Deref(_) => (Pat::Str("deref!("), Pat::Str(")")),
588+
PatKind::Deref(_) => (Pat::Str("deref!"), Pat::Str("")),
589589
PatKind::Ref(p, _) => {
590590
let (_, end) = pat_search_pat(tcx, p);
591591
(Pat::Str("&"), end)

0 commit comments

Comments
 (0)