Matthias Krüger
9b50092fdc
Rollup merge of #132341 - compiler-errors:raw-lt-prefix-id, r=chenyukang
...
Reject raw lifetime followed by `'`, like regular lifetimes do
See comment. We want to reject cases like `'r#long'id`, which currently gets interpreted as a raw lifetime (`'r#long`) followed by a lifetime (`'id`). This could have alternative lexes, such as an overlong char literal (`'r#long'`) followed by an identifier (`id`). To avoid committing to this in any case, let's reject the whole thing.
`@mattheww,` is this what you were looking for in https://github.com/rust-lang/reference/pull/1603#issuecomment-2339237325 ? I'd say ignore the details about the specific error message (the fact that this gets reinterpreted as a char literal is 🤷 ), just that because this causes a lexer error we're effectively saving syntactical space like you wanted.
2024-11-09 19:16:43 +01:00
..
2024-02-16 20:02:50 +00:00
2024-08-31 15:35:42 +03:00
2024-10-30 01:13:18 +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-03-20 17:29:58 +00:00
2024-03-20 17:29:58 +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-07-30 16:42:53 -04:00
2024-07-30 16:42:53 -04:00
2024-05-17 20:31:13 +00:00
2024-03-20 17:29:58 +00:00
2024-07-14 13:50:09 +09: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-05-29 09:27:07 +00:00
2024-05-29 09:27:07 +00:00
2024-05-29 09:27:07 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-14 12:17:00 -04:00
2024-05-29 22:26:54 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-14 17:19:40 +01:00
2024-03-14 17:19:40 +01:00
2024-03-14 17:19:40 +01:00
2024-03-14 17:19:40 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-30 22:52:33 +02:00
2024-07-17 21:30:40 +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-05-17 21:23:47 +00:00
2024-09-24 23:12:02 +02:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-09-12 13:56:01 -04:00
2024-09-12 13:56:01 -04: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-17 12:43:25 -04:00
2024-08-17 12:43:25 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-01 22:48:23 -04:00
2024-03-14 17:19:40 +01:00
2024-02-16 20:02:50 +00:00
2024-08-31 15:35:42 +03:00
2024-08-31 15:35:42 +03:00
2024-11-02 03:08:04 +00:00
2024-03-07 14:26:31 +00:00
2024-02-16 20:02:50 +00:00
2024-05-24 11:20:33 -04:00
2024-06-21 19:00:18 -04:00
2024-06-03 13:03:52 +00:00
2024-07-22 22:51:53 +00:00
2024-10-24 01:56:08 +08:00
2024-10-24 01:56:08 +08:00
2024-10-24 01:56:08 +08:00
2024-10-24 01:56:08 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-10-24 01:56:08 +08:00
2024-10-24 01:56:08 +08:00
2024-10-24 01:56:08 +08:00
2024-02-21 15:45:13 +01:00
2024-09-29 23:40:43 -05:00
2024-09-29 23:40:43 -05:00