rust/tests/crashes
Stuart Cook e5b98a9c21
Rollup merge of #143093 - lqd:polonius-pre-alpha, r=jackh726
Simplify polonius location-sensitive analysis

This PR reworks the location-sensitive analysis into what we think is a worthwhile subset of the datalog analysis. A sort of polonius alpha analysis that handles NLL problem case 3 and more, but is still using the faster "reachability as an approximation of liveness", as well as the same loans-in-scope computation as NLLs -- and thus doesn't handle full flow-sensitivity like the datalog implementation.

In the last few months, we've identified this subset as being actionable:
- we believe we can make a stabilizable version of this analysis
- it is an improvement over the status quo
- it can also be modeled in a-mir-formality, or some other formalism, for assurances about soundness, and I believe ````````@nikomatsakis```````` is interested in looking into this during H2.
- and we've identified the areas of work we wish to explore later to gradually expand the supported cases: the differences between reachability and liveness, support of kills, and considerations of time-traveling, for example.

The approach in this PR is to try less to have the graph only represent live paths, by checking whether we reach a live region during traversal and recording the loan as live there, instead of equating traversal with liveness like today because it has subtleties with the typeck edges in statements (that could forward loans to the successor point without ensuring their liveness). We can then also simplify these typeck stmt edges. And we also can simplify traversal by removing looking at kills, because that's enough to handle a bunch of NLL problem 3 cases -- and we can gradually support them more and more in traversal in the future, to reduce the approximation of liveness.

There's still some in-progress pieces of work w/r/t opaque types that I'm expecting [lcnr's opaque types rework](https://github.com/rust-lang/rust/pull/139587), and [amanda's SCCs rework](https://github.com/rust-lang/rust/pull/130227) to handle. That didn't seem to show up in tests until I rebased today (and shows lack of test coverage once again) when https://github.com/rust-lang/rust/pull/142255 introduced a couple of test failures with the new captures rules from edition 2024. It's not unexpected since we know more work is needed with member constraints (and we're not even using SCCs in this prototype yet)

I'll look into these anyways, both for future work, and checking how these other 2 PRs would change things.

---

I'm not sure the following means a lot until we have some formalism in-place, but:
- I've changed the polonius compare-mode to use this analysis: the tests pass with it, except 2 cases with minor diagnostics differences, and the 2 edition 2024 opaque types one I mentioned above and need to investigate
- things that are expected to work still do work: it bootstraps, can run our rustc-perf benchmarks (and the results are not even that bad), and a crater run didn't find any regressions (forgetting that crater currently fails to test around a quarter of all crates 👼)
- I've added tests with improvements, like the NLL problem case 3 and others, as well as some that behave the same as NLLs today and are thus worse than the datalog implementation

r? ````````@jackh726````````

(no rush I know you're deep in phd work and "implmentating" the new trait solver for r-a :p <3)

This also fixes rust-lang/rust#135646, a diagnostics ICE from the previous implementation.
2025-08-10 19:45:46 +10:00
..
auxiliary Fix tests 2025-05-21 20:20:19 +01:00
34127.rs Fix tests that rely on LLVM IR verification 2024-11-29 19:11:34 +01:00
54888.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
87577.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
88296.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
92004.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
92470.rs crashes: add more tests 2024-04-26 17:20:16 +02:00
93182.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
93237.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
94846.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
95134.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
98322.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
100041.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
101036.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
101557.rs crashes: fix ice detection which did not trigger if code compiled without error by accident 2024-04-14 11:21:58 +02:00
102047.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
102252.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
103708.rs add more known-crashes tests 2024-04-19 23:09:37 +02:00
104685.rs add more known-crashes tests 2024-04-19 23:09:37 +02:00
105238-1.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
105238-2.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
105275.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
105937.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
106473.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
108428.rs add two old crash tests 2025-01-25 23:40:35 +01:00
108499.rs crashes: add a couple more tests 2024-04-18 18:55:20 +02:00
108814.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
110378.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
110534.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
110627.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
111419.rs stabilize gai 2025-06-11 15:30:15 +01:00
111742.rs add .rs crashes from https://github.com/rust-lang/glacier 2024-04-14 11:18:23 +02:00
113846.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
114198-2.rs Remove mono item collection strategy override from -Zprint-mono-items 2025-05-09 12:19:09 +02:00
114198.rs Remove mono item collection strategy override from -Zprint-mono-items 2025-05-09 12:19:09 +02:00
114212-2.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
114212.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
114663.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
114920.rs crashes: add a couple more tests 2024-04-18 18:55:20 +02:00
115435.rs crashes: fix ice detection which did not trigger if code compiled without error by accident 2024-04-14 11:21:58 +02:00
116519-2.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
116519.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
116554.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
116947.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
117392-2.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
117392.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
117460.rs add crashtests for several old unfixed ICEs 2024-08-30 12:50:07 +02:00
117496.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
117629.rs parse const trait Trait 2025-07-17 18:06:26 +08:00
117696-1.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
117696-2.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
117795.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
117808.rs add some debug-assertion crash tests 2024-12-08 14:17:25 +01:00
118038.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
118244.rs add more known-crashes tests 2024-04-19 23:09:37 +02:00
118590.rs crashes: add a couple more tests 2024-04-18 18:55:20 +02:00
118603.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
118778.rs add some debug-assertion crash tests 2024-12-08 14:17:25 +01:00
118784.rs add some debug-assertion crash tests 2024-12-08 14:17:25 +01:00
118952-2.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
118952.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
119095.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
119692.rs crashes: fix ice detection which did not trigger if code compiled without error by accident 2024-04-14 11:21:58 +02:00
119729.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
119783.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
119786.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
119824.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
120016.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
120033.rs tests: {Meta,Pointee}Sized in non-minicore tests 2025-06-16 23:04:33 +00:00
120175.rs add some debug-assertion crash tests 2024-12-08 14:17:25 +01:00
120254.rs crashes: add a couple more tests 2024-04-18 18:55:20 +02:00
120811.rs crashes: add even more tests?!? 2024-04-18 06:13:47 +02:00
120873.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
120911.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
121575.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
121858.rs Partially implement ConstArgHasType 2024-05-29 17:06:54 +01:00
121963.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
122259.rs crashes: add a couple more tests 2024-04-18 18:55:20 +02:00
122529.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
122630.rs crashes: add a couple more tests 2024-04-18 18:55:20 +02:00
122681.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
122710.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
122823.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
122903-1.rs Adjust crash bug to still reproduce. 2024-05-31 11:04:32 +00:00
122904-2.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
123140.rs tests/crashes: add ICEs from matthiaskrgr/glacier2 2024-04-14 11:21:51 +02:00
123157.rs crashes: fix ice detection which did not trigger if code compiled without error by accident 2024-04-14 11:21:58 +02:00
123629.rs add a few more crashtests 2024-09-01 22:28:23 +02:00
123690.rs crashes: add even more tests?!? 2024-04-18 06:13:47 +02:00
123810.rs crashes: add even more tests?!? 2024-04-18 06:13:47 +02:00
123862.rs add some debug-assertion crash tests 2024-12-08 14:17:25 +01:00
123887.rs crashes: increment the number of tracked ones 2024-05-27 17:32:56 +02:00
123959.rs crashes: add even more tests?!? 2024-04-18 06:13:47 +02:00
124189.rs crashes: add a couple more ICE tests 2024-04-21 21:04:32 +02:00
124340.rs crashes: add more tests 2024-04-26 17:20:16 +02:00
124352.rs crashes: add more tests 2024-04-26 17:20:16 +02:00
124440.rs crashes: add lastest batch of crash tests 2024-05-05 23:41:08 +02:00
124751.rs Stabilize the 2024 edition 2024-11-22 11:12:15 -08:00
125014.rs crashes: increment the number of tracked ones 2024-05-27 17:32:56 +02:00
125185.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
125323.rs crashes: increment the number of tracked ones 2024-05-27 17:32:56 +02:00
125553.rs remove fixed crashes, add fixed crashes to tests, add new cashed found in the meantime 2024-05-27 20:41:09 +02:00
125680.rs tests: add more crashes 2024-06-09 10:16:12 +02:00
125768.rs tests: add more crashes 2024-06-09 10:16:12 +02:00
125769.rs tests: add more crashes 2024-06-09 10:16:12 +02:00
125772.rs tests: add more crashes 2024-06-09 10:16:12 +02:00
125801.rs tests: add more crashes 2024-06-09 10:16:12 +02:00
125841.rs tests: add more crashes 2024-06-09 10:16:12 +02:00
126268.rs add and update some crashtests 2024-11-02 23:44:12 +01:00
126443.rs add crashtests for several old unfixed ICEs 2024-08-30 12:50:07 +02:00
126667.rs crashes: add more tests 2024-06-29 09:33:28 +02:00
126680.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
126696.rs crashes: add more tests 2024-06-29 09:33:28 +02:00
127033.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
127643.rs Crashes tests 2025-05-01 20:05:07 +01:00
127972.rs Retroactively feature gate ConstArgKind::Path 2024-08-19 01:14:22 +01:00
129095.rs Check signature WF when lowering MIR body 2025-03-03 23:09:42 +00:00
129209.rs crashes: more tests 2024-08-19 00:38:28 +02:00
129425.rs couple more crash tests 2024-08-30 12:38:22 +02:00
129556.rs couple more crash tests 2024-08-30 12:38:22 +02:00
130104.rs tests: s/C-cmse/cmse/ 2025-06-25 00:52:10 -07:00
130310.rs Revert "Add recursion limit to FFI safety lint" 2024-09-23 12:43:44 -04:00
130346.rs tests: more ice tests 2024-09-15 21:18:41 +02:00
130395.rs add some debug-assertion crash tests 2024-12-08 14:17:25 +01:00
130411.rs more crash tests 2024-09-18 00:10:25 +02:00
130524.rs crashes: more tests 2024-09-29 11:58:09 +02:00
130797.rs crashes: more tests 2024-12-15 17:27:52 +01:00
131046.rs add more crash tests 2024-10-09 15:34:45 +02:00
131052.rs add more crash tests 2024-10-09 15:34:45 +02:00
131292.rs add more crash tests 2024-10-09 15:34:45 +02:00
131295.rs add more crash tests 2024-10-09 15:34:45 +02:00
131342.rs Emit warning when calling/declaring functions with unavailable vectors. 2024-11-01 22:24:35 +01:00
131373.rs add more crash tests 2024-10-09 15:34:45 +02:00
131406.rs add more crash tests 2024-10-09 15:34:45 +02:00
131534.rs add latest crash tests 2024-10-12 11:29:38 +02:00
131762.rs add latest crash tests 2024-10-20 10:05:39 +02:00
131787.rs add latest crash tests 2024-10-20 10:05:39 +02:00
131886.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
132126.rs add and update some crashtests 2024-11-02 23:44:12 +01:00
132142.rs tests: s/C-cmse/cmse/ 2025-06-25 00:52:10 -07:00
132765.rs crashes: more tests 2024-12-12 22:09:39 +01:00
132960.rs Check signature WF when lowering MIR body 2025-03-03 23:09:42 +00:00
132985.rs Introduce min_generic_const_args and directly represent paths 2024-11-19 05:07:43 +00:00
133613.rs crashes: more tests 2024-12-15 17:27:52 +01:00
133965.rs crashes: more tests v2 2024-12-12 22:55:31 +01:00
133966.rs crashes: more tests v2 2024-12-12 22:55:31 +01:00
134061.rs crashes: more tests v2 2024-12-12 22:55:31 +01:00
134174.rs crashes: more tests 2024-12-15 17:27:52 +01:00
134479.rs crashes: add latest batch of tests 2025-01-04 14:38:06 +01:00
134587.rs crashes: add latest batch of tests 2025-01-04 14:38:06 +01:00
134615.rs crashes: add latest batch of tests 2025-01-04 14:38:06 +01:00
134641.rs crashes: add latest batch of tests 2025-01-04 14:38:06 +01:00
134654.rs Check signature WF when lowering MIR body 2025-03-03 23:09:42 +00:00
134838.rs crashes: add latest batch of tests 2025-01-04 14:38:06 +01:00
135122.rs add more crash tests 2025-01-12 10:11:29 +01:00
135470.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
135570.rs Check signature WF when lowering MIR body 2025-03-03 23:09:42 +00:00
135617.rs crashes: more tests 2025-02-09 10:40:18 +01:00
135718.rs crashes: more tests 2025-02-09 10:40:18 +01:00
135720.rs crashes: more tests 2025-02-09 10:40:18 +01:00
135845.rs crashes: more tests 2025-02-09 10:40:18 +01:00
136063.rs crashes: more tests 2025-02-09 10:40:18 +01:00
136138.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136175-2.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136175.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136188.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136379.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136381.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136416.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136442.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136661.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136666.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136766.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
136859.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137049.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
137084.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137187.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137190-1.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137190-2.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137190-3.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137260.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137467-1.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
137467-2.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
137467-3.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
137468.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137514.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137580.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137582.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137888.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
137916.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
138008.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
138009.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
138088.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
138089.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
138132.rs crashes: couple more tests 2025-03-08 20:13:07 +01:00
138156.rs crashes: more tests 2025-05-01 17:04:37 +02:00
138361.rs crashes: more tests 2025-05-01 17:04:37 +02:00
138510.rs crashes: more tests 2025-05-01 17:04:37 +02:00
138534.rs crashes: more tests 2025-05-01 17:04:37 +02:00
138564.rs crashes: more tests 2025-05-01 17:04:37 +02:00
138707.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139089.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139120.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139381.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139387.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139462.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139556.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139570.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139596.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139659.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139738.rs crashes: more tests 2025-05-01 17:04:37 +02:00
139815.rs crashes: more tests 2025-05-01 17:04:37 +02:00
140011.rs more ice tests 2025-05-18 17:25:34 +02:00
140099.rs more ice tests 2025-05-18 17:25:34 +02:00
140123-2.rs more ice tests 2025-05-18 17:25:34 +02:00
140123-3.rs more ice tests 2025-05-18 17:25:34 +02:00
140123-4.rs more ice tests 2025-05-18 17:25:34 +02:00
140123.rs more ice tests 2025-05-18 17:25:34 +02:00
140275.rs more ice tests 2025-05-18 17:25:34 +02:00
140303.rs more ice tests 2025-05-18 17:25:34 +02:00
140381.rs more ice tests 2025-05-18 17:25:34 +02:00
140479.rs more ice tests 2025-05-18 17:25:34 +02:00
140577.rs more ice tests 2025-05-18 17:25:34 +02:00
140609.rs more ice tests 2025-05-18 17:25:34 +02:00
140729.rs more ice tests 2025-05-18 17:25:34 +02:00
140850.rs more ice tests 2025-05-18 17:25:34 +02:00
140860.rs more ice tests 2025-05-18 17:25:34 +02:00
140891.rs more ice tests 2025-05-18 17:25:34 +02:00
141124.rs more ice tests 2025-05-18 17:25:34 +02:00
144293-indirect-ops-llvm.rs explicit tail call tests with indirect operands in LLVM, small test for indexing into a function table as described by RFC 3407 2025-08-06 18:13:56 -06:00
project-to-simd-array-field.rs Rework OperandRef::extract_field to stop calling to_immediate_scalar on things which are already immediates 2025-02-19 12:03:40 -08:00
README.md add note not to re-report crashes from crashes tests 2024-11-06 18:07:47 +01:00

This is serves as a collection of crashes so that accidental ICE fixes are tracked. This was formally done at https://github.com/rust-lang/glacier but doing it inside the rustc testsuite is more convenient.

It is imperative that a test in the suite causes an internal compiler error/panic or makes rustc crash in some other way. A test will "pass" if rustc exits with something other than 1 or 0.

When adding crashes from https://github.com/rust-lang/rust/issues, the issue number should be noted in the file name (12345.rs should suffice) and also inside the file via //@ known-bug #4321 if possible.

If you happen to fix one of the crashes, please move it to a fitting subdirectory in tests/ui and give it a meaningful name. Also please add a doc comment at the top of the file explaining why this test exists. :) Adding Fixes #NNNNN Fixes #MMMMM to the description of your pull request will ensure the corresponding tickets will be closed automatically upon merge. The ticket ids can be found in the file name or the known-bug annotation inside the testfile.

Please do not re-report any crashes that you find here!