Replace another lock with an append-only vec
This commit is contained in:
parent
4699632637
commit
7edd1d8799
4 changed files with 20 additions and 4 deletions
|
@ -1947,7 +1947,7 @@ impl KeywordIdents {
|
|||
};
|
||||
|
||||
// Don't lint `r#foo`.
|
||||
if cx.sess().parse_sess.raw_identifier_spans.borrow().contains(&ident.span) {
|
||||
if cx.sess().parse_sess.raw_identifier_spans.contains(ident.span) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue