File tree 1 file changed +5
-10
lines changed
compiler/rustc_parse_format/src
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -363,12 +363,7 @@ impl<'a> Parser<'a> {
363
363
/// Notifies of an error. The message doesn't actually need to be of type
364
364
/// String, but I think it does when this eventually uses conditions so it
365
365
/// might as well start using it now.
366
- fn err < S1 : Into < String > , S2 : Into < String > > (
367
- & mut self ,
368
- description : S1 ,
369
- label : S2 ,
370
- span : InnerSpan ,
371
- ) {
366
+ fn err ( & mut self , description : impl Into < String > , label : impl Into < String > , span : InnerSpan ) {
372
367
self . errors . push ( ParseError {
373
368
description : description. into ( ) ,
374
369
note : None ,
@@ -382,11 +377,11 @@ impl<'a> Parser<'a> {
382
377
/// Notifies of an error. The message doesn't actually need to be of type
383
378
/// String, but I think it does when this eventually uses conditions so it
384
379
/// might as well start using it now.
385
- fn err_with_note < S1 : Into < String > , S2 : Into < String > , S3 : Into < String > > (
380
+ fn err_with_note (
386
381
& mut self ,
387
- description : S1 ,
388
- label : S2 ,
389
- note : S3 ,
382
+ description : impl Into < String > ,
383
+ label : impl Into < String > ,
384
+ note : impl Into < String > ,
390
385
span : InnerSpan ,
391
386
) {
392
387
self . errors . push ( ParseError {
You can’t perform that action at this time.
0 commit comments