Fix nit
This commit is contained in:
parent
5c98737715
commit
6665a4328b
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ impl<'tcx> expr_use_visitor::Delegate<'tcx> for ExprUseDelegate<'tcx> {
|
||||||
debug!("mutate {assignee_place:?}; diag_expr_id={diag_expr_id:?}");
|
debug!("mutate {assignee_place:?}; diag_expr_id={diag_expr_id:?}");
|
||||||
|
|
||||||
if assignee_place.place.base == PlaceBase::Rvalue
|
if assignee_place.place.base == PlaceBase::Rvalue
|
||||||
&& assignee_place.place.projections.len() == 0
|
&& assignee_place.place.projections.is_empty()
|
||||||
{
|
{
|
||||||
// Assigning to an Rvalue is illegal unless done through a dereference. We would have
|
// Assigning to an Rvalue is illegal unless done through a dereference. We would have
|
||||||
// already gotten a type error, so we will just return here.
|
// already gotten a type error, so we will just return here.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue