]> git.lizzy.rs Git - rust.git/commit
Add `crate_limits` query to `SourceDatabase`
authorMaybe Waffle <waffle.lapkin@gmail.com>
Thu, 27 Jan 2022 20:34:33 +0000 (23:34 +0300)
committerMaybe Waffle <waffle.lapkin@gmail.com>
Fri, 28 Jan 2022 08:31:59 +0000 (11:31 +0300)
commitc932ca5f1cf62d041c943e5cfdcc1767c0664692
treed7df24c038e345fc7e054983839881c0ad262f64
parent93036aa0e201474d43c38be3862f4a899defe267
Add `crate_limits` query to `SourceDatabase`

This allows fetching crate limits like `recursion_limit`. The
implementation is currently dummy and just returns the defaults.

Future work: Use this query instead of the hardcoded constant.

Future work: Actually implement this query by parsing
`#![recursion_limit = N]` attribute.
crates/base_db/src/lib.rs