emit a better error message for using the macro incorrectly
This commit is contained in:
parent
e643f59f6d
commit
f151ceadfe
3 changed files with 5 additions and 5 deletions
|
@ -234,7 +234,7 @@ mod llvm_enzyme {
|
|||
let meta_item_vec: ThinVec<MetaItemInner> = match meta_item.kind {
|
||||
ast::MetaItemKind::List(ref vec) => vec.clone(),
|
||||
_ => {
|
||||
dcx.emit_err(errors::AutoDiffInvalidApplication { span: item.span() });
|
||||
dcx.emit_err(errors::AutoDiffMissingConfig { span: item.span() });
|
||||
return vec![item];
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue