rust/src/test/ui/regions
Niko Matsakis 5a7a850753 move leak-check to during coherence, candidate eval
In particular, it no longer occurs during the subtyping check. This is
important for enabling lazy normalization, because the subtyping check
will be producing sub-obligations that could affect its results.

Consider an example like

    for<'a> fn(<&'a as Mirror>::Item) =
      fn(&'b u8)

where `<T as Mirror>::Item = T` for all `T`. We will wish to produce a
new subobligation like

    <'!1 as Mirror>::Item = &'b u8

This will, after being solved, ultimately yield a constraint that `'!1
= 'b` which will fail. But with the leak-check being performed on
subtyping, there is no opportunity to normalize `<'!1 as
Mirror>::Item` (unless we invoke that normalization directly from
within subtyping, and I would prefer that subtyping and unification
are distinct operations rather than part of the trait solving stack).

The reason to keep the leak check during coherence and trait
evaluation is partly for backwards compatibility. The coherence change
permits impls for `fn(T)` and `fn(&T)` to co-exist, and the trait
evaluation change means that we can distinguish those two cases
without ambiguity errors. It also avoids recreating #57639, where we
were incorrectly choosing a where clause that would have failed the
leak check over the impl which succeeds.

The other reason to keep the leak check in those places is that I
think it is actually close to the model we want. To the point, I think
the trait solver ought to have the job of "breaking down"
higher-ranked region obligation like ``!1: '2` into into region
obligations that operate on things in the root universe, at which
point they should be handed off to polonius. The leak check isn't
*really* doing that -- these obligations are still handed to the
region solver to process -- but if/when we do adopt that model, the
decision to pass/fail would be happening in roughly this part of the
code.

This change had somewhat more side-effects than I anticipated. It
seems like there are cases where the leak-check was not being enforced
during method proving and trait selection. I haven't quite tracked
this down but I think it ought to be documented, so that we know what
precisely we are committing to.

One surprising test was `issue-30786.rs`. The behavior there seems a
bit "fishy" to me, but the problem is not related to the leak check
change as far as I can tell, but more to do with the closure signature
inference code and perhaps the associated type projection, which
together seem to be conspiring to produce an unexpected
signature. Nonetheless, it is an example of where changing the
leak-check can have some unexpected consequences: we're now failing to
resolve a method earlier than we were, which suggests we might change
some method resolutions that would have been ambiguous to be
successful.

TODO:

* figure out remainig test failures
* add new coherence tests for the patterns we ARE disallowing
2020-06-22 15:33:05 +00:00
..
auxiliary Remove licenses 2018-12-25 21:08:33 -07:00
issue-56537-closure-uses-region-from-container.rs Use check-pass in ui tests where appropriate 2019-11-04 16:03:46 +01:00
issue-72051-member-region-hang.rs Fix hang in lexical_region_resolve 2020-05-11 21:05:08 +01:00
region-borrow-params-issue-29793-big.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
region-borrow-params-issue-29793-big.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
region-borrow-params-issue-29793-small.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
region-borrow-params-issue-29793-small.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
region-bound-extra-bound-in-inherent-impl.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
region-bound-on-closure-outlives-call.rs Remove licenses 2018-12-25 21:08:33 -07:00
region-bound-on-closure-outlives-call.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
region-bound-same-bounds-in-trait-and-impl.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
region-bounds-on-objects-and-type-parameters.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
region-bounds-on-objects-and-type-parameters.stderr Add long error code for error E0226 2020-03-30 02:51:25 +02:00
region-invariant-static-error-reporting.nll.stderr update tests 2019-10-27 09:39:14 -05:00
region-invariant-static-error-reporting.rs Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
region-invariant-static-error-reporting.stderr Add backticks to various diagnostics 2020-01-05 00:17:46 +00:00
region-lifetime-bounds-on-fns-where-clause.nll.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
region-lifetime-bounds-on-fns-where-clause.rs improve handling for subtype 2019-01-02 17:35:06 -05:00
region-lifetime-bounds-on-fns-where-clause.stderr move leak-check to during coherence, candidate eval 2020-06-22 15:33:05 +00:00
region-multiple-lifetime-bounds-on-fns-where-clause.nll.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
region-multiple-lifetime-bounds-on-fns-where-clause.rs improve handling for subtype 2019-01-02 17:35:06 -05:00
region-multiple-lifetime-bounds-on-fns-where-clause.stderr move leak-check to during coherence, candidate eval 2020-06-22 15:33:05 +00:00
region-object-lifetime-1.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
region-object-lifetime-2.nll.stderr update tests 2019-10-27 09:39:14 -05:00
region-object-lifetime-2.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
region-object-lifetime-2.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
region-object-lifetime-3.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
region-object-lifetime-4.nll.stderr update tests 2019-10-27 09:39:14 -05:00
region-object-lifetime-4.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
region-object-lifetime-4.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
region-object-lifetime-5.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
region-object-lifetime-5.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
region-object-lifetime-in-coercion.nll.stderr When 'static is explicit, suggest constraining argument with it 2020-06-15 09:06:57 -07:00
region-object-lifetime-in-coercion.rs When 'static is explicit, suggest constraining argument with it 2020-06-15 09:06:57 -07:00
region-object-lifetime-in-coercion.stderr Change E0758 to E0759 to avoid conflict with #72912 2020-06-15 09:06:58 -07:00
regions-addr-of-arg.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-addr-of-arg.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-addr-of-interior-of-unique-box.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-addr-of-ret.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-addr-of-self.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-addr-of-self.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-addr-of-self.stderr update ui tests 2019-10-07 17:12:54 +02:00
regions-addr-of-upvar-self.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-addr-of-upvar-self.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-addr-of-upvar-self.stderr Simplify mem_categorization 2019-11-27 19:47:12 +00:00
regions-adjusted-lvalue-op.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-adjusted-lvalue-op.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-assoc-type-in-supertrait-outlives-container.migrate.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-assoc-type-in-supertrait-outlives-container.migrate.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
regions-assoc-type-in-supertrait-outlives-container.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-assoc-type-in-supertrait-outlives-container.rs Cherry-pick src/test changes with Centril's changes 2019-08-19 22:31:46 +01:00
regions-assoc-type-region-bound-in-trait-not-met.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-assoc-type-region-bound-in-trait-not-met.stderr Fix spacing of expected/found notes without a label 2020-05-27 16:27:15 -07:00
regions-assoc-type-region-bound.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-assoc-type-static-bound-in-trait-not-met.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-assoc-type-static-bound-in-trait-not-met.stderr Fix spacing of expected/found notes without a label 2020-05-27 16:27:15 -07:00
regions-assoc-type-static-bound.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-borrow-at.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-borrow-evec-fixed.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-borrow-evec-uniq.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-borrow-uniq.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-bot.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-bound-lists-feature-gate-2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-bound-lists-feature-gate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-bounded-by-trait-requiring-static.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-bounded-by-trait-requiring-static.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-bounded-by-trait-requiring-static.stderr Add error code explanation for E0477 2019-12-30 14:41:46 +08:00
regions-bounded-method-type-parameters-cross-crate.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-bounded-method-type-parameters-cross-crate.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-bounded-method-type-parameters-cross-crate.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-bounded-method-type-parameters-trait-bound.nll.stderr Update new tests 2020-01-24 20:52:16 +00:00
regions-bounded-method-type-parameters-trait-bound.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-bounded-method-type-parameters-trait-bound.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-bounded-method-type-parameters.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-bounded-method-type-parameters.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-bounded-method-type-parameters.stderr Add error code explanation for E0477 2019-12-30 14:41:46 +08:00
regions-bounds.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-bounds.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-bounds.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
regions-close-associated-type-into-object.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-close-associated-type-into-object.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-close-associated-type-into-object.stderr Tweak type parameter errors to reduce verbosity 2020-05-30 10:22:26 -07:00
regions-close-object-into-object-1.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-close-object-into-object-1.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-close-object-into-object-2.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-close-object-into-object-2.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-close-object-into-object-2.stderr Change E0758 to E0759 to avoid conflict with #72912 2020-06-15 09:06:58 -07:00
regions-close-object-into-object-3.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-close-object-into-object-3.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-close-object-into-object-4.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-close-object-into-object-4.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-close-object-into-object-4.stderr Change E0758 to E0759 to avoid conflict with #72912 2020-06-15 09:06:58 -07:00
regions-close-object-into-object-5.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-close-object-into-object-5.rs Update tests 2020-05-22 18:03:08 +01:00
regions-close-object-into-object-5.stderr Tweak type parameter errors to reduce verbosity 2020-05-30 10:22:26 -07:00
regions-close-over-type-parameter-1.nll.stderr Update tests 2020-05-22 18:03:08 +01:00
regions-close-over-type-parameter-1.rs Update tests 2020-05-22 18:03:08 +01:00
regions-close-over-type-parameter-1.stderr Tweak type parameter errors to reduce verbosity 2020-05-30 10:22:26 -07:00
regions-close-over-type-parameter-multiple.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-close-over-type-parameter-multiple.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-close-over-type-parameter-multiple.stderr Fix spacing of expected/found notes without a label 2020-05-27 16:27:15 -07:00
regions-close-over-type-parameter-successfully.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-close-param-into-object.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-close-param-into-object.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-close-param-into-object.stderr Tweak type parameter errors to reduce verbosity 2020-05-30 10:22:26 -07:00
regions-copy-closure.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-creating-enums.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-creating-enums.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-creating-enums2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-creating-enums3.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-creating-enums3.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-creating-enums3.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-creating-enums4.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-creating-enums4.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-creating-enums4.stderr Fix spacing of expected/found notes without a label 2020-05-27 16:27:15 -07:00
regions-creating-enums5.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-debruijn-of-object.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-dependent-addr-of.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-dependent-autofn.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-dependent-autoslice.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-dependent-let-ref.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-early-bound-error-method.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-early-bound-error-method.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-early-bound-error-method.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
regions-early-bound-error.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-early-bound-error.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-early-bound-error.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
regions-early-bound-lifetime-in-assoc-fn.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-early-bound-trait-param.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-early-bound-used-in-bound-method.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-early-bound-used-in-bound.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-early-bound-used-in-type-param.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-enum-not-wf.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-enum-not-wf.stderr Tweak type parameter errors to reduce verbosity 2020-05-30 10:22:26 -07:00
regions-escape-into-other-fn.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-escape-method.rs Update tests 2020-05-22 18:03:08 +01:00
regions-escape-method.stderr Update tests 2020-05-22 18:03:08 +01:00
regions-escape-via-trait-or-not.rs Update tests 2020-05-22 18:03:08 +01:00
regions-escape-via-trait-or-not.stderr Update tests 2020-05-22 18:03:08 +01:00
regions-expl-self.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-fn-subtyping-2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-fn-subtyping-return-static.rs rewrite leak check to be based on universes 2020-06-22 14:33:44 +00:00
regions-fn-subtyping.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-free-region-ordering-callee-4.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-free-region-ordering-callee-4.stderr Use more accurate failed predicate spans 2020-02-02 11:53:09 -08:00
regions-free-region-ordering-callee.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-free-region-ordering-callee.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-free-region-ordering-callee.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-free-region-ordering-caller.migrate.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-free-region-ordering-caller.migrate.stderr Update tests for erasing regions in typeck 2020-03-17 09:07:56 +00:00
regions-free-region-ordering-caller.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-free-region-ordering-caller.rs Update tests for erasing regions in typeck 2020-03-17 09:07:56 +00:00
regions-free-region-ordering-caller1.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-free-region-ordering-caller1.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-free-region-ordering-incorrect.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-free-region-ordering-incorrect.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-free-region-ordering-incorrect.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
regions-free-region-outlives-static-outlives-free-region.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-glb-free-free.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-glb-free-free.stderr Update tests 2019-03-11 23:10:26 +03:00
regions-implied-bounds-projection-gap-1.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-implied-bounds-projection-gap-1.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-implied-bounds-projection-gap-1.stderr Tweak type parameter errors to reduce verbosity 2020-05-30 10:22:26 -07:00
regions-implied-bounds-projection-gap-2.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-implied-bounds-projection-gap-3.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-implied-bounds-projection-gap-4.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-implied-bounds-projection-gap-hr-1.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-implied-bounds-projection-gap-hr-1.stderr Point at arguments or output when fn obligations come from them, or ident when they don't 2020-02-02 11:52:33 -08:00
regions-in-enums-anon.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-in-enums-anon.stderr review comments 2020-02-05 10:32:01 -08:00
regions-in-enums.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-in-enums.stderr When encountering an undefined named lifetime, point to where it can be 2020-01-19 17:31:33 -08:00
regions-in-structs-anon.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-in-structs-anon.stderr review comments 2020-02-05 10:32:01 -08:00
regions-in-structs.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-in-structs.stderr When encountering an undefined named lifetime, point to where it can be 2020-01-19 17:31:33 -08:00
regions-infer-at-fn-not-param.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-infer-at-fn-not-param.stderr Remove licenses 2018-12-25 21:08:33 -07:00
regions-infer-borrow-scope-addr-of.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-infer-borrow-scope-too-big.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-infer-borrow-scope-too-big.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-infer-borrow-scope-view.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-infer-borrow-scope-within-loop-ok.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-infer-borrow-scope.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-infer-bound-from-trait-self.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-infer-bound-from-trait-self.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-infer-bound-from-trait-self.stderr Tweak type parameter errors to reduce verbosity 2020-05-30 10:22:26 -07:00
regions-infer-bound-from-trait.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-infer-bound-from-trait.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-infer-bound-from-trait.stderr Tweak type parameter errors to reduce verbosity 2020-05-30 10:22:26 -07:00
regions-infer-call-2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-infer-call-3.rs Update tests 2020-05-22 18:03:08 +01:00
regions-infer-call-3.stderr Update tests 2020-05-22 18:03:08 +01:00
regions-infer-call.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-infer-contravariance-due-to-decl.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-infer-contravariance-due-to-decl.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-infer-contravariance-due-to-decl.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-infer-contravariance-due-to-ret.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-infer-covariance-due-to-decl.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-infer-covariance-due-to-decl.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-infer-covariance-due-to-decl.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-infer-invariance-due-to-decl.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-infer-invariance-due-to-decl.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-infer-invariance-due-to-decl.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
regions-infer-invariance-due-to-mutability-3.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-infer-invariance-due-to-mutability-3.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-infer-invariance-due-to-mutability-3.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
regions-infer-invariance-due-to-mutability-4.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-infer-invariance-due-to-mutability-4.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-infer-invariance-due-to-mutability-4.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
regions-infer-not-param.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-infer-not-param.rs Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
regions-infer-not-param.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
regions-infer-paramd-indirect.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-infer-paramd-indirect.rs Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
regions-infer-paramd-indirect.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
regions-infer-proc-static-upvar.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-infer-proc-static-upvar.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-infer-reborrow-ref-mut-recurse.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-infer-region-in-fn-but-not-type.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-infer-static-from-proc.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-issue-21422.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-issue-22246.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-lifetime-bounds-on-fns.nll.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
regions-lifetime-bounds-on-fns.rs improve handling for subtype 2019-01-02 17:35:06 -05:00
regions-lifetime-bounds-on-fns.stderr move leak-check to during coherence, candidate eval 2020-06-22 15:33:05 +00:00
regions-lifetime-nonfree-late-bound.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-lifetime-of-struct-or-enum-variant.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-lifetime-of-struct-or-enum-variant.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-lifetime-static-items-enclosing-scopes.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-link-fn-args.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-lub-ref-ref-rc.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-mock-codegen.rs Make fields in MemoryBlock public 2020-03-28 20:22:07 +01:00
regions-name-duplicated.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-name-duplicated.stderr Update tests 2019-03-11 23:10:26 +03:00
regions-name-static.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-name-static.stderr Update tests 2019-03-11 23:10:26 +03:00
regions-name-undeclared.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-name-undeclared.stderr review comments: wording 2020-02-05 10:32:01 -08:00
regions-nested-fns-2.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-nested-fns-2.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-nested-fns.nll.stderr Update new tests 2020-01-24 20:52:16 +00:00
regions-nested-fns.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-nested-fns.stderr Tweak output for mismatched impl item 2020-05-27 16:28:20 -07:00
regions-no-bound-in-argument-cleanup.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-no-variance-from-fn-generics.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-normalize-in-where-clause-list.rs Update tests 2020-01-09 21:23:12 +03:00
regions-normalize-in-where-clause-list.stderr fix rebase 2020-05-27 16:28:20 -07:00
regions-nullary-variant.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-outlives-nominal-type-enum-region-rev.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-outlives-nominal-type-enum-region.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-outlives-nominal-type-enum-type-rev.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-outlives-nominal-type-enum-type.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-outlives-nominal-type-struct-region-rev.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-outlives-nominal-type-struct-region.rs Update error annotations in tests that successfully compile 2019-11-02 10:28:29 +01:00
regions-outlives-nominal-type-struct-type-rev.rs Update error annotations in tests that successfully compile 2019-11-02 10:28:29 +01:00
regions-outlives-nominal-type-struct-type.rs Update error annotations in tests that successfully compile 2019-11-02 10:28:29 +01:00
regions-outlives-projection-container-hrtb.migrate.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-outlives-projection-container-hrtb.migrate.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
regions-outlives-projection-container-hrtb.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-outlives-projection-container-hrtb.rs Remove meaningless comments in src/test 2019-08-16 10:54:20 +01:00
regions-outlives-projection-container-wc.migrate.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-outlives-projection-container-wc.migrate.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
regions-outlives-projection-container-wc.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-outlives-projection-container-wc.rs Remove meaningless comments in src/test 2019-08-16 10:54:20 +01:00
regions-outlives-projection-container.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-outlives-projection-container.rs Remove meaningless comments in src/test 2019-08-16 10:54:20 +01:00
regions-outlives-projection-container.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
regions-outlives-projection-hrtype.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-outlives-projection-trait-def.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-outlives-scalar.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
regions-params.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-pattern-typing-issue-19552.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-pattern-typing-issue-19552.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-pattern-typing-issue-19997.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-pattern-typing-issue-19997.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-proc-bound-capture.nll.stderr When 'static is explicit, suggest constraining argument with it 2020-06-15 09:06:57 -07:00
regions-proc-bound-capture.rs When 'static is explicit, suggest constraining argument with it 2020-06-15 09:06:57 -07:00
regions-proc-bound-capture.stderr Change E0758 to E0759 to avoid conflict with #72912 2020-06-15 09:06:58 -07:00
regions-reassign-let-bound-pointer.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-reassign-match-bound-pointer.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-reborrow-from-shorter-mut-ref-mut-ref.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-reborrow-from-shorter-mut-ref-mut-ref.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-reborrow-from-shorter-mut-ref-mut-ref.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-reborrow-from-shorter-mut-ref.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-reborrow-from-shorter-mut-ref.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-reborrow-from-shorter-mut-ref.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-ref-in-fn-arg.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-ref-in-fn-arg.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-refcell.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-relate-bound-regions-on-closures-to-inference-variables.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-ret-borrowed-1.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-ret-borrowed-1.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-ret-borrowed-1.stderr Tweak output for mismatched impl item 2020-05-27 16:28:20 -07:00
regions-ret-borrowed.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-ret-borrowed.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-ret-borrowed.stderr Tweak output for mismatched impl item 2020-05-27 16:28:20 -07:00
regions-ret.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-ret.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-return-interior-of-option.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-return-ref-to-upvar-issue-17403.rs Update tests 2020-05-22 18:03:08 +01:00
regions-return-ref-to-upvar-issue-17403.stderr Display information about captured variable in FnMut error 2020-05-25 23:18:00 -04:00
regions-return-stack-allocated-vec.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-return-stack-allocated-vec.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-scope-chain-example.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-self-impls.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-self-in-enums.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-simple.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-static-bound-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
regions-static-bound.ll.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
regions-static-bound.migrate.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-static-bound.migrate.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00
regions-static-bound.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-static-bound.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-static-closure.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-steal-closure.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-steal-closure.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-trait-1.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-trait-1.stderr Tweak output for mismatched impl item 2020-05-27 16:28:20 -07:00
regions-trait-object-1.rs Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
regions-trait-object-subtyping.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-trait-object-subtyping.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-trait-object-subtyping.stderr Tweak output for mismatched impl item 2020-05-27 16:28:20 -07:00
regions-trait-variance.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-trait-variance.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-undeclared.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-undeclared.stderr When encountering an undefined named lifetime, point to where it can be 2020-01-19 17:31:33 -08:00
regions-var-type-out-of-scope.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
regions-var-type-out-of-scope.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
regions-variance-contravariant-use-contravariant.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-variance-contravariant-use-covariant-in-second-position.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-variance-contravariant-use-covariant-in-second-position.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-variance-contravariant-use-covariant-in-second-position.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-variance-contravariant-use-covariant.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-variance-contravariant-use-covariant.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-variance-contravariant-use-covariant.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-variance-covariant-use-contravariant.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-variance-covariant-use-contravariant.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-variance-covariant-use-contravariant.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-variance-covariant-use-covariant.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
regions-variance-invariant-use-contravariant.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-variance-invariant-use-contravariant.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-variance-invariant-use-contravariant.stderr Update ui tests 2019-11-07 13:02:34 +01:00
regions-variance-invariant-use-covariant.nll.stderr update tests 2019-10-27 09:39:14 -05:00
regions-variance-invariant-use-covariant.rs Remove licenses 2018-12-25 21:08:33 -07:00
regions-variance-invariant-use-covariant.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
regions-wf-trait-object.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
regions-wf-trait-object.stderr Print lifetimes with backticks 2019-10-11 16:08:53 +09:00