Make the assertion in Ident::new debug-only.
This fixes a perf regression introduced in #140252.
(cherry picked from commit 4cb9f0309d)
This commit is contained in:
parent
f5534dad0e
commit
281a202470
1 changed files with 1 additions and 1 deletions
|
|
@ -2353,7 +2353,7 @@ impl Ident {
|
|||
#[inline]
|
||||
/// Constructs a new identifier from a symbol and a span.
|
||||
pub fn new(name: Symbol, span: Span) -> Ident {
|
||||
assert_ne!(name, kw::Empty);
|
||||
debug_assert_ne!(name, kw::Empty);
|
||||
Ident { name, span }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue