Files
rust/tests/ui/lint
Matthias Krüger add772d3c4 Rollup merge of #149730 - SATVIKsynopsis:main, r=Kivooeo
lint: emit proper diagnostic for unsafe binders in improper_ctypes instead of ICE

Fixes rust-lang/rust#149719

This PR replaces the `todo!("FIXME(unsafe_binder)")` branch in the `improper_ctypes` lint with a proper diagnostic.

Previously, using an unsafe binder inside an extern `"C"` block caused an internal compiler error.
This fix now ensures that the compiler now emits a clear and stable error message explaining that types containing unsafe binders are not yet supported in FFI.

A new UI test `(unsafe-binder-basic.rs)` is included to ensure this behavior remains stable and prevent regressions.
2025-12-09 06:17:24 +01:00
..
2025-11-27 11:19:00 -05:00
2025-11-27 14:13:58 -05:00
2024-03-14 09:54:42 +08:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-05-15 13:17:11 -05:00
2025-01-07 16:04:14 +01:00
2025-04-20 11:18:38 +02:00
2025-04-06 21:41:47 +02:00
2024-04-22 18:48:47 +02:00
2025-11-27 11:19:00 -05:00
2025-12-02 18:25:13 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-11-27 11:19:00 -05:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-11-16 20:03:31 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-01-05 10:56:59 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2025-12-02 18:25:13 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-12-24 11:35:38 +08:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-12-06 13:49:00 -05:00
2025-11-27 11:19:00 -05:00