rust/src/librustc_codegen_llvm/mir
bors bfbf8375d7 Auto merge of #52488 - nikomatsakis:nll-issue-48071-universe-and-sub, r=pnkfelix
introduce universes to NLL type check

This branch aims to fix #48071 and also advance chalk integration a bit at the same time. It re-implements the subtyping/type-equating check so that NLL doesn't "piggy back" on the subtyping code of the old type checker.

This new code uses the "universe-based" approach to handling higher-ranked lifetimes, which sidesteps some of the limitations of the current "leak-based" scheme. This avoids the ICE in #48071.

At the same time, I aim for this to potentially be a kind of optimization. This NLL code is (currently) not cached, but it also generates constraints without doing as much instantiation, substitution, and folding. Right now, though, it still piggy backs on the `relate_tys` trait, which is a bit unfortunate -- it means we are doing more hashing and things than we have to. I want to measure the see the perf. Refactoring that trait is something I'd prefer to leave for follow-up work.

r? @pnkfelix -- but I want to measure perf etc first
2018-07-26 15:23:50 +00:00
..
analyze.rs parameterize BitVector and BitMatrix by their index types 2018-07-25 06:38:19 +03:00
block.rs Explain promoted extraction for simd shuffle 2018-07-23 09:51:30 +02:00
constant.rs Promoteds are statics and statics have a place, not just a value 2018-07-23 09:51:30 +02:00
mod.rs parameterize BitVector and BitMatrix by their index types 2018-07-25 06:38:19 +03:00
operand.rs Rollup merge of #52391 - Amanieu:volatile_unaligned, r=alexcrichton 2018-07-24 16:43:44 -06:00
place.rs Fix tidy 2018-07-23 09:51:30 +02:00
rvalue.rs Store scalar pair bools as i8 in memory 2018-07-05 09:59:52 -07:00
statement.rs rust-lang/rust#27282: Add StatementKind::ReadForMatch to MIR. 2018-05-29 23:01:36 +02:00