Remove unnecessary sigils around Ident::as_str()
calls.
This commit is contained in:
parent
056d48a2c9
commit
b1c934ebb8
31 changed files with 41 additions and 42 deletions
|
@ -580,8 +580,7 @@ impl<'a> AstValidator<'a> {
|
|||
|
||||
/// An item in `extern { ... }` cannot use non-ascii identifier.
|
||||
fn check_foreign_item_ascii_only(&self, ident: Ident) {
|
||||
let symbol_str = ident.as_str();
|
||||
if !symbol_str.is_ascii() {
|
||||
if !ident.as_str().is_ascii() {
|
||||
let n = 83942;
|
||||
self.err_handler()
|
||||
.struct_span_err(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue