about summary refs log tree commit diff
path: root/src/librustc
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-01-13 16:13:51 -0800
committerEsteban Küber <esteban@kuber.com.ar>2020-01-16 09:37:24 -0800
commitb4bbe784a9dc1f97f07e2543c6f726cb1eb4cc86 (patch)
tree08d009bd627ec62be02bdb2891b253a2c5022961 /src/librustc
parentea7e885204e1ed6b18406e84708abef748925ec5 (diff)
downloadrust-b4bbe784a9dc1f97f07e2543c6f726cb1eb4cc86.tar.gz
rust-b4bbe784a9dc1f97f07e2543c6f726cb1eb4cc86.zip
Make `impl Trait` suggestion in E0746 `MachineApplicable`
Diffstat (limited to 'src/librustc')
-rw-r--r--src/librustc/traits/error_reporting.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/traits/error_reporting.rs b/src/librustc/traits/error_reporting.rs
index 8f771658e40..8d0923f5718 100644
--- a/src/librustc/traits/error_reporting.rs
+++ b/src/librustc/traits/error_reporting.rs
@@ -1840,7 +1840,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
                                 last_ty, trait_obj,
                             ),
                             format!("impl {}", trait_obj),
-                            Applicability::MaybeIncorrect,
+                            Applicability::MachineApplicable,
                         );
                         err.note(impl_trait_msg);
                     } else {