File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ let rec forItem ~env ~(exported : exported) item =
314
314
let rec handlePattern attributes pat =
315
315
match pat.pat_desc with
316
316
| Tpat_var (ident, name)
317
- | Tpat_alias ({ pat_desc = Tpat_any } , ident , name ) (* let x : t = ... * ) ->
317
+ | Tpat_alias (_ , ident , name ) (* let x : t = ... * ) ->
318
318
let item = pat.pat_type in
319
319
let declared =
320
320
addItem ~name ~stamp: (Ident. binding_time ident) ~env
@@ -328,7 +328,10 @@ let rec forItem ~env ~(exported : exported) item =
328
328
| Tpat_record (items , _ ) ->
329
329
items |> List. iter (fun (_ , _ , p ) -> handlePattern [] p)
330
330
| Tpat_lazy p -> handlePattern [] p
331
- | _ -> ()
331
+ | Tpat_any | Tpat_constant _
332
+ | Tpat_construct (_, _, _)
333
+ | Tpat_variant (_ , _ , _ ) ->
334
+ ()
332
335
in
333
336
List. iter
334
337
(fun {vb_pat; vb_attributes} -> handlePattern vb_attributes vb_pat)
You can’t perform that action at this time.
0 commit comments