Skip to content

Tracking issue for future-incompatibility lint soft_unstable #64266

@petrochenkov

Description

@petrochenkov
Contributor

What is this lint about

When some feature is unstable, but was allowed on stable due to some stability checking hole or oversight we may unstabilize it in a "soft" way to avoid breaking crates depending on the crates using the feature.

This soft unstabilization can be done using this lint.

Features that are currently emitting this lint

The #[bench] attribute

Tracking issue: #50297

Features that were previously emitting this lint

RustcEncodable & RustcDecodable

Tracking issue: #134301

Inner #![test] and #![rustfmt::skip]

Tracking issue: #54726

Before adding new features here, read this

We should really support a separate tracking issue for each case of a soft-unstable feature; having them all point here doesn't make a ton of sense.

Activity

added
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
on Sep 7, 2019
added
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
T-langRelevant to the language team
and removed
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
on Sep 7, 2019
lqd

lqd commented on Oct 4, 2019

@lqd
Member

#[deny(soft_unstable)] is on by default, but the error message (playground) still has a lint-like note warning mentioning it will become a hard error in the future:

= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #64266 <https://github.com/rust-lang/rust/issues/64266>

do we need an issue for this ?

added 2 commits that reference this issue on Jan 11, 2020
71a719c
31d7ffa

20 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-future-incompatibilityCategory: Future-incompatibility lintsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language team

    Type

    No type

    Projects

    Status

    Idea

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lqd@RalfJung@Centril@yaahc@petrochenkov

        Issue actions

          Tracking issue for future-incompatibility lint `soft_unstable` · Issue #64266 · rust-lang/rust