mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Swap Subtree::token_trees from Vec to boxed slice
This commit is contained in:
parent
8f6a72871e
commit
8011b56827
22 changed files with 194 additions and 158 deletions
|
@ -123,7 +123,7 @@ impl RawAttrs {
|
|||
.filter_map(|(idx, attr)| Attr::from_tt(db, attr, index.with_cfg_attr(idx)));
|
||||
|
||||
let cfg_options = &crate_graph[krate].cfg_options;
|
||||
let cfg = Subtree { delimiter: subtree.delimiter, token_trees: cfg.to_vec() };
|
||||
let cfg = Subtree { delimiter: subtree.delimiter, token_trees: Box::from(cfg) };
|
||||
let cfg = CfgExpr::parse(&cfg);
|
||||
if cfg_options.check(&cfg) == Some(false) {
|
||||
smallvec![]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue