pub struct DeclarationSite {
pub label: Label,
pub provenance: Provenance,
pub origin: Origin,
}Expand description
A declared label, the build file that declared it, and whose code made the declaration.
Names the declaration an error is about: the one holding a bad reference, one target on a
dependency cycle, one declaration of a duplicated label, or the target a test run named that
is not a test. Displays as <file>: <label>, followed by (plugin <chain>) when a
plugin made the declaration.
Fields§
§label: LabelThe declared label.
provenance: ProvenanceThe build file that declared it.
origin: OriginWhose code made the declaration: the build file itself, or a plugin chain.
Trait Implementations§
Source§impl Clone for DeclarationSite
impl Clone for DeclarationSite
Source§impl Debug for DeclarationSite
impl Debug for DeclarationSite
Source§impl Display for DeclarationSite
impl Display for DeclarationSite
impl Eq for DeclarationSite
Source§impl From<&Node> for DeclarationSite
impl From<&Node> for DeclarationSite
Source§impl PartialEq for DeclarationSite
impl PartialEq for DeclarationSite
impl StructuralPartialEq for DeclarationSite
Auto Trait Implementations§
impl Forget for DeclarationSite
impl Freeze for DeclarationSite
impl RefUnwindSafe for DeclarationSite
impl Send for DeclarationSite
impl Sync for DeclarationSite
impl Unpin for DeclarationSite
impl UnsafeUnpin for DeclarationSite
impl UnwindSafe for DeclarationSite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more