about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2025-02-04 23:07:35 +0200
committerChayim Refael Friedman <chayimfr@gmail.com>2025-02-04 23:07:35 +0200
commit54ad31b5b885bfcec5fd7d470ed03c0718656cac (patch)
treea4c344e7c0f43dc8b9bb5831ec4ca4e77d28b7a7 /src
parentcee2df27b7a1ae72cecad3d1d4d16911db1e596d (diff)
downloadrust-54ad31b5b885bfcec5fd7d470ed03c0718656cac.tar.gz
rust-54ad31b5b885bfcec5fd7d470ed03c0718656cac.zip
Fix incorrect terminology
Lifetimes are elided in function signatures, and inferred in bodies.
Diffstat (limited to 'src')
-rw-r--r--src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs b/src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs
index 86e5afdb509..ab3c039ece3 100644
--- a/src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs
+++ b/src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs
@@ -2132,8 +2132,8 @@ impl InferenceContext<'_> {
             for kind_id in def_generics.iter_self_id().take(self_params) {
                 let arg = args.peek();
                 let arg = match (kind_id, arg) {
-                    // Lifetimes can be elided.
-                    // Once we have implemented lifetime elision correctly,
+                    // Lifetimes can be inferred.
+                    // Once we have implemented lifetime inference correctly,
                     // this should be handled in a proper way.
                     (
                         GenericParamId::LifetimeParamId(_),