Skip to content

Commit

Permalink
Delete Ident::_new_raw
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 26, 2023
1 parent 0cb3649 commit bd778e1
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 bd778e1

Please sign in to comment.