bors
4f93357d3b
Auto merge of #47607 - davidtwco:issue-45697, r=nikomatsakis
...
MIR-borrowck: augmented assignment causes duplicate errors
Fixes #45697 . This PR resolves the error duplication. I attempted to replace the existing sets since there were quite a few but only managed to replace two of them.
r? @nikomatsakis
2018-02-07 02:20:23 +00:00
David Wood
5cd4b4fd95
Swapped order of left/right visits to ensure consistency in read/write pass ordering when -O is passed.
2018-02-05 22:31:56 +00:00
Santiago Pastorino
b9f756416a
Do not ignore lifetime bounds in Copy impls
...
Closes #29149
2018-01-30 14:00:27 -03:00
David Wood
f1c1db61e4
Updated other affected tests.
2018-01-27 13:33:10 +00:00
Ed Schouten
e47cc69697
Add testing coverage for assigning to immutable thread-locals.
...
It is currently allowed to perform such assignments when not making use
of NLL. NLL already does this right, but let's add a test in place to
ensure it never regresses.
2018-01-20 21:48:55 +01:00
David Teller
fcb10908b0
Issue #46589 - Kill borrows on a local variable whenever we assign over this variable
2017-12-21 18:35:59 +01:00
Niko Matsakis
6b39781df6
connect NLL machinery to the NiceRegionError code
2017-12-20 14:38:12 -05:00
Niko Matsakis
a30e2259da
fix closure tests now that MIR typeck works properly
...
These tests had FIXMEs for errors that were not previously being
reported.
2017-12-13 12:20:27 -05:00
Santiago Pastorino
688ab5af81
Check functions predicates
2017-12-13 06:03:26 -05:00
Santiago Pastorino
5010496677
Check Aggregate predicates
2017-12-13 06:03:26 -05:00
Santiago Pastorino
d6772cb972
Check Repeat Rvalue
2017-12-13 06:03:25 -05:00
est31
755fa9c23e
Update tests for -Zborrowck-mir -> -Zborrowck=mode migration
2017-11-26 16:39:15 +01:00
Paul Daniel Faria
47c6db09ee
Remove attributes and test comments accidentally left behind, add in span_mirbugs
2017-11-22 03:51:54 -05:00
Niko Matsakis
bf57a230eb
WIP patch compile-fail/nll/region-ends-after-if-condition.rs
2017-10-31 12:41:40 -04:00
Niko Matsakis
a94b01a0e2
connect MIR borrowck with NLL
2017-10-31 12:41:40 -04:00