Mark a class as being resolved. Returns `true` if it was freshly inserted (caller should proceed), `false` if it was already present (caller should bail to avoid infinite recursion).
(fqn: &str)
| 559 | /// inserted (caller should proceed), `false` if it was already present |
| 560 | /// (caller should bail to avoid infinite recursion). |
| 561 | fn mark_resolving(fqn: &str) -> bool { |
| 562 | RESOLVING.with(|set| set.borrow_mut().insert(fqn.to_string())) |
| 563 | } |
| 564 | |
| 565 | /// Remove a class from the resolving set when resolution is complete. |
| 566 | fn unmark_resolving(fqn: &str) { |
no test coverage detected