Add note to find_const_ty_from_env
This commit is contained in:
@@ -979,7 +979,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||
}
|
||||
ty::ConstKind::Bound(_, _) => bug!("escaping bound vars in {:?}", ct),
|
||||
ty::ConstKind::Param(param_ct) => {
|
||||
param_ct.find_ty_from_env(obligation.param_env)
|
||||
param_ct.find_const_ty_from_env(obligation.param_env)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user