File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -956,10 +956,9 @@ pub struct TomlTarget {
956
956
pub doc : Option < bool > ,
957
957
pub plugin : Option < bool > ,
958
958
pub doc_scrape_examples : Option < bool > ,
959
- #[ serde( rename = "proc-macro" ) ]
960
- pub proc_macro_raw : Option < bool > ,
959
+ pub proc_macro : Option < bool > ,
961
960
#[ serde( rename = "proc_macro" ) ]
962
- pub proc_macro_raw2 : Option < bool > ,
961
+ pub proc_macro2 : Option < bool > ,
963
962
pub harness : Option < bool > ,
964
963
pub required_features : Option < Vec < String > > ,
965
964
pub edition : Option < String > ,
@@ -971,7 +970,7 @@ impl TomlTarget {
971
970
}
972
971
973
972
pub fn proc_macro ( & self ) -> Option < bool > {
974
- self . proc_macro_raw . or ( self . proc_macro_raw2 ) . or_else ( || {
973
+ self . proc_macro . or ( self . proc_macro2 ) . or_else ( || {
975
974
if let Some ( types) = self . crate_types ( ) {
976
975
if types. contains ( & "proc-macro" . to_string ( ) ) {
977
976
return Some ( true ) ;
Original file line number Diff line number Diff line change @@ -1004,7 +1004,7 @@ fn name_or_panic(target: &TomlTarget) -> &str {
1004
1004
}
1005
1005
1006
1006
fn validate_proc_macro ( target : & TomlTarget , kind : & str , warnings : & mut Vec < String > ) {
1007
- if target. proc_macro_raw . is_some ( ) && target. proc_macro_raw2 . is_some ( ) {
1007
+ if target. proc_macro . is_some ( ) && target. proc_macro2 . is_some ( ) {
1008
1008
warn_on_deprecated (
1009
1009
"proc-macro" ,
1010
1010
name_or_panic ( target) ,
You can’t perform that action at this time.
0 commit comments