about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-13 20:31:22 +0000
committerbors <bors@rust-lang.org>2021-04-13 20:31:22 +0000
commit8f3c2450c2dff0d4ae82395699809d3ea726d6c2 (patch)
tree7c429833696b8844dcea2cfcd60c8ab54732362b /tests/codegen/src-hash-algorithm
parente9728b80ce38a1ab94d90d125726d5503e6ab3bb (diff)
parent76bd5d232c767dbdab63005eca07a9563982e9dd (diff)
downloadrust-8f3c2450c2dff0d4ae82395699809d3ea726d6c2.tar.gz
rust-8f3c2450c2dff0d4ae82395699809d3ea726d6c2.zip
Auto merge of #7074 - camsteffen:diag-methods, r=llogiq
Split `is_diagnostic_assoc_item`

changelog: none

* Split `is_diagnostic_assoc_item` into `is_diag_item_method` and `is_diag_trait_item`
  * `is_diag_item_method` is a bit more nuanced with the `tcx.type_of(impl_id).ty_adt_def()` step, so it seems better to keep that separate.
  * No need to generalize over traits and Adt's since we know which one we want at compile time
  * "item" vs. "method" because a trait may have associated items.
* Replaces the usage of the `sym::slice` diagnostic item with the `slice_alloc` lang item. The diagnostic item should be removed from rustc because it is on the `slice_alloc` impl, not slice itself (and it's not needed).
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions