Implement boolean lit support in cfg predicates
This commit is contained in:
parent
57b9b1f974
commit
c99f29b29f
6 changed files with 48 additions and 6 deletions
|
@ -309,7 +309,7 @@ impl<'tcx> Collector<'tcx> {
|
|||
.emit_err(errors::LinkCfgSinglePredicate { span: item.span() });
|
||||
continue;
|
||||
};
|
||||
if !link_cfg.is_meta_item() {
|
||||
let Some(link_cfg) = link_cfg.meta_item_or_bool() else {
|
||||
sess.dcx()
|
||||
.emit_err(errors::LinkCfgSinglePredicate { span: item.span() });
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue