Closed mamekoro closed 4 months ago
Is this issue also present if you use derive more version 1.0.0-beta.6 ?
Thanks, this error seems to be gone in v1.0.0-beta.6.
cargo new repro
cd repro
cargo add derive_more@1.0.0-beta.6 --features display
cat <<'EOF' >src/main.rs
macro_rules! derive_recordable {
($item:item) => {
#[derive(
Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash,
::derive_more::Display,
)]
$item
};
}
derive_recordable! {
pub enum Event {
#[display("start")]
Start,
#[display("move({dx}, {dy})")]
Move { dx: i8, dy: i8 },
#[display("end")]
End,
}
}
fn main() {}
EOF
# now compiles successfully
cargo build
I'm going to close this issue for now, but is there any chance that this bug will be fixed before version 1.0.0?
rustc: 1.78.0 derive_more: 0.99.17
I tried to make a set of
derive
s reusable by defining a declarative macro, but I get the errorcannot find value `_derive_more_display_formatter` in this scope
.Here is a reproduction.
I got these errors;