aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me/resolve.ml
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-10-22 15:10:48 -0700
committerPatrick Walton <[email protected]>2010-10-22 15:12:48 -0700
commitfc8b5155a87b5a9ae2313f7282cab9893f4b9f3e (patch)
treecbe23737b6920e1f0f33e29ba5cf81d4115e52bd /src/boot/me/resolve.ml
parentAdd makefile bits to run rustc on the testsuite as part of 'make check'. Most... (diff)
downloadrust-fc8b5155a87b5a9ae2313f7282cab9893f4b9f3e.tar.xz
rust-fc8b5155a87b5a9ae2313f7282cab9893f4b9f3e.zip
rustboot: If the user tries to instantiate a non-parametric type with type parameters, report the location of the error
Diffstat (limited to 'src/boot/me/resolve.ml')
-rw-r--r--src/boot/me/resolve.ml6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/boot/me/resolve.ml b/src/boot/me/resolve.ml
index 4fafa05f..7cc3e48c 100644
--- a/src/boot/me/resolve.ml
+++ b/src/boot/me/resolve.ml
@@ -324,7 +324,11 @@ let rec lookup_type_by_name
log cx "args: %s"
(Fmt.fmt_to_str Ast.fmt_app_args args);
end;
- let ty = rebuild_ty_under_params cx None ty params args true in
+ let ty =
+ rebuild_ty_under_params
+ ~node_id:(id_of_scope (List.hd scopes))
+ cx None ty params args true
+ in
iflog cx (fun _ -> log cx "--- lookup_type_by_name %a ==> %a"
Ast.sprintf_name name
Ast.sprintf_ty ty);