aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-11-05 17:30:53 -0700
committerPatrick Walton <[email protected]>2010-11-05 17:31:35 -0700
commit79015e2d599287d448662e3436f77026c4ffb232 (patch)
tree0ffd3e929a562829784a678d4145986c7cbc1225 /src
parentrustc: Implement function types (diff)
downloadrust-79015e2d599287d448662e3436f77026c4ffb232.tar.xz
rust-79015e2d599287d448662e3436f77026c4ffb232.zip
rustboot: If something that wasn't a type was found where a type was expected, report where the error was
Diffstat (limited to 'src')
-rw-r--r--src/boot/me/resolve.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/me/resolve.ml b/src/boot/me/resolve.ml
index 14d9cc53..b2f29d27 100644
--- a/src/boot/me/resolve.ml
+++ b/src/boot/me/resolve.ml
@@ -306,7 +306,7 @@ let rec lookup_type_by_name
| Some (DEFN_ty_param (_, x)) ->
(Ast.TY_param x, [||])
| _ ->
- err None "Found non-type binding for %a"
+ err loc "Found non-type binding for %a"
Ast.sprintf_name name
in
let args =