fn validate_taint_location(
location: TaintLocation,
spec_idx: usize,
prop_idx: usize,
field: &str,
) -> Result<(), SchemaError>Expand description
Validate a [TaintLocation] is not Unknown.
Returns an error if the location is [TaintLocation::Unknown], which indicates
an unrecognized string was used in the YAML spec.