mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
8120cc4c49
stop marking `deref_patterns` as an incomplete feature This PR removes the `incomplete_feature` warning for `deref_patterns`. The reason given for this in the tracking issue (rust-lang/rust#87121) was > Per policy, the `incomplete_feature` is supposed to stay on until the feature has an accepted RFC. We're slowly working on writing up that RFC so it'll take some more time unfortunately. > > I don't know of any compiler crashes it causes today. The feature should be pretty usable. However, I could not find any evidence of such a policy. The [lint documentation](https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#incomplete-features) for `incomplete_features` also only mentions features that are more likely to cause errors. There are also many other features without an RFC that are not considered incomplete, e.g. `macro_metavar_expr_concat`, `negative_impls` or `yeet_expr`. The feature does not cause any known ICEs either. The concrete motivation is to use this feature to replace `box_patterns` in the compiler and pave the way towards removing that legacy feature.