about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/astconv/mod.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2023-09-25 15:46:38 +0200
committerlcnr <rust@lcnr.de>2023-09-26 09:37:55 +0200
commit3c52a3e280a5fd1e8e4b48a5ec349aa00dcd859c (patch)
treea3fba4b376549219f6c14cb165be2009d3236207 /compiler/rustc_hir_analysis/src/astconv/mod.rs
parentaf685931799459879b2a8995524755a06ffb5eec (diff)
downloadrust-3c52a3e280a5fd1e8e4b48a5ec349aa00dcd859c.tar.gz
rust-3c52a3e280a5fd1e8e4b48a5ec349aa00dcd859c.zip
subst -> instantiate
Diffstat (limited to 'compiler/rustc_hir_analysis/src/astconv/mod.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/astconv/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/astconv/mod.rs b/compiler/rustc_hir_analysis/src/astconv/mod.rs
index 106cd223d30..bb2e4447d4d 100644
--- a/compiler/rustc_hir_analysis/src/astconv/mod.rs
+++ b/compiler/rustc_hir_analysis/src/astconv/mod.rs
@@ -289,7 +289,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
     }
 
     /// Given a path `path` that refers to an item `I` with the declared generics `decl_generics`,
-    /// returns an appropriate set of substitutions for this particular reference to `I`.
+    /// returns an appropriate set of generic arguments for this particular reference to `I`.
     pub fn ast_path_args_for_ty(
         &self,
         span: Span,
@@ -315,7 +315,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
 
     /// Given the type/lifetime/const arguments provided to some path (along with
     /// an implicit `Self`, if this is a trait reference), returns the complete
-    /// set of substitutions. This may involve applying defaulted type parameters.
+    /// set of generic arguments. This may involve applying defaulted type parameters.
     /// Constraints on associated types are created from `create_assoc_bindings_for_generic_args`.
     ///
     /// Example: