Skip to content

Commit

Permalink
Rollup merge of #111612 - ChayimFriedman2:collect-into-slice-ref, r=p…
Browse files Browse the repository at this point in the history
…etrochenkov

Give better error when collecting into `&[T]`

The detection of slice reference of `{integral}` in `rustc_on_unimplemented` is hacky, but a proper solution requires changing `FmtPrinter` to add a parameter to print integers as `{integral}` and I didn't want to change it just for `rustc_on_unimplemented`. I can do that if requested, though.

I'm open to better wording; this is the best I could come up with.
  • Loading branch information
Dylan-DPC authored May 22, 2023
2 parents 17d9837 + 7329318 commit 171b71d
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 171b71d

Please sign in to comment.