about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-01-18 18:06:38 +0100
committerGitHub <noreply@github.com>2019-01-18 18:06:38 +0100
commit25ea20dfeb79379a5624388a9a0608434f3fdc78 (patch)
tree7165063b9313f557d4774882ecee8cdef1313795 /src/rustllvm/RustWrapper.cpp
parentb0563fdb443fa0eefeb9e2a27f351e7e485df058 (diff)
parentfefe1dacb6255304dab5c13fb669b1d9d40f9e03 (diff)
downloadrust-25ea20dfeb79379a5624388a9a0608434f3fdc78.tar.gz
rust-25ea20dfeb79379a5624388a9a0608434f3fdc78.zip
Rollup merge of #57685 - pthariensflame:enhancement/pin-impl-applicability, r=withoutboats
Enhance `Pin` impl applicability for `PartialEq` and `PartialOrd`.

This allows for comparing for equality or ordering a `Pin<P>` and a `Pin<Q>` as long as `P` and `Q` are correspondingly comparable themselves *even when `P` and `Q` are different types*.
An example might be comparing a `Pin<&mut OsString>` to a `Pin<&mut PathBuf>`, which might arise from pin projections from a pair of larger contexts that aren't `Unpin`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions