about summary refs log tree commit diff
path: root/src/test/ui/nll
AgeCommit message (Collapse)AuthorLines
2018-04-04Regression test for #46314Valentine Valyaeff-0/+53
2018-04-04Formattinglloydmeta-1/+13
2018-04-04Add a test for the fix to issue #43058lloydmeta-0/+26
Followed the instructions laid out here https://github.com/rust-lang/rust/issues/43058#issuecomment-378389971
2018-03-26Stabilize conservative_impl_traitTaylor Cramer-8/+6
2018-03-23add test for issue-48238csmoe-0/+30
2018-03-15Rollup merge of #48988 - bobtwinkles:add_48070_test, r=nikomatsakiskennytm-0/+35
Add a test for #48070 Resolves #48070. The bug itself was fixed by #48770, but that PR didn't add a test for it. r? @nikomatsakis
2018-03-14update testsGuillaume Gomez-41/+41
2018-03-13Move 48070 test to uibobtwinkles-0/+35
2018-03-13add regression tests for various MIR bugs that get fixedNiko Matsakis-0/+106
Fixes #31567 Fixes #47470 Fixes #48132 Fixes #48179
2018-03-12address code review commentsgaurikholkar-2/+2
2018-03-11fix tidy issuesgaurikholkar-1/+1
2018-03-11add ui test for E0594gaurikholkar-0/+31
2018-03-09tidy: Add a check for stray `.stderr` and `.stdout` files in UI test directoriesVadim Petrochenkov-45/+0
2018-03-06Make causal tracking lazySantiago Pastorino-0/+2
2018-03-06Remove nll-dump-cause flag and always track causesSantiago Pastorino-33/+38
2018-03-01Make explain borrow work for Universal lifetimesSantiago Pastorino-12/+84
2018-02-28Do not report _#nr lifetimes names in errorsSantiago Pastorino-0/+83
2018-02-26Fix rebaseVadim Petrochenkov-121/+121
2018-02-26Update UI testsVadim Petrochenkov-34/+34
2018-02-26Update UI testsVadim Petrochenkov-609/+609
2018-02-25Update ui testsGuillaume Gomez-0/+35
2018-02-23update tests and reference filesNiko Matsakis-406/+406
The type checker invokes the borrow checker for closures it finds, so removing the NLL type checker affects ordering of errors somewhat.
2018-02-11Auto merge of #48092 - eddyb:discriminate-the-void, r=nikomatsakisbors-2/+15
rustc_mir: insert a dummy access to places being matched on, when building MIR. Fixes #47412 by adding a `_dummy = Discriminant(place)` before each `match place {...}`. r? @nikomatsakis
2018-02-09rustc_mir: insert a dummy access to places being matched on, when building MIR.Eduard-Mihai Burtescu-2/+15
2018-02-07Update trait-associated-const test to new formatbobtwinkles-20/+8
2018-02-06mir: Fix DefiningTy::Constbobtwinkles-0/+94
Fixes #47590 by fixing the way DefiningTy represents constants. Previously, constants were represented using just the type of the variable. However, this will fail to capture early-bound regions as NLL inference vars, resulting in an ICE when we try to compute region VIDs a little bit later in the universal region resolution process.
2018-01-27Fix new test from rebase.David Wood-1/+1
2018-01-27Updated tests with fixed span location.David Wood-10/+10
2018-01-22Auto merge of #47353 - nikomatsakis:nll-issue-47189, r=pnkfelix+nmatsakisbors-0/+35
renumber regions in generators This fixes #47189, but I think we still have to double check various things around how to treat generators in MIR type check + borrow check (e.g., what borrows should be invalidated by a `Suspend`? What consistency properties should type check be enforcing anyway around the "interior" type?) Also fixes #47587 thanks to @spastorino's commit. r? @pnkfelix
2018-01-15Add NLL test for #45045Christopher Vittal-0/+41
Closes #45045
2018-01-15Rollup merge of #47368 - chrisvittal:nll-tests, r=nikomatsakiskennytm-0/+75
Add NLL tests for #46557 and #38899 This adapts the sample code from the two issues into test code. Closes #46557 Closes #38899 r? @nikomatsakis
2018-01-15Auto merge of #47329 - davidtwco:issue-46983, r=nikomatsakisbors-7/+12
NLL: bad error message when converting anonymous lifetime to `'static` Fixes #46983. r? @nikomatsakis
2018-01-12remove unnecessary compile-flags commentsChristopher Vittal-12/+8
2018-01-11Add NLL tests for #46557 and #38899Chris Vittal-0/+79
Closes #47366 Adapt the sample code from the issues into mir-borrowck/nll test cases.
2018-01-11update test caseNiko Matsakis-8/+5
2018-01-11renumber regions in the generator interiorNiko Matsakis-0/+38
Fixes #47189.
2018-01-10Updated other tests affected by change.David Wood-7/+12
2018-01-10resolve type and region variables in "NLL dropck"Niko Matsakis-0/+47
Fixes #47022.
2017-12-24fix linking of place projectionsAriel Ben-Yehuda-0/+48
projections other than dereferences of `&mut` used to do no linking. Fix that. Fixes #46974.
2017-12-24Make killing of out-of-scope borrows a pre-statement effectAriel Ben-Yehuda-0/+30
Fixes #46875. Fixes #46917. Fixes #46935.
2017-12-21Add GenericParam, refactor Generics in ast, hir, rustdocJonas Platte-8/+8
The Generics now contain one Vec of an enum for the generic parameters, rather than two separate Vec's for lifetime and type parameters. Additionally, places that previously used Vec<LifetimeDef> now use Vec<GenericParam> instead.
2017-12-20convert region-liveness-drop{-,-no-}may-dangle.rs into ui testsNiko Matsakis-0/+114
The "match exact bits of CFG" approach was fragile and uninformative.
2017-12-20when using feature(nll), don't warn about AST-based region errorsNiko Matsakis-1/+52
Also, keep reporting AST-based region errors that are not occuring in a fn body.
2017-12-20Add nll feature and make nll imply nll_dump_causeSantiago Pastorino-6/+7
2017-12-20use `report_generic_bound_failure` when we can in the compilerNiko Matsakis-58/+102
2017-12-20connect NLL machinery to the `NiceRegionError` codeNiko Matsakis-62/+76
2017-12-20only dump causes if we have nothing betterNiko Matsakis-5/+5
2017-12-20Add three point error handling to borrowckSantiago Pastorino-9/+35
Closes #45988
2017-12-20connect NLL type checker to the impl trait codeNiko Matsakis-0/+118
We now add the suitable `impl Trait` constraints.
2017-12-20propagate `region_bound_pairs` into MIR type-checkNiko Matsakis-0/+252