about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-08-11 04:18:39 +0900
committerGitHub <noreply@github.com>2021-08-11 04:18:39 +0900
commit6c92656624b3e3c00748fd8b41d925787110a638 (patch)
treeb7e4f2cff7b6c6f3224289bb8b232fa39d75084f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent6412bf98ea65cb0f50959c857088fd77cdc2980f (diff)
parent5f61271e382cfab7159a6dedcf673cafaab51e5a (diff)
downloadrust-6c92656624b3e3c00748fd8b41d925787110a638.tar.gz
rust-6c92656624b3e3c00748fd8b41d925787110a638.zip
Rollup merge of #87854 - BoxyUwU:var-None, r=oli-obk
correctly handle enum variants in `opt_const_param_of`

Fixes #87542

`opt_const_param_of` was returning `None` for args on an enum variant `Enum::Variant::<10>` because we called `generics_of` on the enum variant which has no generics.

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions