]> git.lizzy.rs Git - rust.git/commit
remove the "defaulted unit" type bit during writeback
authorAriel Ben-Yehuda <ariel.byd@gmail.com>
Mon, 14 Aug 2017 10:23:56 +0000 (13:23 +0300)
committerAriel Ben-Yehuda <ariel.byd@gmail.com>
Mon, 14 Aug 2017 10:25:16 +0000 (13:25 +0300)
commita3a06b16776bb84d442a44187d9729e51ce0fece
tree7bfc6daf2f143ed1e8bef3c9e5c40b25fccb0dad
parentadbce60d6f131e5b3789f01417dedb05e4489898
remove the "defaulted unit" type bit during writeback

The defaulted unit bit is only relevant for the surrounding inference
context, and can cause trouble, including spurious lints and ICEs,
outside of it.

Fixes #43853.
src/librustc/infer/resolve.rs
src/librustc/ty/context.rs
src/librustc/ty/flags.rs
src/librustc/ty/mod.rs
src/test/run-pass/issue-43853.rs [new file with mode: 0644]