You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0405]: cannot find trait `HeapSize` in this scope
--> src/main.rs:7:10
|
7 | #[derive(HeapSize)]
| ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
5 | use heapsize::HeapSize;
|
With Span::call_site() it correctly resolves the HeapSize imported by main.rs, but I want def_site() so that it resolves the one in scope within the heapsize_derive crate. Is this not implemented yet or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
With Span::call_site() it correctly resolves the HeapSize imported by main.rs, but I want def_site() so that it resolves the one in scope within the heapsize_derive crate. Is this not implemented yet or am I doing something wrong?
I got stuck trying to get
Span::def_site()
to resolve things correctly with--features proc-macro2/unstable
. @mystor could you take a look?Run
cargo build
in this directory to see the error.With
Span::call_site()
it correctly resolves theHeapSize
imported by main.rs, but I wantdef_site()
so that it resolves the one in scope within the heapsize_derive crate. Is this not implemented yet or am I doing something wrong?The text was updated successfully, but these errors were encountered: