Esteban Küber
beaf31581a
Structured use
suggestion on privacy error
...
When encoutering a privacy error on an item through a re-export that is
accessible in an alternative path, provide a structured suggestion with
that path.
```
error[E0603]: module import `mem` is private
--> $DIR/private-std-reexport-suggest-public.rs:4:14
|
LL | use foo::mem;
| ^^^ private module import
|
note: the module import `mem` is defined here...
--> $DIR/private-std-reexport-suggest-public.rs:8:9
|
LL | use std::mem;
| ^^^^^^^^
note: ...and refers to the module `mem` which is defined here
--> $SRC_DIR/std/src/lib.rs:LL:COL
|
= note: you could import this
help: import `mem` through the re-export
|
LL | use std::mem;
| ~~~~~~~~
```
Fix #42909 .
2023-12-04 22:26:08 +00:00
..
2023-04-02 19:42:30 -04:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-08-02 13:40:28 +03:00
2023-10-23 10:10:22 +00:00
2023-10-23 10:10:22 +00:00
2023-08-02 13:40:28 +03:00
2023-11-24 19:15:52 +01:00
2023-08-02 13:40:28 +03:00
2023-10-05 01:04:41 +00:00
2023-03-31 17:07:59 +04:00
2023-10-05 01:04:41 +00:00
2023-11-24 19:15:52 +01:00
2023-04-03 22:28:55 -05:00
2023-04-03 22:28:55 -05:00
2023-08-02 13:40:28 +03:00
2023-08-02 13:40:28 +03:00
2023-10-22 21:27:46 +08:00
2023-12-01 12:10:07 +08:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-29 18:11:57 +00:00
2023-05-26 06:23:03 +00:00
2023-11-24 19:15:52 +01:00
2023-05-26 06:23:03 +00:00
2023-05-26 06:23:03 +00:00
2023-07-28 14:28:02 +01:00
2023-07-28 14:28:02 +01:00
2023-07-28 14:28:02 +01:00
2023-07-28 14:28:02 +01:00
2023-07-28 14:28:02 +01:00
2023-07-28 14:28:02 +01:00
2023-11-24 19:15:52 +01:00
2023-04-03 22:28:55 -05:00
2023-04-03 22:28:55 -05:00
2023-10-05 01:04:41 +00:00
2023-07-11 17:52:43 +08:00
2023-12-04 22:26:08 +00:00
2023-07-11 17:52:43 +08:00
2023-07-11 17:52:43 +08:00
2023-11-24 19:15:52 +01:00
2023-06-22 16:50:31 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-04-03 22:28:55 -05:00
2023-04-03 22:28:55 -05:00
2023-11-24 19:15:52 +01:00
2023-09-07 06:48:24 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-08-02 13:40:28 +03:00
2023-08-02 13:40:28 +03:00
2023-08-02 13:40:28 +03:00
2023-11-24 19:15:52 +01:00
2023-08-02 13:40:28 +03:00
2023-11-24 19:15:52 +01:00
2023-08-02 13:40:28 +03:00
2023-08-02 13:40:28 +03:00
2023-10-09 11:47:02 +00:00
2023-10-23 10:10:22 +00:00
2023-10-23 10:10:22 +00:00
2023-06-12 01:02:19 +03:00
2023-06-12 01:02:19 +03:00
2023-08-02 13:40:28 +03:00
2023-08-02 13:40:28 +03:00
2023-08-02 13:40:28 +03:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-08-02 13:40:28 +03:00
2023-08-02 13:40:28 +03:00
2023-10-22 21:27:46 +08:00
2023-12-01 12:10:07 +08:00
2023-11-19 17:50:47 +00:00
2023-11-29 18:11:57 +00:00
2023-11-24 19:15:52 +01:00
2023-09-06 19:31:49 +02:00
2023-08-02 13:40:28 +03:00
2023-04-03 22:28:55 -05:00
2023-04-03 22:28:55 -05:00
2023-08-02 13:40:28 +03:00
2023-11-24 19:15:52 +01:00
2023-08-02 13:40:28 +03:00
2023-10-09 11:47:02 +00:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00