mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 17:13:48 +00:00
0bee7cb716
9453: Add first-class limits. r=matklad,lnicola a=rbartlensky Partially fixes #9286. This introduces a new `Limits` structure which is passed as an input to `SourceDatabase`. This makes limits accessible almost everywhere in the code, since most places have a database in scope. One downside of this approach is that whenever you query limits, you essentially do an `Arc::clone` which is less than ideal. Let me know if I missed anything, or would like me to take a different approach! Co-authored-by: Robert Bartlensky <bartlensky.robert@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |