1
Fork 0

Allow #[rustc_std_internal_symbol] on foreign items

This commit is contained in:
bjorn3 2023-12-02 13:48:06 +00:00
parent 9c67cecd12
commit 98b9d0232f

View file

@ -2203,7 +2203,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
fn check_rustc_std_internal_symbol(&self, attr: &Attribute, span: Span, target: Target) {
match target {
Target::Fn | Target::Static => {}
Target::Fn | Target::Static | Target::ForeignFn | Target::ForeignStatic => {}
_ => {
self.tcx
.dcx()