Skip to content
  • Pietro Albini's avatar
    Rollup merge of #55138 - zackmdavis:the_paren_trap, r=pnkfelix · 6dfeb760
    Pietro Albini authored
    in which unused-parens suggestions heed what the user actually wrote
    
    Aaron Hill pointed out that unnecessary parens around a macro call (paradigmatically, `format!`) yielded a suggestion of hideous macro-expanded code. `span_to_snippet` is fallable as far as the type system is concerned, so the pretty-printing can live on in the oft-neglected `else` branch.
    
    Resolves #55109.
    6dfeb760