about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-24 10:29:14 +0000
committerbors <bors@rust-lang.org>2020-09-24 10:29:14 +0000
commit3a4da87f58099f08620a9a3e812abd77301cafb2 (patch)
tree6159733c14fd9c85f9ba72955c7cdf0768a0c61f /compiler/rustc_codegen_llvm/src/builder.rs
parent86b4172305bb28612510db9ad3ebf2a4bb86f70f (diff)
parent21edd10dc5ae8cde041f84a38fd0c4a44a36965d (diff)
downloadrust-3a4da87f58099f08620a9a3e812abd77301cafb2.tar.gz
rust-3a4da87f58099f08620a9a3e812abd77301cafb2.zip
Auto merge of #77049 - lcnr:const-eval-function-signature, r=oli-obk
const_evaluatable_checked: extend predicate collection

We now walk the hir instead of using `ty` so that we get better spans here, While I am still not completely sure if that's
what we want in the end, it does seem a lot closer to the final goal than the previous version.

We also look into type aliases (and use a `TypeVisitor` here), about which I am not completely sure, but we will see how well this works.

We also look into fn decls, so the following should work now.
```rust
fn test<T>() -> [u8; std::mem::size_of::<T>()] {
    [0; std::mem::size_of::<T>()]
}
```
Additionally, we visit the optional trait and self type of impls.

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions