X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_trait_selection%2Fsrc%2Ftraits%2Ferror_reporting%2Fmod.rs;h=8a679ca005f3d567740c89fdfbf98fc2e4a403ff;hb=60c1068c924d5dacaa2bebb4427cf5aaca9577e9;hp=3960f391407a386c5df580ab60b26925c3202882;hpb=1c8f87e9071a0eca3cb6ccab1ca2cc3d5ea2ad73;p=rust.git diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs index 3960f391407..8a679ca005f 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs @@ -665,6 +665,7 @@ fn report_selection_error( self.suggest_restricting_param_bound( &mut err, trait_predicate, + None, obligation.cause.body_id, ); } else if !suggested {