Skip to content

Commit ed11a77

Browse files
ChayimFriedman2lnicola
authored andcommitted
Merge pull request rust-lang#21007 from joe-p/feat/more_param_names
Add "msg" and "op" to hidden inlay parameter names
1 parent c5b2855 commit ed11a77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/ide/src/inlay_hints/param_name.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ fn get_callable<'db>(
111111
}
112112

113113
const INSIGNIFICANT_METHOD_NAMES: &[&str] = &["clone", "as_ref", "into"];
114-
const INSIGNIFICANT_PARAMETER_NAMES: &[&str] = &["predicate", "value", "pat", "rhs", "other"];
114+
const INSIGNIFICANT_PARAMETER_NAMES: &[&str] =
115+
&["predicate", "value", "pat", "rhs", "other", "msg", "op"];
115116

116117
fn should_hide_param_name_hint(
117118
sema: &Semantics<'_, RootDatabase>,

0 commit comments

Comments
 (0)