Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/static_index.rs')
-rw-r--r--crates/ide/src/static_index.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ide/src/static_index.rs b/crates/ide/src/static_index.rs
index a06793cf51..3c81bfa3a9 100644
--- a/crates/ide/src/static_index.rs
+++ b/crates/ide/src/static_index.rs
@@ -12,11 +12,14 @@ use ide_db::{
use rustc_hash::FxHashSet;
use syntax::{AstNode, SyntaxKind::*, SyntaxToken, TextRange, T};
-use crate::moniker::{crate_for_file, def_to_moniker, MonikerResult};
use crate::{
hover::hover_for_definition, Analysis, Fold, HoverConfig, HoverDocFormat, HoverResult,
InlayHint, InlayHintsConfig, TryToNav,
};
+use crate::{
+ moniker::{crate_for_file, def_to_moniker, MonikerResult},
+ LifetimeElisionHints,
+};
/// A static representation of fully analyzed source code.
///
@@ -110,7 +113,9 @@ impl StaticIndex<'_> {
parameter_hints: true,
chaining_hints: true,
closure_return_type_hints: true,
+ lifetime_elision_hints: LifetimeElisionHints::Never,
hide_named_constructor_hints: false,
+ param_names_for_lifetime_elision_hints: false,
max_length: Some(25),
},
file_id,