]> git.lizzy.rs Git - rust.git/commit
Protect against infinite macro expansion in def collector
authorFlorian Diebold <florian.diebold@freiheit.com>
Fri, 13 Mar 2020 12:57:44 +0000 (13:57 +0100)
committerFlorian Diebold <florian.diebold@freiheit.com>
Fri, 13 Mar 2020 13:50:03 +0000 (14:50 +0100)
commit89eb9e8002466f3099de77bc42cdabbf67d5dc1b
tree210539acb34578b5ec4697e9995457700545af07
parent93527b5f193ed214f6ae0f8112eaec2eebabd016
Protect against infinite macro expansion in def collector

There was a test for this, but it wasn't actually working because the first
recursive expansion failed. (The comma...)

Even with this limit, that test (when fixed) still takes some time to pass
because of the exponential growth of the expansions, so I disabled it and added
a different one without growth.
crates/ra_hir_def/src/nameres/collector.rs