Rustfmt
This commit is contained in:
parent
a292ac7177
commit
f45a99361a
1 changed files with 4 additions and 1 deletions
|
@ -1826,7 +1826,10 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
||||||
exp_found: &ty::error::ExpectedFound<Ty<'tcx>>,
|
exp_found: &ty::error::ExpectedFound<Ty<'tcx>>,
|
||||||
diag: &mut DiagnosticBuilder<'tcx>,
|
diag: &mut DiagnosticBuilder<'tcx>,
|
||||||
) {
|
) {
|
||||||
debug!("suggest_accessing_field_where_appropriate(cause={:?}, exp_found={:?})", cause, exp_found);
|
debug!(
|
||||||
|
"suggest_accessing_field_where_appropriate(cause={:?}, exp_found={:?})",
|
||||||
|
cause, exp_found
|
||||||
|
);
|
||||||
if let ty::Adt(expected_def, expected_substs) = exp_found.expected.kind() {
|
if let ty::Adt(expected_def, expected_substs) = exp_found.expected.kind() {
|
||||||
if expected_def.is_enum() {
|
if expected_def.is_enum() {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue