File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 1d214b4df3013a53e50d778fa921ed99bc498d02
2
+ refs/heads/master: a58016d43e85721d50ff2a387ddab5bab0a1c13e
Original file line number Diff line number Diff line change @@ -2001,7 +2001,16 @@ let rec project_ident_from_items
2001
2001
2002
2002
let lchk =
2003
2003
if List. mem (scope_id, ident) lchk
2004
- then err (Some scope_id) " cyclic import for ident %s" ident
2004
+ then
2005
+ let string_of_loop_check (id , ident ) =
2006
+ match Session. get_span cx.ctxt_sess id with
2007
+ Some span -> ident ^ " @ " ^ (Session. string_of_span span)
2008
+ | None -> ident
2009
+ in
2010
+ let lchk' = (scope_id, ident)::lchk in
2011
+ let lchk_strs = List. map string_of_loop_check (List. rev lchk') in
2012
+ err (Some scope_id) " cyclic import for ident %s (%s)" ident
2013
+ (String. concat " -> " lchk_strs)
2005
2014
else (scope_id, ident)::lchk
2006
2015
in
2007
2016
You can’t perform that action at this time.
0 commit comments