@@ -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,16 @@ 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 >",
197+ reference: "issue #36247 <https://github.com/rust-lang/rust/issues/36247 >",
230198 },
231199 FutureIncompatibleInfo {
232- id: LintId::of(PATTERNS_IN_FNS_WITHOUT_BODY ),
233- reference: "issue #35203 <https://github.com/rust-lang/rust/issues/35203 >",
200+ id: LintId::of(INVALID_TYPE_PARAM_DEFAULT ),
201+ reference: "issue #36887 <https://github.com/rust-lang/rust/issues/36887 >",
234202 },
235203 FutureIncompatibleInfo {
236204 id: LintId::of(EXTRA_REQUIREMENT_IN_IMPL),
@@ -248,18 +216,26 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
248216 id: LintId::of(LEGACY_CONSTRUCTOR_VISIBILITY),
249217 reference: "issue #39207 <https://github.com/rust-lang/rust/issues/39207>",
250218 },
219+ FutureIncompatibleInfo {
220+ id: LintId::of(RESOLVE_TRAIT_ON_DEFAULTED_UNIT),
221+ reference: "issue #39216 <https://github.com/rust-lang/rust/issues/39216>",
222+ },
251223 FutureIncompatibleInfo {
252224 id: LintId::of(MISSING_FRAGMENT_SPECIFIER),
253225 reference: "issue #40107 <https://github.com/rust-lang/rust/issues/40107>",
254226 },
255227 FutureIncompatibleInfo {
256- id: LintId::of(PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES ),
257- reference: "issue #42238 <https://github.com/rust-lang/rust/issues/42238 >",
228+ id: LintId::of(ILLEGAL_FLOATING_POINT_LITERAL_PATTERN ),
229+ reference: "issue #41620 <https://github.com/rust-lang/rust/issues/41620 >",
258230 },
259231 FutureIncompatibleInfo {
260232 id: LintId::of(ANONYMOUS_PARAMETERS),
261233 reference: "issue #41686 <https://github.com/rust-lang/rust/issues/41686>",
262234 },
235+ FutureIncompatibleInfo {
236+ id: LintId::of(PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES),
237+ reference: "issue #42238 <https://github.com/rust-lang/rust/issues/42238>",
238+ }
263239 ]);
264240
265241 // Register renamed and removed lints
@@ -275,5 +251,18 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
275251 store.register_removed("drop_with_repr_extern", "drop flags have been removed");
276252 store.register_removed("transmute_from_fn_item_types",
277253 "always cast functions before transmuting them");
278- store.register_removed("overlapping_inherent_impls", "converted into hard error, see #36889");
254+ store.register_removed("hr_lifetime_in_assoc_type",
255+ "converted into hard error, see https://github.com/rust-lang/rust/issues/33685");
256+ store.register_removed("inaccessible_extern_crate",
257+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36886");
258+ store.register_removed("super_or_self_in_global_path",
259+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36888");
260+ store.register_removed("overlapping_inherent_impls",
261+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36889");
262+ store.register_removed("illegal_floating_point_constant_pattern",
263+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36890");
264+ store.register_removed("illegal_struct_or_enum_constant_pattern",
265+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36891");
266+ store.register_removed("lifetime_underscore",
267+ "converted into hard error, see https://github.com/rust-lang/rust/issues/36892");
279268}
0 commit comments