]> git.lizzy.rs Git - rust.git/commit
Normalize the function signature of closures
authorJames Miller <james@aatch.net>
Wed, 31 Aug 2016 04:40:43 +0000 (16:40 +1200)
committerJames Miller <james@aatch.net>
Wed, 31 Aug 2016 04:43:14 +0000 (16:43 +1200)
commite0279d71926d0fd7925f55f600bc9947dd070e68
tree9eda0dcbca81bdafa21bafca8ab970f0b1661ea3
parenteac41469d778d18ae7bf38fa917ed0fe122f944b
Normalize the function signature of closures

Previously we didn't normalize the function signatures used for
closures. This didn't cause a problem in most cases, but caused an ICE
in during MIR type checking.

Fixes #36139
src/librustc_typeck/astconv.rs
src/librustc_typeck/check/closure.rs
src/test/run-pass/issue-36139-normalize-closure-sig.rs [new file with mode: 0644]