We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c98737 commit 6665a43Copy full SHA for 6665a43
compiler/rustc_typeck/src/check/generator_interior/drop_ranges/record_consumed_borrow.rs
@@ -182,7 +182,7 @@ impl<'tcx> expr_use_visitor::Delegate<'tcx> for ExprUseDelegate<'tcx> {
182
debug!("mutate {assignee_place:?}; diag_expr_id={diag_expr_id:?}");
183
184
if assignee_place.place.base == PlaceBase::Rvalue
185
- && assignee_place.place.projections.len() == 0
+ && assignee_place.place.projections.is_empty()
186
{
187
// Assigning to an Rvalue is illegal unless done through a dereference. We would have
188
// already gotten a type error, so we will just return here.
0 commit comments