rust/src/test/compile-fail/borrowck
bors b218a02ad8 Auto merge of #45519 - michaelwoerister:dedup-errors, r=arielb1
Don't emit the same compiler diagnostic twice.

This PR makes the compiler filter out diagnostic messages that have already been emitted during the same compilation session.
2017-10-26 18:16:15 +00:00
..
borrowck-and-init.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-anon-fields-struct.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-anon-fields-tuple.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-anon-fields-variant.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-argument.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-assign-comp-idx.rs Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
borrowck-assign-comp.rs mir-borrowck: Fix existing tests 2017-10-06 17:44:50 +02:00
borrowck-assign-to-andmut-in-aliasable-loc.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-assign-to-andmut-in-borrowed-loc.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-assign-to-constants.rs mir-borrowck: Factorize error message for cannot_assign_static() between AST and MIR borrowck 2017-09-29 15:41:26 +02:00
borrowck-auto-mut-ref-to-immut-var.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-autoref-3261.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-bad-nested-calls-free.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-bad-nested-calls-move.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-block-unint.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-borrow-from-owned-ptr.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-borrow-from-stack-variable.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-borrow-from-temporary.rs Stabilize rvalue promotion to 'static. 2017-08-16 20:30:56 +03:00
borrowck-borrow-immut-deref-of-box-as-mut.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-borrow-mut-base-ptr-in-aliasable-loc.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-borrow-mut-object-twice.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-borrow-overloaded-auto-deref.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-borrow-overloaded-deref.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-borrowed-uniq-rvalue-2.rs Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
borrowck-borrowed-uniq-rvalue.rs Removes FIXMEs related to #22405 2017-01-31 21:27:13 -05:00
borrowck-box-insensitivity.rs Merge ty::TyBox into ty::TyAdt 2017-01-30 23:14:15 +03:00
borrowck-break-uninit-2.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-break-uninit.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-closures-mut-and-imm.rs mir-borrowck: Fix existing tests 2017-10-06 17:44:50 +02:00
borrowck-closures-mut-of-imm.rs update test cases to reflect new messages 2016-05-02 11:47:10 -04:00
borrowck-closures-two-mut.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-closures-unique-imm.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-closures-unique.rs update test cases to reflect new messages 2016-05-02 11:47:10 -04:00
borrowck-closures-use-after-free.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-consume-unsize-vec.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-consume-upcast-box.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-describe-lvalue.rs mir-borrowck: Implement end-user output for field of reference, pointer and array 2017-10-06 17:44:50 +02:00
borrowck-escaping-closure-error-1.rs Update error format for E0373 2016-08-05 19:53:14 +02:00
borrowck-escaping-closure-error-2.rs Update error format for E0373 2016-08-05 19:53:14 +02:00
borrowck-field-sensitivity.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-fn-in-const-a.rs Unit tests for gathering and reporting move-errors from mir-borrowck. 2017-10-04 13:29:55 +02:00
borrowck-fn-in-const-c.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-for-loop-correct-cmt-for-pattern.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-for-loop-head-linkage.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-if-no-else.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-if-with-else.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs mir-borrowck: Edit compile-fail tests with E0506 error to also test on MIR borrowck 2017-09-26 21:56:37 +02:00
borrowck-init-in-called-fn-expr.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-init-in-fn-expr.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-init-in-fru.rs Added revisions: ast mir template to tests that this PR sync'ed ast+mir borrowcks. 2017-10-11 22:42:29 +02:00
borrowck-init-op-equal.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-init-plus-equal.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-insert-during-each.rs rustc: rework stability to be on-demand for type-directed lookup. 2016-11-28 04:18:11 +02:00
borrowck-issue-2657-1.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-issue-2657-2.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-issue-14498.rs borrowck: consolidate mut suggestions 2017-03-27 01:37:42 +03:00
borrowck-lend-flow-if.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-lend-flow-loop.rs fix a bug in compiletest JSON parsing for duplicate errors 2017-04-11 20:32:47 -04:00
borrowck-lend-flow-match.rs mir-borrowck: Edit compile-fail tests with E0506 error to also test on MIR borrowck 2017-09-26 21:56:37 +02:00
borrowck-lend-flow.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-loan-blocks-move-cc.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-loan-blocks-move.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-loan-blocks-mut-uniq.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-loan-in-overloaded-op.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-loan-of-static-data-issue-27616.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-loan-rcvr-overloaded-op.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-loan-rcvr.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-loan-vec-content.rs Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
borrowck-match-already-borrowed.rs MIR-borrowck: add false edges to match arms 2017-10-11 17:39:45 +03:00
borrowck-match-binding-is-assignment.rs Reword to avoid using either re-assignment or reassignment in errors 2017-10-25 11:29:52 -04:00
borrowck-move-by-capture.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-move-error-with-note.rs Reword the short diagnostic for E0509 2016-05-19 11:02:41 +02:00
borrowck-move-from-subpath-of-borrowed-path.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-move-from-unsafe-ptr.rs move unsafety checking to MIR 2017-09-24 12:46:00 +03:00
borrowck-move-in-irrefut-pat.rs Unit tests for gathering and reporting move-errors from mir-borrowck. 2017-10-04 13:29:55 +02:00
borrowck-move-moved-value-into-closure.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-move-mut-base-ptr.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-move-out-of-overloaded-auto-deref.rs Unit tests for gathering and reporting move-errors from mir-borrowck. 2017-10-04 13:29:55 +02:00
borrowck-move-out-of-overloaded-deref.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-move-out-of-static-item.rs Unit tests for gathering and reporting move-errors from mir-borrowck. 2017-10-04 13:29:55 +02:00
borrowck-move-out-of-struct-with-dtor.rs Unit tests for gathering and reporting move-errors from mir-borrowck. 2017-10-04 13:29:55 +02:00
borrowck-move-out-of-tuple-struct-with-dtor.rs Reword the short diagnostic for E0509 2016-05-19 11:02:41 +02:00
borrowck-move-out-of-vec-tail.rs Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
borrowck-move-subcomponent.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-multiple-captures.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-mut-addr-of-imm-var.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-mut-borrow-linear-errors.rs fix a bug in compiletest JSON parsing for duplicate errors 2017-04-11 20:32:47 -04:00
borrowck-mut-borrow-of-mut-base-ptr.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-mut-slice-of-imm-vec.rs Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
borrowck-mutate-in-guard.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-no-cycle-in-exchange-heap.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-object-lifetime.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-or-init.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-overloaded-call.rs Update compile-fail tests for error message deduplication. 2017-10-25 15:02:26 +02:00
borrowck-overloaded-index-and-overloaded-deref.rs mir-borrowck: Edit compile-fail tests with E0506 error to also test on MIR borrowck 2017-09-26 21:56:37 +02:00
borrowck-overloaded-index-autoderef.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-overloaded-index-move-from-vec.rs Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
borrowck-overloaded-index-move-index.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-overloaded-index-ref-index.rs mir-borrowck: Factorize error message for cannot_assign_static() between AST and MIR borrowck 2017-09-29 15:41:26 +02:00
borrowck-partial-reinit-1.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-partial-reinit-2.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-partial-reinit-3.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-partial-reinit-4.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-pat-reassign-binding.rs mir-borrowck: Edit compile-fail tests with E0506 error to also test on MIR borrowck 2017-09-26 21:56:37 +02:00
borrowck-reborrow-from-mut.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-reborrow-from-shorter-lived-andmut.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-ref-mut-of-imm.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-report-with-custom-diagnostic.rs update test cases to reflect new messages 2016-05-02 11:47:10 -04:00
borrowck-return-variable-on-stack-via-clone.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-return.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-struct-update-with-dtor.rs Unit tests for gathering and reporting move-errors from mir-borrowck. 2017-10-04 13:29:55 +02:00
borrowck-swap-mut-base-ptr.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-unary-move.rs run EndRegion when unwinding otherwise-empty scopes 2017-10-18 14:11:06 +03:00
borrowck-unboxed-closures.rs Update compile-fail tests for error message deduplication. 2017-10-25 15:02:26 +02:00
borrowck-uninit-after-item.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-uninit-field-access.rs Test against accesses to uninitialized fields. 2017-10-11 22:42:29 +02:00
borrowck-uninit-in-assignop.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-uninit-ref-chain.rs Test case illustrating some variants of the issue pointed out by ariel. 2017-10-11 22:42:29 +02:00
borrowck-uninit.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-union-borrow-nested.rs Stabilize unions with Copy fields and no destructor 2017-05-27 00:52:20 +03:00
borrowck-union-borrow.rs mir-borrowck: Fix existing tests 2017-10-06 17:44:50 +02:00
borrowck-union-move-assign.rs Address comments and add requested tests 2016-09-03 13:39:35 +03:00
borrowck-union-move.rs Address comments and add requested tests 2016-09-03 13:39:35 +03:00
borrowck-union-uninitialized.rs Stabilize unions with Copy fields and no destructor 2017-05-27 00:52:20 +03:00
borrowck-uniq-via-lend.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-use-in-index-lvalue.rs Added revisions: ast mir template to tests that this PR sync'ed ast+mir borrowcks. 2017-10-11 22:42:29 +02:00
borrowck-use-mut-borrow.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-use-uninitialized-in-cast-trait.rs Added revisions: ast mir template to tests that this PR sync'ed ast+mir borrowcks. 2017-10-11 22:42:29 +02:00
borrowck-use-uninitialized-in-cast.rs Added revisions: ast mir template to tests that this PR sync'ed ast+mir borrowcks. 2017-10-11 22:42:29 +02:00
borrowck-vec-pattern-element-loan.rs Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
borrowck-vec-pattern-loan-from-mut.rs Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
borrowck-vec-pattern-move-tail.rs mir-borrowck: Edit compile-fail tests with E0506 error to also test on MIR borrowck 2017-09-26 21:56:37 +02:00
borrowck-vec-pattern-nesting.rs Disable ref hint for pattern in let and adding ui-tests. 2017-04-28 01:31:42 -07:00
borrowck-vec-pattern-tail-element-loan.rs Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
borrowck-while-break.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-while-cond.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
borrowck-while.rs Move the borrowck run-pass/compile-fail tests into their own directories 2016-02-24 18:40:39 -05:00
move-in-static-initializer-issue-38520.rs Unit tests for gathering and reporting move-errors from mir-borrowck. 2017-10-04 13:29:55 +02:00