-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
P-criticalCritical priorityCritical priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Description
The following code compiles fine with nightly-2020-09-22 (and stable rustc since 1.10.0) but not nightly-2020-09-23.
use std::os::unix::fs::OpenOptionsExt;
struct MyOpenOptions;
impl OpenOptionsExt for MyOpenOptions {
fn mode(&mut self, _mode: u32) -> &mut Self {
unimplemented!()
}
fn custom_flags(&mut self, _flags: i32) -> &mut Self {
unimplemented!()
}
}
error[E0046]: not all trait items implemented, missing: `as_flags`
--> src/lib.rs:5:1
|
5 | impl OpenOptionsExt for MyOpenOptions {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `as_flags` in implementation
|
= help: implement the missing item: `fn as_flags(&self) -> std::result::Result<i32, std::io::Error> { todo!() }`
This is minimized from https://github.com/async-rs/async-std/blob/e8126633a89aafea23259eb9faddb70b89f94423/src/fs/open_options.rs#L303-L313.
Mentioning #76110, #76801, @FedericoPonzi, @joshtriplett.
Metadata
Metadata
Assignees
Labels
P-criticalCritical priorityCritical priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.