about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-30 01:19:37 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-09-30 03:31:09 +0200
commit378cc98cd9dce625331503e8e439ce25671a4d3e (patch)
tree5f137d6d316e3d29607b06389e59d498c4e7974f /src/libsyntax/parse
parentf2904674e8d0dbb6f7b02ae74aa81d930a0e8617 (diff)
downloadrust-378cc98cd9dce625331503e8e439ce25671a4d3e.tar.gz
rust-378cc98cd9dce625331503e8e439ce25671a4d3e.zip
syntax: `is_named_argument` -> `is_named_param`.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 2fb6f197dad..c183160168f 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -954,7 +954,7 @@ impl<'a> Parser<'a> {
         }
     }
 
-    fn is_named_argument(&self) -> bool {
+    fn is_named_param(&self) -> bool {
         let offset = match self.token.kind {
             token::Interpolated(ref nt) => match **nt {
                 token::NtPat(..) => return self.look_ahead(1, |t| t == &token::Colon),
@@ -993,7 +993,7 @@ impl<'a> Parser<'a> {
         }
 
         let is_name_required = is_name_required(&self.token);
-        let (pat, ty) = if is_name_required || self.is_named_argument() {
+        let (pat, ty) = if is_name_required || self.is_named_param() {
             debug!("parse_param_general parse_pat (is_name_required:{})", is_name_required);
 
             let pat = self.parse_fn_param_pat()?;