]> git.lizzy.rs Git - rust.git/commit
get the `DefiningTy` from the `body_owner_kind` not type
authorNiko Matsakis <niko@alum.mit.edu>
Fri, 8 Dec 2017 18:07:23 +0000 (13:07 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 20 Dec 2017 19:04:51 +0000 (14:04 -0500)
commitfe89f4ba86b5b3adc1af5b795b3017c9500caba3
treebba4b634881214d77304582920feeb8688bd1617
parent0e64a756f84041e7c33acb052db9df9c9576e6d4
get the `DefiningTy` from the `body_owner_kind` not type

The type isn't a good idea because we want to treat constants
uniformly, regardless of what type of value they produce.
src/librustc_mir/borrow_check/nll/region_infer/annotation.rs
src/librustc_mir/borrow_check/nll/universal_regions.rs
src/test/ui/nll/constant.rs [new file with mode: 0644]