-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
std_instead_of_core emitted for unstable/feature gated types #17407
Copy link
Copy link
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveI-suggestion-causes-errorIssue: The suggestions provided by this Lint cause an ICE/error when appliedIssue: The suggestions provided by this Lint cause an ICE/error when applied
Description
Activity
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveI-suggestion-causes-errorIssue: The suggestions provided by this Lint cause an ICE/error when appliedIssue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
Just updated to 1.97 using cargo, and the std_instead_of_core lint was emitted when it hadn't been in the past.
This looks like a regression of the fixes for #9545.
Lint Name
std_instead_of_core
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No output, since
core::io::ErrorKindis not stable yet.Version
Additional Labels
@rustbot label +I-suggestion-causes-error