@@ -204,7 +204,7 @@ fn insert_value_into_option_or_error(
204
204
if item. is_some ( ) {
205
205
cx. emit_err ( session_diagnostics:: MultipleItem {
206
206
span : param. span ( ) ,
207
- item : param. path_without_args ( ) . to_string ( ) ,
207
+ item : param. path ( ) . to_string ( ) ,
208
208
} ) ;
209
209
None
210
210
} else if let Some ( v) = param. args ( ) . name_value ( )
@@ -242,13 +242,13 @@ pub(crate) fn parse_stability(
242
242
return None ;
243
243
} ;
244
244
245
- match param. path_without_args ( ) . word_sym ( ) {
245
+ match param. path ( ) . word_sym ( ) {
246
246
Some ( sym:: feature) => insert_value_into_option_or_error ( cx, & param, & mut feature) ?,
247
247
Some ( sym:: since) => insert_value_into_option_or_error ( cx, & param, & mut since) ?,
248
248
_ => {
249
249
cx. emit_err ( session_diagnostics:: UnknownMetaItem {
250
250
span : param_span,
251
- item : param. path_without_args ( ) . to_string ( ) ,
251
+ item : param. path ( ) . to_string ( ) ,
252
252
expected : & [ "feature" , "since" ] ,
253
253
} ) ;
254
254
return None ;
@@ -310,7 +310,7 @@ pub(crate) fn parse_unstability(
310
310
return None ;
311
311
} ;
312
312
313
- match param. path_without_args ( ) . word_sym ( ) {
313
+ match param. path ( ) . word_sym ( ) {
314
314
Some ( sym:: feature) => insert_value_into_option_or_error ( cx, & param, & mut feature) ?,
315
315
Some ( sym:: reason) => insert_value_into_option_or_error ( cx, & param, & mut reason) ?,
316
316
Some ( sym:: issue) => {
@@ -349,7 +349,7 @@ pub(crate) fn parse_unstability(
349
349
_ => {
350
350
cx. emit_err ( session_diagnostics:: UnknownMetaItem {
351
351
span : param. span ( ) ,
352
- item : param. path_without_args ( ) . to_string ( ) ,
352
+ item : param. path ( ) . to_string ( ) ,
353
353
expected : & [ "feature" , "reason" , "issue" , "soft" , "implied_by" ] ,
354
354
} ) ;
355
355
return None ;
0 commit comments