Skip to content

Commit eb0e716

Browse files
committed
Make rustc_attr::parse_version pub
1 parent 8fe0c75 commit eb0e716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_attr/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ fn gate_cfg(gated_cfg: &GatedCfg, cfg_span: Span, sess: &Session, features: &Fea
574574
/// Parse a rustc version number written inside string literal in an attribute,
575575
/// like appears in `since = "1.0.0"`. Suffixes like "-dev" and "-nightly" are
576576
/// not accepted in this position, unlike when parsing CFG_RELEASE.
577-
fn parse_version(s: Symbol) -> Option<RustcVersion> {
577+
pub fn parse_version(s: Symbol) -> Option<RustcVersion> {
578578
let mut components = s.as_str().split('-');
579579
let d = components.next()?;
580580
if components.next().is_some() {

0 commit comments

Comments
 (0)