note that methods should only be used for diags
This commit is contained in:
parent
f8e73ede83
commit
b7ab4777b2
@ -230,6 +230,8 @@ impl<'tcx> Generics {
|
||||
|
||||
/// Returns the substs corresponding to the generic parameters
|
||||
/// of this item, excluding `Self`.
|
||||
///
|
||||
/// **This should only be used for diagnostics purposes.**
|
||||
pub fn own_substs_no_defaults(
|
||||
&'tcx self,
|
||||
tcx: TyCtxt<'tcx>,
|
||||
@ -261,6 +263,8 @@ impl<'tcx> Generics {
|
||||
}
|
||||
|
||||
/// Returns the substs corresponding to the generic parameters of this item, excluding `Self`.
|
||||
///
|
||||
/// **This should only be used for diagnostics purposes.**
|
||||
pub fn own_substs(
|
||||
&'tcx self,
|
||||
substs: &'tcx [ty::GenericArg<'tcx>],
|
||||
|
Loading…
x
Reference in New Issue
Block a user