rust/src/test/ui/hrtb
Esteban Küber 190589f8a7 Use structured suggestion for restricting bounds
When a trait bound is not met and restricting a type parameter would
make the restriction hold, use a structured suggestion pointing at an
appropriate place (type param in param list or `where` clause).

Account for opaque parameters where instead of suggesting extending
the `where` clause, we suggest appending the new restriction:
`fn foo(impl Trait + UnmetTrait)`.
2019-10-15 13:55:43 -07:00
..
due-to-where-clause.nll.stderr Make lifetimes in constants live at the point of use 2019-10-02 20:39:01 +01:00
due-to-where-clause.rs Make lifetimes in constants live at the point of use 2019-10-02 20:39:01 +01:00
due-to-where-clause.stderr Make lifetimes in constants live at the point of use 2019-10-02 20:39:01 +01:00
hrtb-cache-issue-54302.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
hrtb-cache-issue-54302.rs make evaluation track whether outlives relationships mattered 2019-01-02 17:35:05 -05:00
hrtb-cache-issue-54302.stderr Tweak unsatisfied HRTB errors 2019-09-16 15:34:33 -07:00
hrtb-conflate-regions.rs Remove meaningless comments in src/test 2019-08-16 10:54:20 +01:00
hrtb-conflate-regions.stderr Point at type param when it's cause of unfulfilled obligation 2019-09-22 11:33:13 -07:00
hrtb-debruijn-in-receiver.rs Remove licenses 2018-12-25 21:08:33 -07:00
hrtb-debruijn-in-receiver.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
hrtb-exists-forall-fn.rs address tmandry nits 2019-01-02 17:35:06 -05:00
hrtb-exists-forall-fn.stderr Update tests 2019-03-11 23:10:26 +03:00
hrtb-exists-forall-trait-contravariant.rs update test files to reflect new output 2019-02-21 11:32:17 -05:00
hrtb-exists-forall-trait-contravariant.stderr Point at type param when it's cause of unfulfilled obligation 2019-09-22 11:33:13 -07:00
hrtb-exists-forall-trait-covariant.rs update test files to reflect new output 2019-02-21 11:32:17 -05:00
hrtb-exists-forall-trait-covariant.stderr Point at type param when it's cause of unfulfilled obligation 2019-09-22 11:33:13 -07:00
hrtb-exists-forall-trait-invariant.rs update test files to reflect new output 2019-02-21 11:32:17 -05:00
hrtb-exists-forall-trait-invariant.stderr Point at type param when it's cause of unfulfilled obligation 2019-09-22 11:33:13 -07:00
hrtb-higher-ranker-supertraits-transitive.rs tests: worse diagnostics, but basically same errors 2019-01-02 17:35:05 -05:00
hrtb-higher-ranker-supertraits-transitive.stderr Use structured suggestion for restricting bounds 2019-10-15 13:55:43 -07:00
hrtb-higher-ranker-supertraits.rs update test files to reflect new output 2019-02-21 11:32:17 -05:00
hrtb-higher-ranker-supertraits.stderr Use structured suggestion for restricting bounds 2019-10-15 13:55:43 -07:00
hrtb-identity-fn-borrows.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
hrtb-identity-fn-borrows.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
hrtb-just-for-static.rs apply the new placeholder errors even with just one placeholder 2019-01-02 17:35:06 -05:00
hrtb-just-for-static.stderr Point at type param when it's cause of unfulfilled obligation 2019-09-22 11:33:13 -07:00
hrtb-perfect-forwarding.nll.stderr normalize use of backticks in compiler messages for librustc/lint 2019-07-17 22:49:48 +02:00
hrtb-perfect-forwarding.rs fix tests post-rebase 2019-02-15 15:52:29 +01:00
hrtb-perfect-forwarding.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-30786.migrate.stderr Tweak unsatisfied HRTB errors 2019-09-16 15:34:33 -07:00
issue-30786.nll.stderr Fixup tests 2019-10-01 21:22:46 -04:00
issue-30786.rs Fixup tests 2019-10-01 21:22:46 -04:00
issue-46989.rs restore the actual leak-check 2019-02-21 11:32:17 -05:00
issue-46989.stderr Point at type param when it's cause of unfulfilled obligation 2019-09-22 11:33:13 -07:00
issue-57639.rs Update test stderr with results of enabling unused lints 2019-09-08 11:32:28 -04:00
issue-58451.rs update test files to reflect new output 2019-02-21 11:32:17 -05:00
issue-58451.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-62203-hrtb-ice.rs Regression test. 2019-07-09 13:57:22 +02:00
issue-62203-hrtb-ice.stderr Add explanation to type mismatch involving type params and assoc types 2019-09-18 17:30:35 -07:00