Skip to content

Fix EII - #962

Open
AsakuraMizu wants to merge 2 commits into
rust-lang:masterfrom
AsakuraMizu:eii
Open

Fix EII#962
AsakuraMizu wants to merge 2 commits into
rust-lang:masterfrom
AsakuraMizu:eii

Conversation

@AsakuraMizu

Copy link
Copy Markdown

Fix support for EII functions with defaults and EII statics. Now all tests/ui/eii tests pass.

@antoyo

antoyo commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

It seems there's some interactions with the inline attribute that should be handled as well.
For instance:

#![crate_type = "rlib"]
#![feature(extern_item_impls)]
#[eii(eii1)]
#[inline]
pub fn decl1(x: u64) {
    println!("default {x}");
}

panics with this warning:

libgccjit.so: warning: : inline function ‘_RNvCslJaV4vr0Uxj_9test_rust5decl1’ declared weak [-Wattributes]

Please add this as a test in tests/run and fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants