@@ -204,7 +204,7 @@ fn insert_value_into_option_or_error(
204204 if item. is_some ( ) {
205205 cx. emit_err ( session_diagnostics:: MultipleItem {
206206 span : param. span ( ) ,
207- item : param. path_without_args ( ) . to_string ( ) ,
207+ item : param. path ( ) . to_string ( ) ,
208208 } ) ;
209209 None
210210 } else if let Some ( v) = param. args ( ) . name_value ( )
@@ -242,13 +242,13 @@ pub(crate) fn parse_stability(
242242 return None ;
243243 } ;
244244
245- match param. path_without_args ( ) . word_sym ( ) {
245+ match param. path ( ) . word_sym ( ) {
246246 Some ( sym:: feature) => insert_value_into_option_or_error ( cx, & param, & mut feature) ?,
247247 Some ( sym:: since) => insert_value_into_option_or_error ( cx, & param, & mut since) ?,
248248 _ => {
249249 cx. emit_err ( session_diagnostics:: UnknownMetaItem {
250250 span : param_span,
251- item : param. path_without_args ( ) . to_string ( ) ,
251+ item : param. path ( ) . to_string ( ) ,
252252 expected : & [ "feature" , "since" ] ,
253253 } ) ;
254254 return None ;
@@ -310,7 +310,7 @@ pub(crate) fn parse_unstability(
310310 return None ;
311311 } ;
312312
313- match param. path_without_args ( ) . word_sym ( ) {
313+ match param. path ( ) . word_sym ( ) {
314314 Some ( sym:: feature) => insert_value_into_option_or_error ( cx, & param, & mut feature) ?,
315315 Some ( sym:: reason) => insert_value_into_option_or_error ( cx, & param, & mut reason) ?,
316316 Some ( sym:: issue) => {
@@ -349,7 +349,7 @@ pub(crate) fn parse_unstability(
349349 _ => {
350350 cx. emit_err ( session_diagnostics:: UnknownMetaItem {
351351 span : param. span ( ) ,
352- item : param. path_without_args ( ) . to_string ( ) ,
352+ item : param. path ( ) . to_string ( ) ,
353353 expected : & [ "feature" , "reason" , "issue" , "soft" , "implied_by" ] ,
354354 } ) ;
355355 return None ;
0 commit comments