Skip to content

Commit 79015e2

Browse files
committed
rustboot: If something that wasn't a type was found where a type was expected, report where the error was
1 parent 35eb088 commit 79015e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/boot/me/resolve.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ let rec lookup_type_by_name
306306
| Some (DEFN_ty_param (_, x)) ->
307307
(Ast.TY_param x, [||])
308308
| _ ->
309-
err None "Found non-type binding for %a"
309+
err loc "Found non-type binding for %a"
310310
Ast.sprintf_name name
311311
in
312312
let args =

0 commit comments

Comments
 (0)