diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-01 12:49:36 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-01 12:49:36 +0100 |
commit | cf17366df97d460f246f69d06fbfb129074d1a5c (patch) | |
tree | cb6e4783b74d04ae2188fb04b652488e97429b99 /crates/ra_assists/src | |
parent | 5af32aeb2b83c7ae8adf3e088bf4f3691aa45eb1 (diff) | |
parent | bff8dd094958f1abe2fcfe8fe9f15dc7a7e6b53e (diff) |
Merge #5642
5642: Grammar updates r=matklad a=matklad
bors r+
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r-- | crates/ra_assists/src/handlers/introduce_named_lifetime.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/handlers/introduce_named_lifetime.rs b/crates/ra_assists/src/handlers/introduce_named_lifetime.rs index 4537c73a1..fbaf3c06b 100644 --- a/crates/ra_assists/src/handlers/introduce_named_lifetime.rs +++ b/crates/ra_assists/src/handlers/introduce_named_lifetime.rs | |||
@@ -68,7 +68,7 @@ fn generate_fn_def_assist( | |||
68 | let fn_params_without_lifetime: Vec<_> = param_list | 68 | let fn_params_without_lifetime: Vec<_> = param_list |
69 | .params() | 69 | .params() |
70 | .filter_map(|param| match param.ty() { | 70 | .filter_map(|param| match param.ty() { |
71 | Some(ast::Type::ReferenceType(ascribed_type)) | 71 | Some(ast::Type::RefType(ascribed_type)) |
72 | if ascribed_type.lifetime_token() == None => | 72 | if ascribed_type.lifetime_token() == None => |
73 | { | 73 | { |
74 | Some(ascribed_type.amp_token()?.text_range().end()) | 74 | Some(ascribed_type.amp_token()?.text_range().end()) |