Function build_data::parse_rustc_semver[][src]

pub fn parse_rustc_semver(version: impl AsRef<str>) -> Result<String, String>

Gets the dotted-numeric version from the rustc version string.

Example: "1.53.0"

Errors

Returns an error if it fails to parse version.