1
Fork 0

Implement boolean lit support in cfg predicates

This commit is contained in:
Urgau 2024-09-19 10:13:14 +02:00
parent 57b9b1f974
commit c99f29b29f
6 changed files with 48 additions and 6 deletions

View file

@ -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;