summary refs log tree commit diff
path: root/src/librustc/middle/check_static_recursion.rs
AgeCommit message (Collapse)AuthorLines
2014-09-14Separate static item recursion check into its own passBrian Koropoff-0/+109
This new pass is run before type checking so that recursive items are detected beforehand. This prevents going into an infinite recursion during type checking when a recursive item is used in an array type. As a bonus, use `span_err` instead of `span_fatal` so multiple errors can be reported. Closes issue #17252