-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.F-public_private_dependenciesfeature: public_private_dependenciesfeature: public_private_dependenciesL-exported_private_dependenciesLint: exported_private_dependenciesLint: exported_private_dependenciesT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Tracking issue: #44663, RFC: rust-lang/rfcs#1977
Cargo.toml:
cargo-features = ["public-dependency"]
[package]
name = "playground"
version = "0.0.0"
edition = "2018"
[dependencies]
num-traits = "0.2"
lib.rs:
pub struct S;
impl std::ops::Add for S {
type Output = S;
fn add(self, _: Self) -> Self::Output {
unimplemented!()
}
}
impl num_traits::Zero for S {
fn zero() -> Self {
unimplemented!()
}
fn is_zero(&self) -> bool {
unimplemented!()
}
}
Also, a plain pub use
seems to be missed as well.
Kixunil and 0xangelo
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.F-public_private_dependenciesfeature: public_private_dependenciesfeature: public_private_dependenciesL-exported_private_dependenciesLint: exported_private_dependenciesLint: exported_private_dependenciesT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.