mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Use symbol in cfg
This commit is contained in:
parent
93024ad411
commit
c30bdfcc84
22 changed files with 147 additions and 92 deletions
|
@ -481,9 +481,9 @@ impl FileMeta {
|
|||
let mut cfg = CfgOptions::default();
|
||||
for (k, v) in f.cfgs {
|
||||
if let Some(v) = v {
|
||||
cfg.insert_key_value(k.into(), v.into());
|
||||
cfg.insert_key_value(Symbol::intern(&k), Symbol::intern(&v));
|
||||
} else {
|
||||
cfg.insert_atom(k.into());
|
||||
cfg.insert_atom(Symbol::intern(&k));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue