about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-02 19:29:33 +0200
committerGitHub <noreply@github.com>2025-07-02 19:29:33 +0200
commite0499e45831f9f8e8d16a09e3ba121310ffd294b (patch)
tree7b1da91c122588b9f5396246698b1bee999dd8d4 /compiler/rustc_parse/src/errors.rs
parentb94bd12401d26ccf1c3b04ceb4e950b0ff7c8d29 (diff)
parent739f4ac0d1997025e2284e0a7e70e28dd9597aff (diff)
downloadrust-e0499e45831f9f8e8d16a09e3ba121310ffd294b.tar.gz
rust-e0499e45831f9f8e8d16a09e3ba121310ffd294b.zip
Rollup merge of #131923 - ranger-ross:impl-copy-hash-interrorkind, r=tgross35
Derive `Copy` and `Hash` for `IntErrorKind`

This PR derives `Copy` and `Hash` for `IntErrorKind` to make it easier to work with. (see #131826)

I think an argument could be made to also derive `PartialOrd` + `Ord` as well given that other error kinds in the std like [`io::ErrorKind`](https://doc.rust-lang.org/src/std/io/error.rs.html#212-428) do this. Granted these seem much less useful for errors.

Fixes https://github.com/rust-lang/rust/issues/131826
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions