mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Arc CrateData::cfg_options
This commit is contained in:
parent
336dee3415
commit
f3567bb604
7 changed files with 29 additions and 31 deletions
|
@ -11,6 +11,7 @@ use hir_expand::{
|
|||
};
|
||||
use limit::Limit;
|
||||
use syntax::{ast, Parse};
|
||||
use triomphe::Arc;
|
||||
|
||||
use crate::{
|
||||
attr::Attrs, db::DefDatabase, lower::LowerCtx, path::Path, AsMacroCall, MacroId, ModuleId,
|
||||
|
@ -19,7 +20,7 @@ use crate::{
|
|||
|
||||
#[derive(Debug)]
|
||||
pub struct Expander {
|
||||
cfg_options: CfgOptions,
|
||||
cfg_options: Arc<CfgOptions>,
|
||||
span_map: OnceCell<SpanMap>,
|
||||
current_file_id: HirFileId,
|
||||
pub(crate) module: ModuleId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue