mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
fix: simplify boolean test to a single negation
This commit is contained in:
parent
d7fdf141a4
commit
5411836767
@ -19,7 +19,7 @@ use super::*;
|
||||
// struct S;
|
||||
pub(super) fn mod_contents(p: &mut Parser<'_>, stop_on_r_curly: bool) {
|
||||
attributes::inner_attrs(p);
|
||||
while !p.at(EOF) && !(p.at(T!['}']) && stop_on_r_curly) {
|
||||
while !(p.at(EOF) || (p.at(T!['}']) && stop_on_r_curly)) {
|
||||
item_or_macro(p, stop_on_r_curly);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user