mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
internal: Set Durability to HIGH for enable_proc_attr_macros input
This commit is contained in:
parent
5390949c11
commit
e244942209
11 changed files with 33 additions and 28 deletions
|
@ -23,7 +23,7 @@ mod type_pos;
|
|||
mod use_tree;
|
||||
mod visibility;
|
||||
|
||||
use hir::{db::DefDatabase, PrefixKind};
|
||||
use hir::PrefixKind;
|
||||
use ide_db::{
|
||||
base_db::{fixture::ChangeFixture, FileLoader, FilePosition},
|
||||
imports::insert_use::{ImportGranularity, InsertUseConfig},
|
||||
|
@ -120,7 +120,7 @@ fn completion_list_with_config(
|
|||
pub(crate) fn position(ra_fixture: &str) -> (RootDatabase, FilePosition) {
|
||||
let change_fixture = ChangeFixture::parse(ra_fixture);
|
||||
let mut database = RootDatabase::default();
|
||||
database.set_enable_proc_attr_macros(true);
|
||||
database.enable_proc_attr_macros();
|
||||
database.apply_change(change_fixture.change);
|
||||
let (file_id, range_or_offset) = change_fixture.file_position.expect("expected a marker ($0)");
|
||||
let offset = range_or_offset.expect_offset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue