Trevor Gross
6c2e06746d
Rollup merge of #128552 - s7tya:check-no-sanitize-attribute-pos, r=BoxyUwU
...
Emit an error for invalid use of the `#[no_sanitize]` attribute
fixes #128487 .
Currently, the use of the `#[no_sanitize]` attribute for Mod, Impl,... is incorrectly permitted. This PR will correct this issue by generating errors, and I've also added some UI test cases for it.
Referenced #128458 . As far as I know, the `#[no_sanitize]` attribute can only be used with functions, so I changed that part to `Fn` and `Method` using `check_applied_to_fn_or_method`. However, I couldn't find explicit documentation on this, so I could be mistaken...
2024-08-07 20:49:02 -05:00
..
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-30 18:28:43 -05:00
2024-03-03 10:48:40 +08:00
2024-03-03 10:48:40 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-08-04 01:50:55 +00:00
2024-08-04 01:50:55 +00:00
2024-08-06 06:12:10 +00:00
2024-08-06 06:12:10 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-25 22:14:47 +03:00
2024-04-25 22:14:47 +03:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-07-11 12:23:44 +10:00
2024-06-30 19:31:21 +01:00
2024-07-11 12:23:44 +10:00
2024-07-12 21:52:04 +03:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-29 23:49:51 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:02:57 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-17 09:18:14 -04:00
2024-06-24 17:12:08 +03:00
2024-06-24 17:12:08 +03:00
2024-06-24 17:12:08 +03:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-08-05 19:07:32 +09:00
2024-08-05 19:07:32 +09:00
2024-05-10 09:16:27 +02:00
2024-05-10 09:16:27 +02:00
2024-07-31 20:28:00 +00:00
2024-07-31 20:28:00 +00:00
2024-02-22 18:04:55 +00:00
2024-05-20 18:53:17 +08:00
2024-02-22 18:05:28 +00:00
2024-02-22 18:05:28 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-06-29 19:39:09 +08:00
2024-06-29 19:39:09 +08:00
2024-02-24 08:14:38 -05:00
2024-02-24 08:14:38 -05:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00