"wasm ABI is experimental and subject to change"
);
}
- abi => self
- .sess
- .parse_sess
- .span_diagnostic
- .delay_span_bug(span, &format!("unrecognized ABI not caught in lowering: {}", abi)),
+ abi => {
+ self.sess.parse_sess.span_diagnostic.delay_span_bug(
+ span,
+ &format!("unrecognized ABI not caught in lowering: {}", abi),
+ );
+ }
}
}
)
.emit();
}
- } else {
- if attr.has_name(sym::deprecated) {
- self.sess
- .struct_span_err(attr.span, "`#[deprecated]` cannot be used in staged API")
- .span_label(attr.span, "use `#[rustc_deprecated]` instead")
- .emit();
- }
}
}