-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
C-bugCategory: bugCategory: bug
Description
I never had problems with this in the past, but suddenly rust-analyzer's import suggestions no longer take into account pub visibility. Unfortunately I don't have a minimal reproduction, but I do have a reproduction.
- Clone
https://github.com/pola-rs/polars(suggest--depth 1). - Edit file
crates/polars-expr/src/lib.rs, add the following function:
fn foo() -> DataType {
todo!()
}- Ask rust-analyzer to import
DataTypefor you:
- Suggestion is wrong, it's not visibile to us here, it suggests something else:

- Suggestion is still wrong, it finally gets a public symbol:

rust-analyzer version: rust-analyzer version: 0.4.2148-standalone (418c136 2024-10-15)
rustc version: rustc 1.83.0-nightly (ed04567 2024-09-28)
editor or extension: VS Code
repository link (if public, optional): https://github.com/polar-rs/polars
MolotovCherry and coastalwhiteShoyuVanilla and roife
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bug