Repository navigation
tests: Add regression test for infinite recursive dereference - #165729
Conversation
|
r? @adwinwhite rustbot has assigned @adwinwhite. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
|
I'm not sure why the CI failed if someone can help explain since the .stderr seems identical to what I got when I ran the test and seems correct? And I tried using |
|
It seems that you didn't commit the stderr file. |
|
Ohh I didn't know I was supposed to, I just generated it with bless and ran the test. I'll add it in the following commit. |
| // Regression test for: https://github.com/rust-lang/rust/issues/67064 | ||
| // This used to take a long time to compile because dereferencing led to | ||
| // recursive expansion of the type of the struct. | ||
| //@ compile-flags: -Zwrite-long-types-to-disk=yes |
There was a problem hiding this comment.
| // Regression test for: https://github.com/rust-lang/rust/issues/67064 | |
| // This used to take a long time to compile because dereferencing led to | |
| // recursive expansion of the type of the struct. | |
| //@ compile-flags: -Zwrite-long-types-to-disk=yes | |
| //@ compile-flags: -Zwrite-long-types-to-disk=yes | |
| // Regression test for: https://github.com/rust-lang/rust/issues/67064 | |
| // This used to take a long time to compile because dereferencing led to | |
| // recursive expansion of the type of the struct. |
Add a test for a case that results in a recursive loop that runs until it runs out of memory or gets killed. This used to take a long time to compile because of nested recursion caused by dereferencing the type of the struct. Signed-off-by: Hardik Kumar <hardikxk@gmail.com>
Sure, thanks! |
80e13e1 to
a7280a9
Compare
|
@bors r+ rollup |
…winwhite tests: Add regression test for infinite recursive dereference Add a test for a case that results in a recursive loop that runs until it runs out of memory or gets killed. closes rust-lang#67064
Rollup of 6 pull requests Successful merges: - #165778 (Bump stage0 to 1.101.0-beta.1) - #163077 (feat: support nested functions with `#[offload_kernel]`) - #165578 (Avoid `Hash::hash` when stable-hashing various types) - #165729 (tests: Add regression test for infinite recursive dereference) - #165819 (Avoid redundant scans when extracting stage0 archives) - #165822 (Remove unused compiler modules and types)
…winwhite tests: Add regression test for infinite recursive dereference Add a test for a case that results in a recursive loop that runs until it runs out of memory or gets killed. closes rust-lang#67064
Rollup of 12 pull requests Successful merges: - #165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - #165778 (Bump stage0 to 1.101.0-beta.1) - #165412 (Implement `core::ops::FnAddr`) - #165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - #165818 (do not lint `redundant_lifetimes` on items from external macros) - #163077 (feat: support nested functions with `#[offload_kernel]`) - #164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - #165578 (Avoid `Hash::hash` when stable-hashing various types) - #165729 (tests: Add regression test for infinite recursive dereference) - #165819 (Avoid redundant scans when extracting stage0 archives) - #165822 (Remove unused compiler modules and types) - #165824 (Add regression test for HRTB projection bound with TryFrom error)
Rollup of 11 pull requests Successful merges: - #165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - #165778 (Bump stage0 to 1.101.0-beta.1) - #165412 (Implement `core::ops::FnAddr`) - #165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - #165818 (do not lint `redundant_lifetimes` on items from external macros) - #163077 (feat: support nested functions with `#[offload_kernel]`) - #164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - #165578 (Avoid `Hash::hash` when stable-hashing various types) - #165729 (tests: Add regression test for infinite recursive dereference) - #165822 (Remove unused compiler modules and types) - #165824 (Add regression test for HRTB projection bound with TryFrom error)
Rollup of 11 pull requests Successful merges: - rust-lang/rust#165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - rust-lang/rust#165778 (Bump stage0 to 1.101.0-beta.1) - rust-lang/rust#165412 (Implement `core::ops::FnAddr`) - rust-lang/rust#165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - rust-lang/rust#165818 (do not lint `redundant_lifetimes` on items from external macros) - rust-lang/rust#163077 (feat: support nested functions with `#[offload_kernel]`) - rust-lang/rust#164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - rust-lang/rust#165578 (Avoid `Hash::hash` when stable-hashing various types) - rust-lang/rust#165729 (tests: Add regression test for infinite recursive dereference) - rust-lang/rust#165822 (Remove unused compiler modules and types) - rust-lang/rust#165824 (Add regression test for HRTB projection bound with TryFrom error)
Rollup of 11 pull requests Successful merges: - rust-lang/rust#165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - rust-lang/rust#165778 (Bump stage0 to 1.101.0-beta.1) - rust-lang/rust#165412 (Implement `core::ops::FnAddr`) - rust-lang/rust#165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - rust-lang/rust#165818 (do not lint `redundant_lifetimes` on items from external macros) - rust-lang/rust#163077 (feat: support nested functions with `#[offload_kernel]`) - rust-lang/rust#164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - rust-lang/rust#165578 (Avoid `Hash::hash` when stable-hashing various types) - rust-lang/rust#165729 (tests: Add regression test for infinite recursive dereference) - rust-lang/rust#165822 (Remove unused compiler modules and types) - rust-lang/rust#165824 (Add regression test for HRTB projection bound with TryFrom error)
Rollup of 11 pull requests Successful merges: - rust-lang/rust#165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - rust-lang/rust#165778 (Bump stage0 to 1.101.0-beta.1) - rust-lang/rust#165412 (Implement `core::ops::FnAddr`) - rust-lang/rust#165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - rust-lang/rust#165818 (do not lint `redundant_lifetimes` on items from external macros) - rust-lang/rust#163077 (feat: support nested functions with `#[offload_kernel]`) - rust-lang/rust#164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - rust-lang/rust#165578 (Avoid `Hash::hash` when stable-hashing various types) - rust-lang/rust#165729 (tests: Add regression test for infinite recursive dereference) - rust-lang/rust#165822 (Remove unused compiler modules and types) - rust-lang/rust#165824 (Add regression test for HRTB projection bound with TryFrom error)
Add a test for a case that results in a recursive loop that runs until it runs out of memory or gets killed.
closes #67064