@@ -40,10 +40,6 @@ pub enum Message {
40
40
file : String ,
41
41
message : String ,
42
42
} ,
43
- PreviewNotFound {
44
- file : String ,
45
- edition : String ,
46
- } ,
47
43
EditionAlreadyEnabled {
48
44
file : String ,
49
45
edition : String ,
@@ -81,7 +77,6 @@ impl Message {
81
77
82
78
pub struct DiagnosticPrinter < ' a > {
83
79
config : & ' a Config ,
84
- preview_not_found : HashSet < String > ,
85
80
edition_already_enabled : HashSet < String > ,
86
81
idiom_mismatch : HashSet < String > ,
87
82
}
@@ -90,7 +85,6 @@ impl<'a> DiagnosticPrinter<'a> {
90
85
pub fn new ( config : & ' a Config ) -> DiagnosticPrinter < ' a > {
91
86
DiagnosticPrinter {
92
87
config,
93
- preview_not_found : HashSet :: new ( ) ,
94
88
edition_already_enabled : HashSet :: new ( ) ,
95
89
idiom_mismatch : HashSet :: new ( ) ,
96
90
}
@@ -140,21 +134,6 @@ impl<'a> DiagnosticPrinter<'a> {
140
134
write ! ( self . config. shell( ) . err( ) , "{}" , PLEASE_REPORT_THIS_BUG ) ?;
141
135
Ok ( ( ) )
142
136
}
143
- Message :: PreviewNotFound { file, edition } => {
144
- // By default we're fixing a lot of things concurrently, don't
145
- // warn about the same file multiple times.
146
- if !self . preview_not_found . insert ( file. clone ( ) ) {
147
- return Ok ( ( ) )
148
- }
149
- self . config . shell ( ) . warn ( & format ! (
150
- "failed to find `#![feature(rust_{}_preview)]` in `{}`\n \
151
- this may cause `cargo fix` to not be able to fix all\n \
152
- issues in preparation for the {0} edition",
153
- edition,
154
- file,
155
- ) ) ?;
156
- Ok ( ( ) )
157
- }
158
137
Message :: EditionAlreadyEnabled { file, edition } => {
159
138
// Like above, only warn once per file
160
139
if !self . edition_already_enabled . insert ( file. clone ( ) ) {
0 commit comments