1
Fork 0

Mark #[rustc_std_internal_symbol] as extern indicator

It currently implies #[no_mangle] which is alread an extern indicator,
but this will change in a future commit.
This commit is contained in:
bjorn3 2023-12-02 13:50:44 +00:00
parent 98b9d0232f
commit 60b785fc8d
2 changed files with 2 additions and 4 deletions

View file

@ -174,6 +174,7 @@ impl CodegenFnAttrs {
/// * `#[linkage]` is present
pub fn contains_extern_indicator(&self) -> bool {
self.flags.contains(CodegenFnAttrFlags::NO_MANGLE)
|| self.flags.contains(CodegenFnAttrFlags::RUSTC_STD_INTERNAL_SYMBOL)
|| self.export_name.is_some()
|| match self.linkage {
// These are private, so make sure we don't try to consider