mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Make borrow checking configurable for term search
This commit is contained in:
parent
9463d9eea4
commit
1389312871
10 changed files with 38 additions and 2 deletions
|
@ -234,6 +234,7 @@ pub struct DiagnosticsConfig {
|
|||
pub prefer_no_std: bool,
|
||||
pub prefer_prelude: bool,
|
||||
pub term_search_fuel: u64,
|
||||
pub term_search_borrowck: bool,
|
||||
}
|
||||
|
||||
impl DiagnosticsConfig {
|
||||
|
@ -260,6 +261,7 @@ impl DiagnosticsConfig {
|
|||
prefer_no_std: false,
|
||||
prefer_prelude: true,
|
||||
term_search_fuel: 400,
|
||||
term_search_borrowck: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue