about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-19 06:45:32 +0100
committerGitHub <noreply@github.com>2022-02-19 06:45:32 +0100
commitc28940e49d31c0abaaec91ff3071932335b5b3b6 (patch)
treee7115cc028ce8027b28a2a286e0d9bd3b2ef28c7 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent78e4456e1f08a7ebf2b40017fd3de835ceb2b669 (diff)
parentf41722a2ad1b941c73c77133ba2c87f83d10620d (diff)
downloadrust-c28940e49d31c0abaaec91ff3071932335b5b3b6.tar.gz
rust-c28940e49d31c0abaaec91ff3071932335b5b3b6.zip
Rollup merge of #94006 - pierwill:upvar-field, r=nikomatsakis
Use a `Field` in `ConstraintCategory::ClosureUpvar`

As part of #90317, we do not want `HirId` to implement `Ord`, `PartialOrd`. This line of code has made that difficult

https://github.com/rust-lang/rust/blob/1b27144afc77031ba9c05d86c06c64485589775a/compiler/rustc_borrowck/src/region_infer/mod.rs#L2184

since it sorts a [`ConstraintCategory::ClosureUpvar(HirId)`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/enum.ConstraintCategory.html#variant.ClosureUpvar).

This PR makes that variant take a [`Field`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Field.html) instead.

r? `@nikomatsakis`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions