Skip to content

Commit

Permalink
Merge pull request #420 from dtolnay/newraw
Browse files Browse the repository at this point in the history
Delete Ident::_new_raw
  • Loading branch information
dtolnay committed Nov 26, 2023
2 parents 0cb3649 + bd778e1 commit c513462
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Expand Up @@ -960,10 +960,6 @@ impl Ident {
/// segments (e.g. `self`, `super`) are not supported, and will cause a
/// panic.
pub fn new_raw(string: &str, span: Span) -> Self {
Ident::_new_raw(string, span)
}

fn _new_raw(string: &str, span: Span) -> Self {
Ident::_new(imp::Ident::new_raw(string, span.inner))
}

Expand Down
2 changes: 1 addition & 1 deletion src/parse.rs
Expand Up @@ -309,7 +309,7 @@ fn ident_any(input: Cursor) -> PResult<crate::Ident> {
_ => {}
}

let ident = crate::Ident::_new_raw(sym, crate::Span::call_site());
let ident = crate::Ident::new_raw(sym, crate::Span::call_site());
Ok((rest, ident))
}

Expand Down

0 comments on commit c513462

Please sign in to comment.