Open ojeda opened 1 year ago
@nbdd0121 suggested:
It seems weird to me that this is called concat_idents despite working for more things than just idents. How about just implement a simple version of the paste macro instead?
It seems weird to me that this is called concat_idents despite working for more things than just idents.
concat_idents
How about just implement a simple version of the paste macro instead?
paste
Cc @bjorn3 since he implemented it and @asahilina since she needs the functionality for the DRM abstractions.
See https://lore.kernel.org/rust-for-linux/20230225003156.4858d79e.gary@garyguo.net/.
The nightly concat_idents! does not appear to support paths either: https://godbolt.org/z/eYYnG6an5
concat_idents!
Pros/cons of a core::paste! instead?
core::paste!
Impl: https://github.com/nbdd0121/linux/tree/paste
@nbdd0121 suggested:
Cc @bjorn3 since he implemented it and @asahilina since she needs the functionality for the DRM abstractions.
See https://lore.kernel.org/rust-for-linux/20230225003156.4858d79e.gary@garyguo.net/.
The nightly
concat_idents!
does not appear to support paths either: https://godbolt.org/z/eYYnG6an5Pros/cons of a
core::paste!
instead?