rust/src/test/ui/unboxed-closures
kennytm 93f84e5586
Rollup merge of #55494 - pnkfelix:issue-55492-borrowck-migrate-must-look-at-parents-of-closures, r=davidtwco
borrowck=migrate must look at parents of closures

This fixes the NLL migration mode (which is the default with edition=2018) to inspect all parents of a closure in addition to the closure itself when looking to see if AST-borrowck issues an error for the given code.

This should be a candidate for beta backport.

Fix #55492
2018-10-30 18:55:37 +08:00
..
unboxed-closure-feature-gate.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-feature-gate.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-illegal-move.nll.stderr Don't emit cannot move errors twice in migrate mode 2018-10-29 20:22:01 +00:00
unboxed-closure-illegal-move.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-illegal-move.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-immutable-capture.nll.stderr Update compare-mode=nll stderr files to reflect the fix to #55492. 2018-10-30 00:37:38 +01:00
unboxed-closure-immutable-capture.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-immutable-capture.stderr use structured suggestion for "missing mut" label 2018-09-12 17:16:18 -04:00
unboxed-closure-no-cyclic-sig.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-no-cyclic-sig.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-region.nll.stderr Update NLL 3-point error message for fake reads in optimized let patterns 2018-09-18 14:36:37 +02:00
unboxed-closure-region.rs Removed ignore-test-compare-mode-nll from unboxed-closures tests 2018-08-15 23:47:29 +02:00
unboxed-closure-region.stderr Removed ignore-test-compare-mode-nll from unboxed-closures tests 2018-08-15 23:47:29 +02:00
unboxed-closure-sugar-default.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-default.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-equiv.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-equiv.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-lifetime-elision.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-lifetime-elision.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-not-used-on-fn.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-not-used-on-fn.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-region.rs Refactor generic argument count check in astconv 2018-08-19 20:02:34 +01:00
unboxed-closure-sugar-region.stderr Update new ui tests 2018-08-20 00:08:01 +01:00
unboxed-closure-sugar-used-on-struct-1.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-used-on-struct-1.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-used-on-struct-3.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-used-on-struct-3.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-used-on-struct.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-used-on-struct.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-wrong-number-number-type-parameters-1.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-wrong-number-number-type-parameters-3.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-wrong-number-number-type-parameters-3.stderr updates tests to use new error code 2018-08-24 08:51:25 -04:00
unboxed-closure-sugar-wrong-number-number-type-parameters.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closure-sugar-wrong-number-number-type-parameters.stderr updates tests to use new error code 2018-08-24 08:51:25 -04:00
unboxed-closure-sugar-wrong-trait.rs updates tests to use new error code 2018-08-24 08:51:25 -04:00
unboxed-closure-sugar-wrong-trait.stderr Auto merge of #53584 - mcr431:Fix-#53525, r=varkor 2018-08-25 13:00:20 +00:00
unboxed-closures-borrow-conflict.nll.stderr Removed ignore-test-compare-mode-nll from unboxed-closures tests 2018-08-15 23:47:29 +02:00
unboxed-closures-borrow-conflict.rs Removed ignore-test-compare-mode-nll from unboxed-closures tests 2018-08-15 23:47:29 +02:00
unboxed-closures-borrow-conflict.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-failed-recursive-fn-1.nll.stderr Use new region infer errors for explaining borrows 2018-10-21 12:35:00 +01:00
unboxed-closures-failed-recursive-fn-1.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-failed-recursive-fn-1.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-failed-recursive-fn-2.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-failed-recursive-fn-2.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-fnmut-as-fn.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-fnmut-as-fn.stderr update recently moved tests 2018-08-15 13:17:04 -07:00
unboxed-closures-infer-argument-types-two-region-pointers.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-argument-types-two-region-pointers.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fn-once-move-from-projection.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fn-once-move-from-projection.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fnmut-calling-fnmut-no-mut.nll.stderr Update compare-mode=nll stderr files to reflect the fix to #55492. 2018-10-30 00:37:38 +01:00
unboxed-closures-infer-fnmut-calling-fnmut-no-mut.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fnmut-calling-fnmut-no-mut.stderr use structured suggestion for "missing mut" label 2018-09-12 17:16:18 -04:00
unboxed-closures-infer-fnmut-missing-mut.nll.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fnmut-missing-mut.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fnmut-missing-mut.stderr use structured suggestion for "missing mut" label 2018-09-12 17:16:18 -04:00
unboxed-closures-infer-fnmut-move-missing-mut.nll.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fnmut-move-missing-mut.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fnmut-move-missing-mut.stderr use structured suggestion for "missing mut" label 2018-09-12 17:16:18 -04:00
unboxed-closures-infer-fnonce-call-twice.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fnonce-call-twice.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fnonce-move-call-twice.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-infer-fnonce-move-call-twice.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-mutate-upvar.nll.stderr Update compare-mode=nll stderr files to reflect the fix to #55492. 2018-10-30 00:37:38 +01:00
unboxed-closures-mutate-upvar.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-mutate-upvar.stderr use structured suggestion for "missing mut" label 2018-09-12 17:16:18 -04:00
unboxed-closures-mutated-upvar-from-fn-closure.ast.nll.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-mutated-upvar-from-fn-closure.ast.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-mutated-upvar-from-fn-closure.mir.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-mutated-upvar-from-fn-closure.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-recursive-fn-using-fn-mut.nll.stderr Clearer later use messages for calls 2018-10-03 20:32:38 +01:00
unboxed-closures-recursive-fn-using-fn-mut.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-recursive-fn-using-fn-mut.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-static-call-wrong-trait.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-static-call-wrong-trait.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-type-mismatch.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-type-mismatch.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-unsafe-extern-fn.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-unsafe-extern-fn.stderr update recently moved tests 2018-08-15 13:17:04 -07:00
unboxed-closures-wrong-abi.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-wrong-abi.stderr update recently moved tests 2018-08-15 13:17:04 -07:00
unboxed-closures-wrong-arg-type-extern-fn.rs Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
unboxed-closures-wrong-arg-type-extern-fn.stderr update recently moved tests 2018-08-15 13:17:04 -07:00