mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Allow #[rustc_std_internal_symbol] on foreign items
This commit is contained in:
@@ -2203,7 +2203,7 @@ fn check_rustc_allow_const_fn_unstable(
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user