Skip to main content

declared_origin

Function declared_origin 

Source
pub fn declared_origin(ty: Type) -> Origin<Type>
Expand description

The origin of a type a build script wrote.

Real tokens, and deliberately no source position: SourceLocation::default() is the sanctioned placeless location for exactly this — a signature or type a build script authored was never in a captured file, and has_position already gates what a diagnostic prints for one.