We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8e73ed commit b7ab477Copy full SHA for b7ab477
compiler/rustc_middle/src/ty/generics.rs
@@ -230,6 +230,8 @@ impl<'tcx> Generics {
230
231
/// Returns the substs corresponding to the generic parameters
232
/// of this item, excluding `Self`.
233
+ ///
234
+ /// **This should only be used for diagnostics purposes.**
235
pub fn own_substs_no_defaults(
236
&'tcx self,
237
tcx: TyCtxt<'tcx>,
@@ -261,6 +263,8 @@ impl<'tcx> Generics {
261
263
}
262
264
265
/// Returns the substs corresponding to the generic parameters of this item, excluding `Self`.
266
267
268
pub fn own_substs(
269
270
substs: &'tcx [ty::GenericArg<'tcx>],
0 commit comments