Skip to content

Commit cc201ee

Browse files
committed
handle other forms of the nightly deref! "macro"
1 parent 918270f commit cc201ee

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
@@ -591,7 +591,7 @@ fn pat_search_pat(tcx: TyCtxt<'_>, pat: &rustc_hir::Pat<'_>) -> (Pat, Pat) {
591591
let (_, end) = pat_search_pat(tcx, p);
592592
(Pat::Str("box"), end)
593593
},
594-
PatKind::Deref(_) => (Pat::Str("deref!("), Pat::Str(")")),
594+
PatKind::Deref(_) => (Pat::Str("deref!"), Pat::Str("")),
595595
PatKind::Ref(p, _) => {
596596
let (_, end) = pat_search_pat(tcx, p);
597597
(Pat::Str("&"), end)

0 commit comments

Comments
 (0)