1
Fork 0

Ident::with_empty_ctxt -> Ident::with_dummy_span

`Ident` has had a full span rather than just a `SyntaxContext` for a long time now.
This commit is contained in:
Vadim Petrochenkov 2019-08-11 02:20:18 +03:00
parent 67d6ce4206
commit 6cb28b6617
30 changed files with 77 additions and 77 deletions

View file

@ -930,7 +930,7 @@ impl Attributes {
if attr.check_name(sym::enable) {
if let Some(feat) = attr.value_str() {
let meta = attr::mk_name_value_item_str(
Ident::with_empty_ctxt(sym::target_feature), feat, DUMMY_SP
Ident::with_dummy_span(sym::target_feature), feat, DUMMY_SP
);
if let Ok(feat_cfg) = Cfg::parse(&meta) {
cfg &= feat_cfg;