mirror of
https://github.com/torvalds/linux.git
synced 2025-11-03 10:10:33 +02:00
If we define the same function name twice in a trait (using `#[cfg]`),
the `vtable` macro will redefine its `gen_const_name`, e.g. this will
define `HAS_BAR` twice:
#[vtable]
pub trait Foo {
#[cfg(CONFIG_X)]
fn bar();
#[cfg(not(CONFIG_X))]
fn bar(x: usize);
}
Fixes:
|
||
|---|---|---|
| .. | ||
| concat_idents.rs | ||
| helpers.rs | ||
| lib.rs | ||
| module.rs | ||
| pin_data.rs | ||
| pinned_drop.rs | ||
| quote.rs | ||
| vtable.rs | ||