mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
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 substs: SubstsRef<'tcx>,
|
||||
/// This field exists to prevent the creation of `TraitRef` without
|
||||
/// calling [TyCtxt::mk_trait_ref].
|
||||
pub(super) _use_mk_trait_ref_instead: (),
|
||||
/// calling [`TraitRef::new`].
|
||||
pub(super) _use_trait_ref_new_instead: (),
|
||||
}
|
||||
|
||||
impl<'tcx> TraitRef<'tcx> {
|
||||
@ -832,7 +832,7 @@ impl<'tcx> TraitRef<'tcx> {
|
||||
substs: impl IntoIterator<Item: Into<GenericArg<'tcx>>>,
|
||||
) -> Self {
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user