Tyler Mandry
5ea55518bc
Rollup merge of #75984 - kornelski:typeormodule, r=matthewjasper
...
Improve unresolved use error message
"use of undeclared type or module `foo`" doesn't mention that it could be a crate.
This error can happen when users forget to add a dependency to `Cargo.toml`, so I think it's important to mention that it could be a missing crate.
I've used a heuristic based on Rust's naming conventions. It complains about an unknown type if the ident starts with an upper-case letter, and crate or module otherwise. It seems to work very well. The expanded error help covers both an unknown type and a missing crate case.
2020-09-09 15:05:45 -07:00
..
2020-09-03 14:09:50 +03:00
2020-09-03 14:09:50 +03:00
2020-09-02 22:26:37 +03:00
2020-09-02 22:26:37 +03:00
2020-09-02 22:26:37 +03:00
2020-09-03 14:09:50 +03:00
2020-03-26 06:52:55 -04:00
2020-09-03 14:09:50 +03:00
2020-09-02 22:26:37 +03:00
2020-09-02 22:26:37 +03:00
2020-09-02 22:26:37 +03:00
2020-09-03 14:09:50 +03:00
2020-03-26 06:52:55 -04:00
2020-03-26 06:52:55 -04:00
2020-06-22 18:51:07 +00:00
2020-06-22 18:51:07 +00:00
2020-06-22 18:51:07 +00:00
2020-06-22 18:51:07 +00:00
2020-06-22 18:51:07 +00:00
2020-06-22 18:51:07 +00:00
2020-06-22 18:51:07 +00:00
2020-06-22 18:51:07 +00:00
2020-09-02 22:26:37 +03:00
2020-03-26 06:52:55 -04:00
2020-09-02 22:26:37 +03:00
2020-03-26 06:52:55 -04:00
2020-09-02 22:26:37 +03:00
2020-07-25 02:11:55 -04:00
2020-03-26 06:52:55 -04:00
2020-09-03 14:09:50 +03:00
2020-03-26 06:52:55 -04:00
2020-09-03 14:09:50 +03:00
2020-03-26 06:52:55 -04:00
2020-06-16 11:56:54 +02:00
2020-06-16 11:56:54 +02:00
2020-08-22 18:41:49 -04:00
2020-08-22 18:41:49 -04:00
2020-03-26 06:52:55 -04:00
2020-03-26 06:52:55 -04:00
2020-03-26 06:52:55 -04:00
2020-09-02 22:26:37 +03:00
2020-08-22 18:41:49 -04:00
2020-08-22 18:41:49 -04:00
2020-09-03 14:09:50 +03:00
2020-08-22 18:41:49 -04:00
2020-09-02 22:26:37 +03:00
2020-09-02 22:26:37 +03:00
2020-09-02 22:26:37 +03:00
2020-09-03 14:09:50 +03:00
2020-06-19 14:04:30 -04:00
2020-06-19 14:04:30 -04:00
2020-04-08 14:40:51 -07:00
2020-09-02 22:26:37 +03:00
2020-09-02 22:26:37 +03:00
2020-06-22 18:51:07 +00:00
2020-09-03 14:09:50 +03:00
2020-09-01 18:38:14 +01:00
2020-09-02 22:26:37 +03:00
2020-09-02 22:26:37 +03:00
2020-04-06 21:55:43 +03:00
2020-09-02 22:26:37 +03:00
2020-09-02 22:26:37 +03:00