about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-10-07 22:05:31 +0530
committerGitHub <noreply@github.com>2022-10-07 22:05:31 +0530
commit34dfd82de014ebc3ff6cd613ea9e3d4767f0d171 (patch)
tree5cb1fe81ae450eeee3c06db7eb1ac65190b93722 /compiler/rustc_codegen_llvm/src
parentfe4200365e4478365ace6e819caacd586ab113be (diff)
parent414319468bc57ccba8be27e25581dd053469e27c (diff)
downloadrust-34dfd82de014ebc3ff6cd613ea9e3d4767f0d171.tar.gz
rust-34dfd82de014ebc3ff6cd613ea9e3d4767f0d171.zip
Rollup merge of #102764 - compiler-errors:issue-102762, r=jackh726
Check `WhereClauseReferencesSelf` after all other object safety checks

This fixes the ICE because it causes us to detect another *non-lint* `MethodViolationCode` first, instead of breaking on `WhereClauseReferencesSelf`.

We could also approach this issue by instead returning a vector of *all* of the `MethodViolationCode`s, and just reporting the first one we see, but treating it as a hard error if we return both `WhereClauseReferencesSelf` and some other violation code -- let me know if this is desired.

Fixes #102762
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions