Rename TraitRef::{_use_mk_trait_ref_instead => _use_trait_ref_new_instead}
This commit is contained in:
parent
c727edc0b7
commit
d9f842a4dc
@ -821,8 +821,8 @@ pub struct TraitRef<'tcx> {
|
|||||||
pub def_id: DefId,
|
pub def_id: DefId,
|
||||||
pub substs: SubstsRef<'tcx>,
|
pub substs: SubstsRef<'tcx>,
|
||||||
/// This field exists to prevent the creation of `TraitRef` without
|
/// This field exists to prevent the creation of `TraitRef` without
|
||||||
/// calling [TyCtxt::mk_trait_ref].
|
/// calling [`TraitRef::new`].
|
||||||
pub(super) _use_mk_trait_ref_instead: (),
|
pub(super) _use_trait_ref_new_instead: (),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'tcx> TraitRef<'tcx> {
|
impl<'tcx> TraitRef<'tcx> {
|
||||||
@ -832,7 +832,7 @@ impl<'tcx> TraitRef<'tcx> {
|
|||||||
substs: impl IntoIterator<Item: Into<GenericArg<'tcx>>>,
|
substs: impl IntoIterator<Item: Into<GenericArg<'tcx>>>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let substs = tcx.check_and_mk_substs(trait_def_id, substs);
|
let substs = tcx.check_and_mk_substs(trait_def_id, substs);
|
||||||
Self { def_id: trait_def_id, substs, _use_mk_trait_ref_instead: () }
|
Self { def_id: trait_def_id, substs, _use_trait_ref_new_instead: () }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn from_lang_item(
|
pub fn from_lang_item(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user