rust/src/test/ui/nll
bors 881a7cd86e Auto merge of #49836 - nikomatsakis:nll-facts-prep, r=pnkfelix
prep work for using timely dataflow with NLL

Two major changes:

**Two-phase borrows are overhauled.** We no longer have two bits per borrow. Instead, we track -- for each borrow -- an (optional) "activation point". Then, for each point P where the borrow is in scope, we check where P falls relative to the activation point. If P is between the reservation point and the activation point, then this is the "reservation" phase of the borrow, else the borrow is considered active. This is simpler and means that the dataflow doesn't have to care about 2-phase at all, at last not yet.

**We no longer support using the MIR borrow checker without NLL.** It is going to be increasingly untenable to support lexical mode as we go forward, I think, and also of increasingly little value. This also exposed a few bugs in NLL mode due to increased testing.

r? @pnkfelix
cc @bobtwinkles
2018-04-17 14:23:57 +00:00
..
closure-requirements remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
ty-outlives remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
borrow-use-issue-46875.rs Make killing of out-of-scope borrows a pre-statement effect 2017-12-24 14:56:52 +02:00
borrowed-local-error.rs Remove nll-dump-cause flag and always track causes 2018-03-06 10:34:46 -03:00
borrowed-local-error.stderr update tests 2018-03-14 00:53:24 +01:00
borrowed-match-issue-45045.rs rustc_mir: insert a dummy access to places being matched on, when building MIR. 2018-02-09 23:25:10 +02:00
borrowed-match-issue-45045.stderr update tests 2018-03-14 00:53:24 +01:00
borrowed-referent-issue-38899.rs remove unnecessary compile-flags comments 2018-01-12 10:38:28 -05:00
borrowed-referent-issue-38899.stderr update tests 2018-03-14 00:53:24 +01:00
borrowed-temporary-error.rs Remove nll-dump-cause flag and always track causes 2018-03-06 10:34:46 -03:00
borrowed-temporary-error.stderr update tests 2018-03-14 00:53:24 +01:00
borrowed-universal-error-2.rs Remove nll-dump-cause flag and always track causes 2018-03-06 10:34:46 -03:00
borrowed-universal-error-2.stderr update tests 2018-03-14 00:53:24 +01:00
borrowed-universal-error.rs Remove nll-dump-cause flag and always track causes 2018-03-06 10:34:46 -03:00
borrowed-universal-error.stderr update tests 2018-03-14 00:53:24 +01:00
capture-ref-in-struct.rs Remove nll-dump-cause flag and always track causes 2018-03-06 10:34:46 -03:00
capture-ref-in-struct.stderr update tests 2018-03-14 00:53:24 +01:00
constant.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
decl-macro-illegal-copy.rs Regression test for #46314 2018-04-04 11:36:38 +03:00
decl-macro-illegal-copy.stderr Regression test for #46314 2018-04-04 11:36:38 +03:00
drop-may-dangle.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
drop-may-dangle.stderr convert region-liveness-drop{-,-no-}may-dangle.rs into ui tests 2017-12-20 14:38:13 -05:00
drop-no-may-dangle.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
drop-no-may-dangle.stderr Stabilize attributes on generic parameters 2018-04-05 02:19:56 +03:00
generator-distinct-lifetime.rs Rename must-compile-successfully into compile-pass 2018-04-13 23:28:03 +02:00
get_default.nll.stderr Checkpoint the current status of NLL on ui tests via compare-mode=nll. 2018-04-11 00:38:35 +02:00
get_default.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
get_default.stderr update tests 2018-03-14 00:53:24 +01:00
guarantor-issue-46974.rs Updated other tests affected by change. 2018-01-10 19:12:57 +00:00
guarantor-issue-46974.stderr update tests 2018-03-14 00:53:24 +01:00
issue-16223.rs Rename must-compile-successfully into compile-pass 2018-04-13 23:28:03 +02:00
issue-31567.rs add regression tests for various MIR bugs that get fixed 2018-03-13 11:22:07 -04:00
issue-31567.stderr update tests 2018-03-14 00:53:24 +01:00
issue-43058.rs Rename must-compile-successfully into compile-pass 2018-04-13 23:28:03 +02:00
issue-47022.rs Rename must-compile-successfully into compile-pass 2018-04-13 23:28:03 +02:00
issue-47388.rs fix ui test 2018-04-06 23:03:20 +05:30
issue-47388.stderr fix error span 2018-04-14 11:04:39 +08:00
issue-47470.rs add regression tests for various MIR bugs that get fixed 2018-03-13 11:22:07 -04:00
issue-47470.stderr update tests 2018-03-14 00:53:24 +01:00
issue-48070.rs Move 48070 test to ui 2018-03-13 14:52:11 -04:00
issue-48238.rs add test for issue-48238 2018-03-23 18:01:05 +08:00
issue-48238.stderr add test for issue-48238 2018-03-23 18:01:05 +08:00
maybe-initialized-drop-implicit-fragment-drop.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
maybe-initialized-drop-implicit-fragment-drop.stderr update tests 2018-03-14 00:53:24 +01:00
maybe-initialized-drop-uninitialized.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
maybe-initialized-drop-uninitialized.stderr inform constraint generation using maybe-init 2017-12-04 08:51:11 -05:00
maybe-initialized-drop-with-fragment.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
maybe-initialized-drop-with-fragment.stderr update tests 2018-03-14 00:53:24 +01:00
maybe-initialized-drop-with-uninitialized-fragments.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
maybe-initialized-drop-with-uninitialized-fragments.stderr update tests 2018-03-14 00:53:24 +01:00
maybe-initialized-drop.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
maybe-initialized-drop.stderr update tests 2018-03-14 00:53:24 +01:00
projection-return.rs remove -Znll -- borrowck=mir implies nll now 2018-04-15 07:13:42 -04:00
return-ref-mut-issue-46557.rs remove unnecessary compile-flags comments 2018-01-12 10:38:28 -05:00
return-ref-mut-issue-46557.stderr update tests 2018-03-14 00:53:24 +01:00
trait-associated-constant.rs mir: Fix DefiningTy::Const 2018-02-06 23:42:05 -05:00
trait-associated-constant.stderr update tests 2018-03-14 00:53:24 +01:00