We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9580059 commit 02bdbc2Copy full SHA for 02bdbc2
src/librustc_middle/ty/error.rs
@@ -395,10 +395,8 @@ impl<'tcx> TyCtxt<'tcx> {
395
(ty::Param(_), ty::Projection(_)) | (ty::Projection(_), ty::Param(_)) => {
396
db.note("you might be missing a type parameter or trait bound");
397
}
398
- (ty::Param(p), ty::Dynamic(..))
399
- | (ty::Dynamic(..), ty::Param(p))
400
- | (ty::Param(p), ty::Opaque(..))
401
- | (ty::Opaque(..), ty::Param(p)) => {
+ (ty::Param(p), ty::Dynamic(..) | ty::Opaque(..))
+ | (ty::Dynamic(..) | ty::Opaque(..), ty::Param(p)) => {
402
let generics = self.generics_of(body_owner_def_id);
403
let p_span = self.def_span(generics.type_param(p, self).def_id);
404
if !sp.contains(p_span) {
0 commit comments