Improve allowness of the unexpected_cfgs lint
This commit is contained in:
parent
d3ad51b48f
commit
765205b9b8
14 changed files with 122 additions and 26 deletions
|
@ -64,7 +64,12 @@ impl MultiItemModifier for Expander {
|
|||
match &mut resolutions[..] {
|
||||
[] => {}
|
||||
[(_, first_item, _), others @ ..] => {
|
||||
*first_item = cfg_eval(sess, features, item.clone());
|
||||
*first_item = cfg_eval(
|
||||
sess,
|
||||
features,
|
||||
item.clone(),
|
||||
ecx.current_expansion.lint_node_id,
|
||||
);
|
||||
for (_, item, _) in others {
|
||||
*item = first_item.clone();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue