rust/tests/crashes
bors 7660aed73d Auto merge of #132173 - veluca93:abi_checks, r=RalfJung,compiler-errors
Emit warning when calling/declaring functions with unavailable vectors.

On some architectures, vector types may have a different ABI depending on whether the relevant target features are enabled. (The ABI when the feature is disabled is often not specified, but LLVM implements some de-facto ABI.)

As discussed in rust-lang/lang-team#235, this turns out to very easily lead to unsound code.

This commit makes it a post-monomorphization future-incompat warning to declare or call functions using those vector types in a context in which the corresponding target features are disabled, if using an ABI for which the difference is relevant. This ensures that these functions are always called with a consistent ABI.

See the [nomination comment](https://github.com/rust-lang/rust/pull/127731#issuecomment-2288558187) for more discussion.

Part of #116558

r? RalfJung
2024-11-10 02:52:25 +00:00
..
34127.rs
54888.rs
57276.rs
74451.rs
79409.rs
79590.rs
87577.rs
88296.rs
90110.rs
91985.rs
92004.rs
92470.rs
93182.rs
93237.rs
94846.rs
95134.rs
96304.rs
98322.rs
100041.rs
100618.rs
101036.rs
101557.rs
102047.rs
102252.rs
103708.rs
103899.rs
104685.rs
105238-1.rs
105238-2.rs
105249.rs
105275.rs
105299.rs
105937.rs
106473.rs
107362.rs
108499.rs
108814.rs
109681.rs
110378.rs
110534.rs
110627.rs
111419.rs
111709-2.rs
111709.rs
111742.rs
112201.rs
112623.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
113280.rs
113379.rs
113846.rs
114198-2.rs
114198.rs
114212-2.rs
114212.rs
114317.rs
114484.rs
114663.rs
114920.rs
115435.rs
115994.rs
116519-2.rs
116519.rs
116554.rs
116947.rs
117392-2.rs
117392.rs
117460.rs
117496.rs
117629.rs
117696-1.rs
117696-2.rs
117795.rs
118038.rs
118244.rs
118545.rs
118590.rs
118603.rs
118952-2.rs
118952.rs
119095.rs
119692.rs
119694.rs
119701.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
119729.rs
119783.rs
119786.rs
119824.rs
120016.rs more crash tests 2024-09-18 00:10:25 +02:00
120033.rs
120254.rs
120811.rs
120873.rs
120911.rs
121097.rs
121127.rs
121363.rs
121411.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
121429.rs
121538.rs
121575.rs
121623.rs
121858.rs
121963.rs
122259.rs
122529.rs
122630.rs
122681.rs
122704.rs
122710.rs
122823.rs
122903-1.rs
122904-2.rs
122904.rs
123077-2.rs
123140.rs
123141.rs
123157.rs
123456.rs
123629.rs
123690.rs
123809.rs
123810.rs
123887.rs
123893.rs
123959.rs
124020.rs
124021.rs
124189.rs
124340.rs
124350.rs
124352.rs
124375.rs more asm! -> naked_asm! in tests 2024-10-06 18:12:25 +02:00
124436.rs
124440.rs
124751.rs
125014.rs
125059.rs
125185.rs
125323.rs
125476.rs Keep object-size-dependent tests failing 2024-09-19 16:23:38 -07:00
125553.rs
125680.rs
125758.rs
125768.rs
125769.rs
125772.rs
125801.rs
125810.rs
125841.rs
125874.rs
125879.rs
125957.rs
126182.rs
126267.rs
126268.rs add and update some crashtests 2024-11-02 23:44:12 +01:00
126269.rs
126359.rs
126443.rs
126646.rs
126667.rs
126680.rs
126696.rs
126942.rs
126944.rs
126982.rs
127033.rs
127351.rs
127353.rs
127628.rs
127643.rs
127676.rs
127742.rs
127804.rs more crash tests 2024-09-18 00:10:25 +02:00
127916.rs
127972.rs
128094.rs
128097.rs
128119.rs more crash tests 2024-09-18 00:10:25 +02:00
128176.rs Rename feature object_safe_for_dispatch to dyn_compatible_for_dispatch 2024-10-10 00:57:59 +02:00
128190.rs
128232.rs more crash tests 2024-09-18 00:10:25 +02:00
128346.rs
128695.rs
129075.rs
129095.rs
129109.rs
129127.rs
129150.rs
129209.rs
129214.rs
129372.rs
129425.rs
129444.rs
129556.rs
130104.rs tests: more ice tests 2024-09-15 21:18:41 +02: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
130411.rs more crash tests 2024-09-18 00:10:25 +02:00
130425.rs more crash tests 2024-09-18 00:10:25 +02:00
130521.rs Rename feature object_safe_for_dispatch to dyn_compatible_for_dispatch 2024-10-10 00:57:59 +02:00
130524.rs crashes: more tests 2024-09-29 11:58:09 +02:00
130627.rs crashes: more tests 2024-09-29 11:58:09 +02:00
130687.rs crashes: more tests 2024-09-29 11:58:09 +02:00
130779.rs crashes: more tests 2024-09-29 11:58:09 +02:00
130956.rs add more crash tests 2024-10-09 15:34:45 +02:00
130967.rs add more crash tests 2024-10-09 15:34:45 +02:00
130970.rs crashes: more tests 2024-09-29 11:58:09 +02:00
131046.rs add more crash tests 2024-10-09 15:34:45 +02:00
131048.rs add more crash tests 2024-10-09 15:34:45 +02:00
131050.rs add and update some crashtests 2024-11-02 23:44:12 +01:00
131052.rs add more crash tests 2024-10-09 15:34:45 +02:00
131101.rs add more crash tests 2024-10-09 15:34:45 +02:00
131102.rs add more crash tests 2024-10-09 15:34:45 +02:00
131103.rs add more crash tests 2024-10-09 15:34:45 +02:00
131227.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
131294-2.rs add more crash tests 2024-10-09 15:34:45 +02:00
131294.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
131298.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
131347.rs add more crash tests 2024-10-09 15:34:45 +02: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
131507.rs add latest crash tests 2024-10-12 11:29:38 +02:00
131534.rs add latest crash tests 2024-10-12 11:29:38 +02:00
131535.rs add latest crash tests 2024-10-12 11:29:38 +02:00
131538.rs add latest crash tests 2024-10-12 11:29:38 +02:00
131637.rs add latest crash tests 2024-10-20 10:05:39 +02:00
131668.rs add latest crash tests 2024-10-20 10:05:39 +02:00
131758.rs add latest crash tests 2024-10-20 10:05:39 +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 add latest crash tests 2024-10-20 10:05:39 +02:00
131915.rs add latest crash tests 2024-10-20 10:05:39 +02:00
132126.rs add and update some crashtests 2024-11-02 23:44:12 +01:00
132127.rs more crash tests 2024-11-06 22:10:23 +01:00
132142.rs more crash tests 2024-11-06 22:10:23 +01:00
132320.rs more crash tests 2024-11-06 22:10:23 +01:00
132330.rs more crash tests 2024-11-06 22:10:23 +01:00
132335.rs more crash tests 2024-11-06 22:10:23 +01:00
132391.rs more crash tests 2024-11-06 22:10:23 +01:00
132430.rs more crash tests 2024-11-06 22:10:23 +01:00
132530.rs more crash tests 2024-11-06 22:10:23 +01:00
const_mut_ref_check_bypass.rs turn errors that should be impossible due to our static checks into ICEs 2024-09-10 10:27:30 +02: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!