@@ -179,7 +179,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
179179 // - Create a lint defaulting to warn as normal, with ideally the same error
180180 // message you would normally give
181181 // - Add a suitable reference, typically an RFC or tracking issue. Go ahead
182- // and include the full URL.
182+ // and include the full URL, sort items in ascending order of issue numbers .
183183 // - Later, change lint to error
184184 // - Eventually, remove lint
185185 store. register_future_incompatible ( sess,
@@ -189,48 +189,12 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
189189 reference: "issue #34537 <https://github.com/rust-lang/rust/issues/34537>" ,
190190 } ,
191191 FutureIncompatibleInfo {
192- id: LintId :: of( INACCESSIBLE_EXTERN_CRATE ) ,
193- reference: "issue #36886 <https://github.com/rust-lang/rust/issues/36886>" ,
194- } ,
195- FutureIncompatibleInfo {
196- id: LintId :: of( INVALID_TYPE_PARAM_DEFAULT ) ,
197- reference: "issue #36887 <https://github.com/rust-lang/rust/issues/36887>" ,
198- } ,
199- FutureIncompatibleInfo {
200- id: LintId :: of( SUPER_OR_SELF_IN_GLOBAL_PATH ) ,
201- reference: "issue #36888 <https://github.com/rust-lang/rust/issues/36888>" ,
202- } ,
203- FutureIncompatibleInfo {
204- id: LintId :: of( ILLEGAL_FLOATING_POINT_CONSTANT_PATTERN ) ,
205- reference: "issue #36890 <https://github.com/rust-lang/rust/issues/36890>" ,
206- } ,
207- FutureIncompatibleInfo {
208- id: LintId :: of( ILLEGAL_FLOATING_POINT_LITERAL_PATTERN ) ,
209- reference: "issue #41620 <https://github.com/rust-lang/rust/issues/41620>" ,
210- } ,
211- FutureIncompatibleInfo {
212- id: LintId :: of( ILLEGAL_STRUCT_OR_ENUM_CONSTANT_PATTERN ) ,
213- reference: "issue #36891 <https://github.com/rust-lang/rust/issues/36891>" ,
214- } ,
215- FutureIncompatibleInfo {
216- id: LintId :: of( HR_LIFETIME_IN_ASSOC_TYPE ) ,
217- reference: "issue #33685 <https://github.com/rust-lang/rust/issues/33685>" ,
218- } ,
219- FutureIncompatibleInfo {
220- id: LintId :: of( LIFETIME_UNDERSCORE ) ,
221- reference: "issue #36892 <https://github.com/rust-lang/rust/issues/36892>" ,
222- } ,
223- FutureIncompatibleInfo {
224- id: LintId :: of( RESOLVE_TRAIT_ON_DEFAULTED_UNIT ) ,
225- reference: "issue #39216 <https://github.com/rust-lang/rust/issues/39216>" ,
192+ id: LintId :: of( PATTERNS_IN_FNS_WITHOUT_BODY ) ,
193+ reference: "issue #35203 <https://github.com/rust-lang/rust/issues/35203>" ,
226194 } ,
227195 FutureIncompatibleInfo {
228196 id: LintId :: of( SAFE_EXTERN_STATICS ) ,
229- reference: "issue #36247 <https://github.com/rust-lang/rust/issues/35112>" ,
230- } ,
231- FutureIncompatibleInfo {
232- id: LintId :: of( PATTERNS_IN_FNS_WITHOUT_BODY ) ,
233- reference: "issue #35203 <https://github.com/rust-lang/rust/issues/35203>" ,
197+ reference: "issue #36247 <https://github.com/rust-lang/rust/issues/36247>" ,
234198 } ,
235199 FutureIncompatibleInfo {
236200 id: LintId :: of( EXTRA_REQUIREMENT_IN_IMPL ) ,
@@ -248,18 +212,26 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
248212 id: LintId :: of( LEGACY_CONSTRUCTOR_VISIBILITY ) ,
249213 reference: "issue #39207 <https://github.com/rust-lang/rust/issues/39207>" ,
250214 } ,
215+ FutureIncompatibleInfo {
216+ id: LintId :: of( RESOLVE_TRAIT_ON_DEFAULTED_UNIT ) ,
217+ reference: "issue #39216 <https://github.com/rust-lang/rust/issues/39216>" ,
218+ } ,
251219 FutureIncompatibleInfo {
252220 id: LintId :: of( MISSING_FRAGMENT_SPECIFIER ) ,
253221 reference: "issue #40107 <https://github.com/rust-lang/rust/issues/40107>" ,
254222 } ,
255223 FutureIncompatibleInfo {
256- id: LintId :: of( PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES ) ,
257- reference: "issue #42238 <https://github.com/rust-lang/rust/issues/42238 >" ,
224+ id: LintId :: of( ILLEGAL_FLOATING_POINT_LITERAL_PATTERN ) ,
225+ reference: "issue #41620 <https://github.com/rust-lang/rust/issues/41620 >" ,
258226 } ,
259227 FutureIncompatibleInfo {
260228 id: LintId :: of( ANONYMOUS_PARAMETERS ) ,
261229 reference: "issue #41686 <https://github.com/rust-lang/rust/issues/41686>" ,
262230 } ,
231+ FutureIncompatibleInfo {
232+ id: LintId :: of( PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES ) ,
233+ reference: "issue #42238 <https://github.com/rust-lang/rust/issues/42238>" ,
234+ }
263235 ] ) ;
264236
265237 // Register renamed and removed lints
@@ -275,5 +247,20 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
275247 store. register_removed ( "drop_with_repr_extern" , "drop flags have been removed" ) ;
276248 store. register_removed ( "transmute_from_fn_item_types" ,
277249 "always cast functions before transmuting them" ) ;
278- store. register_removed ( "overlapping_inherent_impls" , "converted into hard error, see #36889" ) ;
250+ store. register_removed ( "hr_lifetime_in_assoc_type" ,
251+ "converted into hard error, see https://github.com/rust-lang/rust/issues/33685" ) ;
252+ store. register_removed ( "inaccessible_extern_crate" ,
253+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36886" ) ;
254+ store. register_removed ( "invalid_type_param_default" ,
255+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36887" ) ;
256+ store. register_removed ( "super_or_self_in_global_path" ,
257+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36888" ) ;
258+ store. register_removed ( "overlapping_inherent_impls" ,
259+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36889" ) ;
260+ store. register_removed ( "illegal_floating_point_constant_pattern" ,
261+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36890" ) ;
262+ store. register_removed ( "illegal_struct_or_enum_constant_pattern" ,
263+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36891" ) ;
264+ store. register_removed ( "lifetime_underscore" ,
265+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36892" ) ;
279266}
0 commit comments