diff options
| author | lcnr <rust@lcnr.de> | 2022-06-08 10:01:35 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-06-08 10:13:02 +0200 |
| commit | b7ab4777b2b09d50fa1c1d9c735e2f31ec5f8960 (patch) | |
| tree | 63dcf87e04dc7b589eee17740ad627f7261e7036 | |
| parent | f8e73ede831727ed1808d245b381703c0142b9ba (diff) | |
| download | rust-b7ab4777b2b09d50fa1c1d9c735e2f31ec5f8960.tar.gz rust-b7ab4777b2b09d50fa1c1d9c735e2f31ec5f8960.zip | |
note that methods should only be used for diags
| -rw-r--r-- | compiler/rustc_middle/src/ty/generics.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/generics.rs b/compiler/rustc_middle/src/ty/generics.rs index 5b0b56933ec..5fff840c39e 100644 --- a/compiler/rustc_middle/src/ty/generics.rs +++ b/compiler/rustc_middle/src/ty/generics.rs @@ -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>], |
