about summary refs log tree commit diff
path: root/src/test/run-pass/borrowck
AgeCommit message (Collapse)AuthorLines
2019-07-27tests: Move run-pass tests with naming conflicts to uiVadim Petrochenkov-341/+0
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-709/+0
2019-06-21Added test for deref projection.Felix S. Klock II-0/+27
2019-06-21add comment outlining test.Felix S. Klock II-0/+5
2019-06-21rename file because I found the old filename too long and unwieldy.Felix S. Klock II-0/+0
2019-06-20Kill conflicting borrows of places with projections.Dylan MacKenzie-0/+21
Resolves #62007. Due to a bug, the previous version of this check did not actually kill any conflicting borrows unless the borrowed place had no projections. Specifically, `entry_set` will always be empty when `statement_effect` is called. It does not contain the set of borrows which are live at this point in the program.
2019-05-29Update run-pass test suite to use dynmemoryruins-2/+2
2019-05-12Remove feature(nll) when compare mode is sufficientMatthew Jasper-7/+0
2019-04-22update tests for migrate mode by defaultMatthew Jasper-10/+0
2018-12-25Remove licensesMark Rousskov-300/+0
2018-09-26Add `#![allow(..)]` as necessary to get re-migrated run-pass tests compiling ↵Felix S. Klock II-0/+15
with clean stderr again. Most were added mechanically.
2018-09-26Migrate `src/test/ui/run-pass/*` back to `src/test/run-pass/`.Felix S. Klock II-0/+1299
Fix #54047
2018-09-06Migrated `src/test/run-pass/borrowck` to `src/test/ui/run-pass`.Felix S. Klock II-1266/+0
Just shuffling files here; the needed updates to content come later.
2018-08-05Convert unknown_features lint into an errorvarkor-7/+0
2018-07-05fix for issue #8636Mikhail Modin-0/+33
2018-06-04tests that #39963 is fixed on MIR borrowckErin Moon-0/+29
2018-04-28Track unused mutable variables across closuresKeith Yeung-0/+56
2018-04-15remove -Znll -- borrowck=mir implies nll nowNiko Matsakis-3/+1
2018-02-15Fix arguments specified by lxl in two-phase-bin-ops testbobtwinkles-1/+0
2018-02-13Allow two-phase borrows of &mut self in opsbobtwinkles-0/+49
We need two-phase borrows of ops to be in the initial NLL release since without them lots of existing code will break. Fixes #48129
2018-01-23Remove similar test that does not run the resultritiek-34/+0
2017-12-21Issue #46589 - Kill borrows on a local variable whenever we assign over this ↵David Teller-0/+34
variable
2017-12-20feature nll implies borrowck=mirSantiago Pastorino-1/+0
2017-12-20feature nll implies two-phase-borrowsSantiago Pastorino-1/+3
2017-12-14Review feedback: Added test with control flow merge of two borrows "before ↵Felix S. Klock II-0/+27
activation" In reality the currently generated MIR has at least one of the activations in a copy that occurs before the merge. But still, good to have a test, in anticipation of that potentially changing...
2017-12-13the minimal test for two-phase borrows: the core example from niko's blog ↵Felix S. Klock II-0/+21
post on it.
2017-11-26Update tests for -Zborrowck-mir -> -Zborrowck=mode migrationest31-4/+3
2017-11-17Add run-pass test for assignment to static mutKeith Yeung-0/+23
2017-11-17Allow assignment to static mutsKeith Yeung-0/+31
2016-10-31Changed most vec! invocations to use square bracesiirelu-2/+2
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-10-18Fix some pretty printing testsVadim Petrochenkov-1/+1
2016-07-31Don't gate methods `Fn(Mut,Once)::call(mut,once)` with feature ↵Vadim Petrochenkov-1/+0
`unboxed_closures` They are already gated with feature `fn_traits`
2016-02-25Use `box` syntax in `vec!` macroAndrew Paseltiner-3/+0
Closes #28950.
2016-02-24Move the borrowck run-pass/compile-fail tests into their own directoriesNiko Matsakis-0/+1011
as a test.