rust/tests/rustdoc-ui
bors 3cdd0197e7 Auto merge of #106227 - bryangarza:ctfe-limit, r=oli-obk
Use stable metric for const eval limit instead of current terminator-based logic

This patch adds a `MirPass` that inserts a new MIR instruction `ConstEvalCounter` to any loops and function calls in the CFG. This instruction is used during Const Eval to count against the `const_eval_limit`, and emit the `StepLimitReached` error, replacing the current logic which uses Terminators only.

The new method of counting loops and function calls should be more stable across compiler versions (i.e., not cause crates that compiled successfully before, to no longer compile when changes to the MIR generation/optimization are made).

Also see: #103877
2023-01-29 04:11:27 +00:00
..
auxiliary
coverage
error-in-impl-trait
intra-doc
suggestions
ambiguous-inherent-assoc-ty.rs
assoc-item-not-in-scope.rs
assoc-item-not-in-scope.stderr
bare-urls.fixed
bare-urls.rs
bare-urls.stderr
block-doc-comment.rs
block-doc-comment.stdout
bounded-hr-lifetime.rs
bounded-hr-lifetime.stderr
c-help.rs
c-help.stdout
cfg-test.rs
cfg-test.stdout
check-attr-test.rs
check-attr-test.stderr
check-attr.rs
check-attr.stderr
check-cfg-test.rs
check-cfg-test.stderr
check-cfg-test.stdout
check-cfg-unstable.rs
check-cfg-unstable.stderr
check-cfg.rs
check-cfg.stderr
check-doc-alias-attr-location.rs
check-doc-alias-attr-location.stderr
check-doc-alias-attr.rs
check-doc-alias-attr.stderr
check-fail.rs
check-fail.stderr
check.rs
check.stderr
commandline-argfile-badutf8.args
commandline-argfile-badutf8.rs
commandline-argfile-badutf8.stderr
commandline-argfile-missing.rs
commandline-argfile-missing.stderr
commandline-argfile.args
commandline-argfile.rs
const-evalutation-ice.rs
const-evalutation-ice.stderr
deny-intra-link-resolution-failure.rs
deny-intra-link-resolution-failure.stderr
deny-missing-docs-crate.rs
deny-missing-docs-crate.stderr
deny-missing-docs-macro.rs
deny-missing-docs-macro.stderr
deprecated-attrs.rs
deprecated-attrs.stderr
deref-generic.rs
diagnostic-width.rs
diagnostic-width.stderr
display-output.rs
display-output.stdout
doc_cfg_hide.rs
doc_cfg_hide.stderr
doc-alias-assoc-const.rs
doc-alias-assoc-const.stderr
doc-alias-crate-level.rs
doc-alias-crate-level.stderr
doc-alias-same-name.rs
doc-alias-same-name.stderr
doc-attr.rs
doc-attr.stderr
doc-cfg.rs
doc-cfg.stderr
doc-comment-multi-line-attr.rs
doc-comment-multi-line-attr.stdout
doc-comment-multi-line-cfg-attr.rs
doc-comment-multi-line-cfg-attr.stdout
doc-include-suggestion.rs
doc-include-suggestion.stderr
doc-spotlight.fixed
doc-spotlight.rs
doc-spotlight.stderr
doc-test-attr-pass.rs
doc-test-attr.rs
doc-test-attr.stderr
doc-test-doctest-feature.rs
doc-test-doctest-feature.stdout
doc-test-rustdoc-feature.rs
doc-test-rustdoc-feature.stdout
doc-without-codeblock.rs
doc-without-codeblock.stderr
doctest-edition.rs
doctest-edition.stderr
doctest-multiline-crate-attribute.rs
doctest-multiline-crate-attribute.stdout
doctest-output.rs
doctest-output.stdout
expect-tool-lint-rfc-2383.rs
expect-tool-lint-rfc-2383.stderr
failed-doctest-compile-fail.rs
failed-doctest-compile-fail.stdout
failed-doctest-extra-semicolon-on-item.rs
failed-doctest-extra-semicolon-on-item.stdout
failed-doctest-missing-codes.rs
failed-doctest-missing-codes.stdout
failed-doctest-output-windows.rs
failed-doctest-output-windows.stdout
failed-doctest-output.rs
failed-doctest-output.stdout
failed-doctest-should-panic.rs
failed-doctest-should-panic.stdout
feature-gate-doc_cfg_hide.rs
feature-gate-doc_cfg_hide.stderr
feature-gate-rustdoc_missing_doc_code_examples.rs
feature-gate-rustdoc_missing_doc_code_examples.stderr
generate-link-to-definition-opt2.rs
generate-link-to-definition-opt2.stderr
generate-link-to-definition-opt-unstable.rs
generate-link-to-definition-opt-unstable.stderr
generate-link-to-definition-opt.rs
generate-link-to-definition-opt.stderr
ignore-block-help.rs
ignore-block-help.stderr
impl-fn-nesting.rs
impl-fn-nesting.stderr
infinite-recursive-type-impl-trait-return.rs Revert "Update newly failing UI tests" 2023-01-19 20:27:00 +01:00
infinite-recursive-type-impl-trait.rs Revert "Update newly failing UI tests" 2023-01-19 20:27:00 +01:00
infinite-recursive-type.rs
infinite-recursive-type.stderr
invalid-cfg.rs
invalid-cfg.stderr
invalid-doc-attr.rs
invalid-doc-attr.stderr
invalid-html-self-closing-tag.rs
invalid-html-self-closing-tag.stderr
invalid-html-tags.rs
invalid-html-tags.stderr
invalid-keyword.rs
invalid-keyword.stderr
invalid-syntax.rs
invalid-syntax.stderr Emit a single error for contiguous sequences of Unicode homoglyphs 2023-01-12 00:15:32 +00:00
invalid-theme-name.rs
invalid-theme-name.stderr
issue-58473-2.rs
issue-58473.rs
issue-61592-2.rs
issue-61592-2.stderr
issue-61592.rs
issue-61592.stderr
issue-61732.rs
issue-61732.stderr
issue-74134.private.stderr
issue-74134.public.stderr
issue-74134.rs
issue-79465.rs
issue-79465.stderr
issue-79467.rs
issue-79467.stderr
issue-79494.rs
issue-79494.stderr
issue-80992.rs
issue-80992.stdout
issue-81662-shortness.rs
issue-81662-shortness.stdout
issue-83883-describe-lints.rs
issue-83883-describe-lints.stdout
issue-91134.rs
issue-91134.stdout
issue-91713.rs
issue-91713.stderr
issue-91713.stdout
issue-96287.rs
issue-96287.stderr
issue-98690.rs
issue-98690.stderr
issue-101076.rs
issue-102986.rs
issue-102986.stderr
issue-103997.rs
issue-103997.stderr
issue-105334.rs
issue-105334.stderr
issue-105737.rs
issue-105737.stderr
issue-105742.rs
issue-105742.stderr
issue-106213.rs
issue-106213.stderr
issue-106226.rs
issue-106226.stderr
lint-group.rs
lint-group.stderr
lint-missing-doc-code-example.rs
lint-missing-doc-code-example.stderr
macro-docs.rs
macro-docs.stderr
macro-docs.stdout
no-crate-level-doc-lint.rs
no-crate-level-doc-lint.stderr
no-run-flag-error.rs
no-run-flag-error.stderr
no-run-flag.rs
no-run-flag.stdout
nocapture-fail.rs
nocapture-fail.stderr
nocapture-fail.stdout
nocapture.rs
nocapture.stderr
nocapture.stdout
normalize-cycle.rs
normalize-overflow.rs
output-format-html-stable.rs
private-doc-test.rs
private-item-doc-test.rs
private-item-doc-test.stderr
private-public-item-doc-test.rs
private-public-item-doc-test.stderr
pub-export-lint.rs
pub-export-lint.stderr
public-reexported-item-doc-test.rs
range-pattern.rs
recursive-deref-ice.rs
reference-link-reports-error-once.rs
reference-link-reports-error-once.stderr
reference-links.rs
reference-links.stderr
renamed-lint-still-applies.rs
renamed-lint-still-applies.stderr
run-directory.correct.stdout
run-directory.incorrect.stdout
run-directory.rs
rustc-check-passes.rs
rustc-check-passes.stderr
scrape-examples-fail-if-type-error.rs
scrape-examples-fail-if-type-error.stderr
scrape-examples-ice.rs
scrape-examples-wrong-options-1.rs
scrape-examples-wrong-options-1.stderr
scrape-examples-wrong-options-2.rs
scrape-examples-wrong-options-2.stderr
search-index-generics-recursion-bug-issue-59502.rs
test-compile-fail1.rs
test-compile-fail1.stderr
test-compile-fail2.rs
test-compile-fail2.stderr
test-compile-fail3.rs
test-compile-fail3.stderr
test-no_std.rs
test-no_std.stdout
test-type.rs
test-type.stdout
track-diagnostics.rs
track-diagnostics.stderr
tuple-variadic-check.rs
tuple-variadic-check.stderr
unable-fulfill-trait.rs
unable-fulfill-trait.stderr
unknown-renamed-lints.rs
unknown-renamed-lints.stderr
unparseable-doc-test.rs
unparseable-doc-test.stdout
unused-braces-lint.rs
unused-extern-crate.rs
unused.rs
use_both_out_dir_and_output_options.rs
use_both_out_dir_and_output_options.stderr
wasm-safe.rs
z-help.rs
z-help.stdout Auto merge of #106227 - bryangarza:ctfe-limit, r=oli-obk 2023-01-29 04:11:27 +00:00