-
Notifications
You must be signed in to change notification settings - Fork 13.4k
pub use path
then use path
silently cancels the reexport
#14386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Comments
The fundamental bug here seems to be: |
pub use path
then use path
silently cancels the reexport
This now has a much nicer error message:
(although double-printing the error, once for a value and once for a type, seems wrong) I think it can be closed, but might need a test. |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 5, 2023
Simple fix for make::impl_trait This is my first PR in this project. I made this PR because I needed this function to work properly for the main PR I am working on (rust-lang#14386). This is a small amendment to what it was before. We still need to improve this in order for it to fully comply with its syntactic definition as stated [here](https://doc.rust-lang.org/reference/items/implementations.html).
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 17, 2023
feature : assist delegate impl This PR ( fixes rust-lang#14386 ) introduces a new IDE assist that generates a trait impl for a struct that delegates a field. This is a draft because the current `ide_db::path_transform::PathTransform` produces some unwanted results when it deals with extern crates, an example of which I attach as a GIF. GIFs : 1. A general case  2. A case where `ide_db::path_transform::PathTransform` fails to correctly resolve a property ( take `Allocator` as an example ) to its full path, thus causing an error to occur. ( Not to even mention that resolving this causes another error `use of unstable library feature 'allocator_api'` to occur 
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Just
rustc 14386.rs
compiles fine, butrustc --cfg bug 14386.rs
fails with:Original report:
Re-using a re-exported item confuses the visible_private_types lint
gives a warning:
Removing the
use sub::Foo;
line resolves this warning.The text was updated successfully, but these errors were encountered: