rust/src/test
Tristan Burgess 8895e3bcb0 52985: cause cycle err on inf trait normalization
- If an existential type is defined, but no user code infers the
concrete type behind the existential type, normalization would
infinitely recurse on this existential type which is only defined in
terms of itself.
  - Instead of raising an inf recurse error, we cause a cycle error to
help highlight that the issue is that the type is only defined in terms
of itself.
  - Three known potential improvements:
    - If type folding itself was exposed as a query, used by
normalization and other mechanisms, cases that would cause infinite recursion would
automatically cause a cycle error.
    - The span for the cycle error should be improved to point to user
code that fails to allow inference of the concrete type of the existential type,
assuming that this error occurs because no user code can allow inference the
concrete type.
    - A mechanism to extend the cycle error with a helpful note would be nice. Currently,
the error is built and maintained by src/librustc/ty/query/plumbing,
with no known way to extend the information that the error gets built
with.
2018-08-13 18:09:45 -04:00
..
auxiliary
codegen Relax the target-cpu-on-function codegen test so it just checks for presence of the attribute. 2018-08-09 09:39:02 +02:00
codegen-units Revert "Adapt codegen-unit tests to new CGU naming scheme." 2018-07-16 08:58:15 +02:00
compile-fail Clean up and add extra tests 2018-08-11 21:25:48 +01:00
compile-fail-fulldeps Prohibit using macro-expanded macro_export macros through module-relative paths 2018-08-12 22:07:09 +03:00
debuginfo Fix test/debuginfo 2018-08-05 15:54:49 +01:00
incremental rustc: Use link_section, not wasm_custom_section 2018-07-16 09:40:45 -07:00
incremental-fulldeps
mir-opt patch up mir-opt tests 2018-07-26 15:12:04 +03:00
parse-fail Feature gate arbitrary tokens in non-macro attributes with a separate gate 2018-08-11 16:41:17 +03:00
pretty Address review comments 2018-08-06 23:55:53 +03:00
run-fail Convert unknown_features lint into an error 2018-08-05 15:54:49 +01:00
run-fail-fulldeps
run-make rustc: Tweak visibility of some lang items 2018-08-07 08:42:38 -07:00
run-make-fulldeps Address review comments for #53031 and fix some merge fallout. 2018-08-08 13:40:23 +02:00
run-pass Rollup merge of #53093 - 0e4ef622:issue-52169-fix, r=petrochenkov 2018-08-07 16:55:43 +08:00
run-pass-fulldeps Feature gate arbitrary tokens in non-macro attributes with a separate gate 2018-08-11 16:41:17 +03:00
run-pass-valgrind Convert unknown_features lint into an error 2018-08-05 15:54:49 +01:00
rustdoc Auto merge of #52644 - varkor:lib-feature-gate-2, r=withoutboats 2018-08-06 16:58:27 +00:00
rustdoc-js Update stdsimd to undo an accidental stabilization 2018-07-20 22:34:09 -07:00
rustdoc-ui Rollup merge of #52835 - GuillaumeGomez:ice-rustdoc-links, r=eddyb 2018-08-01 21:46:27 +02:00
rustfix Removed various update-reference and update-all-references scripts 2018-06-13 18:15:50 -04:00
ui 52985: cause cycle err on inf trait normalization 2018-08-13 18:09:45 -04:00
ui-fulldeps Address review comments 2018-08-06 23:55:53 +03:00
COMPILER_TESTS.md Link compiler test documentation to rustc-guide 2018-08-10 08:05:48 -06:00