Matthias Krüger
1f6a9aacee
Rollup merge of #136212 - estebank:span-tweak, r=petrochenkov
...
Tweak `&mut self` suggestion span
```
error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` reference
--> $DIR/issue-38147-1.rs:17:9
|
LL | self.s.push('x');
| ^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
|
help: consider changing this to be a mutable reference
|
LL | fn f(&mut self) {
| +++
```
Note the suggestion to add `mut` instead of replacing the entire `&self` with `&mut self`.
2025-01-29 15:29:49 +01:00
..
2024-09-22 10:46:59 -04:00
2025-01-18 22:09:35 +00:00
2024-12-08 15:32:04 +08:00
2024-12-08 15:32:04 +08:00
2024-12-08 15:32:04 +08:00
2024-08-18 19:46:53 +02:00
2024-08-18 19:46:53 +02:00
2024-08-18 19:46:53 +02:00
2024-08-18 19:46:53 +02:00
2024-08-18 19:46:53 +02:00
2024-08-18 19:46:53 +02:00
2024-08-18 19:46:53 +02:00
2024-08-18 19:46:53 +02:00
2024-07-26 14:41:56 -04:00
2024-09-13 14:10:56 +03:00
2024-09-13 14:10:56 +03:00
2024-11-26 02:50:48 +08:00
2024-07-26 14:41:56 -04:00
2024-11-26 02:50:48 +08:00
2024-04-12 04:46:31 +00:00
2024-07-04 05:36:34 +00:00
2025-01-27 23:42:47 +00:00
2025-01-27 23:42:47 +00:00
2024-11-26 02:50:48 +08:00
2024-07-26 14:41:56 -04:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-04-15 21:36:52 -04:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-07-26 14:41:56 -04:00
2024-11-26 02:50:48 +08:00
2024-07-26 14:41:56 -04:00
2024-07-26 14:41:56 -04:00
2025-01-23 20:51:29 +08:00
2024-07-04 02:02:21 +00:00
2024-04-24 22:21:16 +00:00
2024-07-26 14:41:56 -04:00
2024-06-29 19:58:18 +08:00
2024-07-26 14:41:56 -04:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-04-24 22:21:15 +00:00
2024-07-26 14:41:56 -04:00
2024-07-26 14:41:56 -04:00
2024-04-24 22:21:15 +00:00
2024-04-11 16:41:41 +00:00
2024-07-26 14:41:56 -04:00
2024-11-26 02:50:48 +08:00
2024-04-11 16:41:42 +00:00
2024-04-12 20:57:07 +00:00
2024-11-26 02:50:48 +08:00
2024-07-26 14:41:56 -04:00
2024-04-11 16:41:42 +00:00
2024-04-15 21:36:52 -04:00
2024-11-26 02:50:48 +08:00
2024-09-13 14:10:56 +03:00
2024-11-26 02:50:48 +08:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-12-07 21:37:13 +00:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-06-27 15:19:08 -04:00
2024-07-16 02:48:47 +08:00
2024-07-16 02:48:47 +08:00
2025-01-06 16:08:29 -08:00
2024-05-29 09:27:07 +00:00
2024-05-29 09:27:07 +00:00
2024-07-24 23:36:47 -04:00
2024-07-24 23:36:47 -04:00
2024-07-04 02:02:21 +00:00
2024-12-21 19:08:30 +00:00
2025-01-06 16:08:29 -08:00
2024-12-31 02:21:17 +00:00
2025-01-06 16:08:29 -08:00
2025-01-06 16:08:29 -08:00
2024-04-24 22:21:15 +00:00
2024-09-13 14:10:56 +03:00
2024-09-13 14:10:56 +03:00
2025-01-23 20:51:29 +08:00
2024-07-04 04:36:52 +00:00
2024-07-04 02:02:21 +00:00
2024-07-04 02:02:21 +00:00
2024-09-13 14:10:56 +03:00
2024-09-13 14:10:56 +03:00
2024-12-23 22:15:32 +00:00
2024-12-23 22:15:32 +00:00
2024-07-22 22:51:53 +00:00
2024-04-11 16:41:41 +00:00
2025-01-07 16:04:14 +01:00
2025-01-28 19:35:51 +00:00
2025-01-28 19:35:51 +00:00
2024-07-26 14:41:56 -04:00
2025-01-28 14:11:29 +00:00
2024-04-15 21:36:52 -04:00
2024-04-24 22:21:15 +00:00
2024-12-12 23:36:27 +00:00
2024-07-04 05:36:34 +00:00
2024-04-24 22:21:15 +00:00
2024-04-24 22:21:15 +00:00
2024-04-11 16:41:41 +00:00
2024-04-24 22:21:15 +00:00
2024-07-19 09:34:32 +08:00
2024-12-07 21:26:20 +00:00
2024-06-29 19:58:18 +08:00
2024-04-24 22:21:15 +00:00
2024-07-17 10:07:02 +08:00
2024-07-17 10:07:02 +08:00
2024-07-17 10:07:02 +08:00
2024-07-17 10:07:02 +08:00
2024-07-04 05:36:34 +00:00
2024-12-13 16:32:23 +01:00
2024-12-16 20:44:23 +01:00
2024-04-21 22:00:38 +02:00
2024-04-21 22:00:38 +02:00
2024-12-18 16:05:44 +01:00
2024-12-18 16:05:44 +01:00
2024-08-22 02:20:05 +00:00
2024-04-15 21:36:52 -04:00
2024-04-25 04:54:25 +08:00
2024-07-04 02:02:21 +00:00
2024-07-04 02:02:21 +00:00
2025-01-28 19:35:51 +00:00
2024-05-09 14:47:09 +10:00
2024-05-09 14:47:09 +10:00
2024-05-09 14:47:09 +10:00
2024-05-09 14:47:09 +10:00
2024-05-09 14:47:09 +10:00
2024-05-09 14:47:09 +10:00
2024-05-09 14:47:09 +10:00
2024-05-09 14:47:09 +10:00
2025-01-06 16:08:29 -08:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-06-12 11:11:02 +08:00
2024-06-12 11:11:02 +08:00
2024-06-17 15:21:07 +10:00
2024-06-17 15:21:07 +10:00