about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2019-09-14 21:16:51 +0100
committerMatthew Jasper <mjjasper1@gmail.com>2019-09-15 09:15:38 +0100
commit5ae3830d589ec75494ff26bd9c92e9f77e49173f (patch)
treef19445d87a85d724de3ca80d825e68c5c13456fb /src/libsyntax/parse
parent57a45e9cbd951efd8224c3535431890b7bef9e6a (diff)
downloadrust-5ae3830d589ec75494ff26bd9c92e9f77e49173f.tar.gz
rust-5ae3830d589ec75494ff26bd9c92e9f77e49173f.zip
Give more `Idents` spans
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser/item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/item.rs b/src/libsyntax/parse/parser/item.rs
index baae6155f34..cf196645e4f 100644
--- a/src/libsyntax/parse/parser/item.rs
+++ b/src/libsyntax/parse/parser/item.rs
@@ -1256,7 +1256,7 @@ impl<'a> Parser<'a> {
             for part in idents {
                 fixed_name.push_str(&format!("_{}", part.name));
             }
-            ident = Ident::from_str(&fixed_name).with_span_pos(fixed_name_sp);
+            ident = Ident::from_str_and_span(&fixed_name, fixed_name_sp);
 
             self.struct_span_err(fixed_name_sp, error_msg)
                 .span_label(fixed_name_sp, "dash-separated idents are not valid")