Trevor Gross
00308920ae
Rollup merge of #128467 - estebank:unsized-args, r=cjgillot
...
Detect `*` operator on `!Sized` expression
The suggestion is new:
```
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> $DIR/unsized-str-in-return-expr-arg-and-local.rs:15:9
|
LL | let x = *"";
| ^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `str`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
help: references to `!Sized` types like `&str` are `Sized`; consider not dereferencing the expression
|
LL - let x = *"";
LL + let x = "";
|
```
Fix #128199 .
2024-08-24 21:03:30 -05:00
..
2024-07-11 20:39:24 +00:00
2024-07-12 21:16:09 -04:00
2024-07-11 20:39:24 +00:00
2024-04-24 22:21:15 +00:00
2024-07-18 18:20:35 +00:00
2024-07-14 13:50:09 +09:00
2024-08-03 07:57:31 -04:00
2024-07-04 06:06:33 +00:00
2024-05-04 11:30:38 +02:00
2024-06-12 12:34:47 +00:00
2024-06-25 10:00:30 +08:00
2024-08-16 14:10:06 -04:00
2024-07-05 19:40:09 +00:00
2024-04-24 22:21:15 +00:00
2024-08-08 17:35:40 +00:00
2024-07-19 19:39:37 +00:00
2024-07-22 22:51:53 +00:00
2024-08-05 17:37:12 -07:00
2024-08-05 17:37:12 -07:00
2024-07-05 20:58:33 +00:00
2024-07-06 14:24:20 +02:00
2024-08-22 02:20:05 +00:00
2024-07-05 20:58:33 +00:00
2024-07-04 02:41:13 +00:00
2024-05-29 22:26:54 +00:00
2024-07-04 02:41:13 +00:00
2024-07-12 21:16:09 -04:00
2024-07-12 21:16:09 -04:00
2024-06-20 04:25:17 +00:00
2024-07-09 17:21:31 -06:00
2024-07-18 18:20:35 +00:00
2024-05-30 22:52:33 +02:00
2024-05-30 22:52:33 +02:00
2024-05-30 22:52:33 +02:00
2024-05-30 22:52:33 +02:00
2024-05-29 22:26:54 +00:00
2024-06-12 12:34:47 +00:00
2024-04-24 22:21:15 +00:00
2024-04-24 22:21:15 +00:00
2024-05-04 11:30:38 +02:00
2024-05-30 22:52:33 +02:00
2024-05-30 22:52:33 +02:00
2024-07-15 22:05:45 +02:00
2024-07-15 22:05:45 +02:00
2024-04-30 12:46:59 +05:30
2024-07-11 20:39:24 +00:00
2024-07-11 20:39:24 +00:00
2024-07-11 20:39:24 +00:00
2024-07-09 17:21:31 -06:00
2024-07-11 12:23:44 +10:00
2024-07-18 18:20:35 +00:00
2024-07-11 12:23:44 +10:00
2024-07-18 18:20:35 +00:00
2024-08-22 02:20:05 +00:00
2024-07-10 17:15:02 -04:00
2024-07-10 17:15:02 -04:00
2024-05-30 22:52:33 +02:00
2024-05-30 22:52:33 +02:00
2024-07-12 03:02:57 +00:00
2024-04-29 14:53:38 +02:00
2024-05-30 22:52:33 +02:00
2024-05-30 22:52:33 +02:00
2024-07-18 20:08:38 +00:00
2024-07-11 20:39:24 +00:00
2024-05-28 12:31:33 +02:00
2024-08-06 11:17:26 +02:00
2024-07-10 16:16:48 +02:00
2024-07-10 16:16:48 +02:00
2024-06-12 12:34:47 +00:00
2024-04-30 12:46:59 +05:30
2024-06-03 09:49:04 -04:00
2024-06-03 09:49:04 -04:00
2024-07-22 22:51:53 +00:00
2024-07-18 18:39:20 +00:00
2024-04-30 22:27:19 +02:00
2024-06-20 04:25:17 +00:00
2024-07-22 22:51:53 +00:00
2024-06-17 22:35:25 -04:00
2024-06-17 22:35:25 -04:00
2024-06-25 23:29:44 +08:00
2024-04-25 11:49:12 -04:00
2024-04-25 11:49:12 -04:00
2024-07-18 18:20:35 +00:00
2024-06-19 04:41:56 +00:00
2024-06-19 14:58:29 +00:00