-
Notifications
You must be signed in to change notification settings - Fork 74
allow incomplete_features in UI tests #974
Copy link
Copy link
Closed
Labels
T-compilerAdd this label so rfcbot knows to poll the compiler teamAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was acceptedA major change proposal that was accepted
Metadata
Metadata
Assignees
Labels
T-compilerAdd this label so rfcbot knows to poll the compiler teamAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was acceptedA major change proposal that was accepted
Type
Fields
Give feedbackNo fields configured for issues without a type.
Proposal
The UI test suite already allows several lints by default, such as
unusedlints orinternal_features, because a lot of tests would trigger them and distract from the actual purpose of the test. However, theincomplete_featureslint is not yet allowed. This has two drawbacks:#![expect(incomplete_features)]or//~ WARN the feature ... is incomplete, which is annoying (example: stop markingderef_patternsas an incomplete feature rust#153053)check/build/run-passthat still have a.stderrfile that contains nothing more than thewarning: the feature ... is incomplete and may not be safe to use and/or cause compiler crasheswarning.Therefore, I propose to also allow
incomplete_featuresfor all UI tests by default and only add#![warn(incomplete_features)]to tests that are specifically about emitting the warning for a feature.Mentors or Reviewers
I am willing to make a PR that allows the lint for
tests/uiand updates the affected test files.Process
The main points of the Major Change Process are as follows:
@rustbot secondor kickoff a team FCP with@rfcbot fcp $RESOLUTION.You can read more about Major Change Proposals on forge.
Note
Concerns (0 active)
dont-forget-in-main-feature-gate-testresolved in this commentManaged by
@rustbot—see help for details.