Skip to content

Commit ec27a63

Browse files
committed
Merge tag 'rust-fixes-6.5-rc7' of https://github.com/Rust-for-Linux/linux
Pull rust fix from Miguel Ojeda: - Macros: fix 'HAS_*' redefinition by the '#[vtable]' macro under conditional compilation * tag 'rust-fixes-6.5-rc7' of https://github.com/Rust-for-Linux/linux: rust: macros: vtable: fix `HAS_*` redefinition (`gen_const_name`)
2 parents 9e6c269 + 3fa7187 commit ec27a63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/macros/vtable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ pub(crate) fn vtable(_attr: TokenStream, ts: TokenStream) -> TokenStream {
7474
const {gen_const_name}: bool = false;",
7575
)
7676
.unwrap();
77+
consts.insert(gen_const_name);
7778
}
7879
} else {
7980
const_items = "const USE_VTABLE_ATTR: () = ();".to_owned();

0 commit comments

Comments
 (0)