1 use crate::infer::canonical::{Canonical, CanonicalQueryResponse};
2 use crate::traits::query::Fallible;
3 use rustc_middle::ty::{ParamEnvAnd, TyCtxt};
5 pub use rustc_middle::traits::query::type_op::AscribeUserType;
7 impl<'tcx> super::QueryTypeOp<'tcx> for AscribeUserType<'tcx> {
8 type QueryResponse = ();
12 _key: &ParamEnvAnd<'tcx, Self>,
13 ) -> Option<Self::QueryResponse> {
19 canonicalized: Canonical<'tcx, ParamEnvAnd<'tcx, Self>>,
20 ) -> Fallible<CanonicalQueryResponse<'tcx, ()>> {
21 tcx.type_op_ascribe_user_type(canonicalized)