Enum target_spec::errors::Error [−][src]
#[non_exhaustive]
pub enum Error {
InvalidExpression(ExpressionParseError),
UnknownTargetTriple(TripleParseError),
UnknownPlatformTriple(TripleParseError),
UnknownPredicate(String),
}Expand description
An error that happened during target-spec parsing or evaluation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidExpression(ExpressionParseError)
Tuple Fields
A cfg() expression was invalid and could not be parsed.
UnknownTargetTriple(TripleParseError)
Tuple Fields
The provided target triple (in the position that a cfg() expression would be) was unknown.
UnknownPlatformTriple(TripleParseError)
Tuple Fields
The provided platform triple was unknown.
UnknownPredicate(String)
Tuple Fields
0: StringThe provided cfg() expression parsed correctly, but it had an unknown predicate.