We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31b3566 commit ee96b8bCopy full SHA for ee96b8b
src/librustc_middle/ty/error.rs
@@ -404,10 +404,8 @@ impl<'tcx> TyCtxt<'tcx> {
404
(ty::Param(_), ty::Projection(_)) | (ty::Projection(_), ty::Param(_)) => {
405
db.note("you might be missing a type parameter or trait bound");
406
}
407
- (ty::Param(p), ty::Dynamic(..))
408
- | (ty::Dynamic(..), ty::Param(p))
409
- | (ty::Param(p), ty::Opaque(..))
410
- | (ty::Opaque(..), ty::Param(p)) => {
+ (ty::Param(p), ty::Dynamic(..) | ty::Opaque(..))
+ | (ty::Dynamic(..) | ty::Opaque(..), ty::Param(p)) => {
411
let generics = self.generics_of(body_owner_def_id);
412
let p_span = self.def_span(generics.type_param(p, self).def_id);
413
if !sp.contains(p_span) {
0 commit comments