Skip to content
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

Feature Request: Support local run, so it's necessary to import replaced modules with self:: prefix. #208

Open
LumaKernel opened this issue Oct 27, 2024 · 1 comment · May be fixed by #209

Comments

@LumaKernel
Copy link

Currently, we'll get the error like following:

error[E0659]: `memoise` is ambiguous
 --> src/bin/main_equiped.rs:3:5
  |
3 | use memoise::memoise;
  |     ^^^^^^^ ambiguous name
  |
  = note: ambiguous because of multiple potential import sources
  = note: `memoise` could refer to a crate passed with `--extern`
  = help: use `::memoise` to refer to this crate unambiguously
note: `memoise` could also refer to the module imported here

To suppress these, we can add self:: for them.

@LumaKernel LumaKernel linked a pull request Oct 27, 2024 that will close this issue
@LumaKernel
Copy link
Author

For normal imports, we need to replace only if it's not excluded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant