I'm working on a Rust plugin that needs to access the absolute path of a trait bound. In practice, this means that for the following code, I want to resolve the full path of Debug as std::fmt::Debug.
use std::fmt::*;
#[foo]
trait Foo: Debug {}
My current approach consist of taking the Annotatable that MultiItemDecorator provides for me and pattern matching it to
Annotatable::Item, where I match .node to ItemKind::Trait. I then match .generic_bounds to a collection of GenericBound::Trait, where I retrieve .trait_ref.path.
This struct however only contains path(Debug), which is not enough information for me.