You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling playground v0.0.1 (file:///playground)
error: invalid `crate_type` value
--> src/lib.rs:1:1
|
1 | #![crate_type = "proc_macro"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[deny(unknown_crate_types)] on by default
error: aborting due to previous error
error: Could not compile `playground`.
Expected:
Compiling playground v0.0.1 (file:///playground)
error: invalid `crate_type` value
--> src/lib.rs:1:1
|
1 | #![crate_type = "proc_macro"]
| ^^^^^^^^^^^^ did you mean "proc-macro"?
|
= note: #[deny(unknown_crate_types)] on by default
error: aborting due to previous error
error: Could not compile `playground`.
The change here is that the error is on the value of the attribute and it asks the "did you mean" question that you get when you mistype a variable.
The text was updated successfully, but these errors were encountered:
…=estebank
Suggest valid crate type if invalid crate type is found
This adds a suggestion to the `invalid_crate_types` lint.
The suggestion is based on the Levenshtein distance to existing crate
types. If no suggestion is found it will show the lint without any
suggestions.
Closesrust-lang#53958
Errornous code: Yes, it's only a single line
#![crate_type = "proc_macro"]
Current output:
Expected:
The change here is that the error is on the value of the attribute and it asks the "did you mean" question that you get when you mistype a variable.
The text was updated successfully, but these errors were encountered: