Closed as not planned
Closed as not planned
Description
Given the following code (playground):
#![feature(slice_from_ptr_range)]
#![feature(slice_ptr_get)]
#![feature(staged_api)]
#![feature(stmt_expr_attributes)]
#![feature(strict_provenance)]
fn foo() {}
fn bar() {}
The current output points to the entire file and doesn't tell me what I did wrong:
error: module has missing stability attribute
--> src/lib.rs:1:1
|
1 | / #![feature(slice_from_ptr_range)]
2 | | #![feature(slice_ptr_get)]
3 | | #![feature(staged_api)]
4 | | #![feature(stmt_expr_attributes)]
... |
7 | | fn foo() {}
8 | | fn bar() {}
| |___________^
If I understand the feature correctly, the output should be:
error: expected at least one pub item in this module to be marked as stable or unstable
note: expected because of `#![feature(staged_api)]` on line 3
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: `#[stable]`, `#[unstable]` etc.Diagnostics: Confusing error or lint that should be reworked.Diagnostics: An error or lint that doesn't give enough information about the problem at hand.`#![feature(staged_api)]`Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.This issue requires the use of internal features.