Make the assertion in Ident::new debug-only.
This fixes a perf regression introduced in #140252.
This commit is contained in:
parent
dcecb99176
commit
4cb9f0309d
1 changed files with 1 additions and 1 deletions
|
|
@ -2352,7 +2352,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