aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me/effect.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-08 21:55:15 -0700
committerGraydon Hoare <[email protected]>2010-07-08 21:56:08 -0700
commitcbc31ea01ef28f60639e4752ee6413b17f038fbc (patch)
treeae38975b8aa21dd1dddd49ab771c439d1c6eab0b /src/boot/me/effect.ml
parentErr kindly instead of asserting on duplicate mod declarations in crates. (diff)
downloadrust-cbc31ea01ef28f60639e4752ee6413b17f038fbc.tar.xz
rust-cbc31ea01ef28f60639e4752ee6413b17f038fbc.zip
Add detection for cyclic imports.
Diffstat (limited to 'src/boot/me/effect.ml')
-rw-r--r--src/boot/me/effect.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/me/effect.ml b/src/boot/me/effect.ml
index 795f1990..3ec492c8 100644
--- a/src/boot/me/effect.ml
+++ b/src/boot/me/effect.ml
@@ -320,7 +320,7 @@ let process_crate
in
let root_scope = [ SCOPE_crate crate ] in
let auth_effect name eff =
- match lookup_by_name cx root_scope name with
+ match lookup_by_name cx [] root_scope name with
None -> ()
| Some (_, id) ->
if referent_is_item cx id