Be consistent about token accesors

This commit is contained in:
Aleksey Kladov 2020-04-09 18:40:43 +02:00
parent e6d22187a6
commit 2bfb65db93
14 changed files with 36 additions and 114 deletions

View file

@ -194,7 +194,7 @@ impl GenericParams {
}
fn add_where_predicate_from_bound(&mut self, bound: ast::TypeBound, type_ref: TypeRef) {
if bound.has_question_mark() {
if bound.question_token().is_some() {
// FIXME: remove this bound
return;
}