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

Fix ambiguous name error #547

Merged
merged 2 commits into from
Jan 6, 2025
Merged

Fix ambiguous name error #547

merged 2 commits into from
Jan 6, 2025

Conversation

taks
Copy link
Contributor

@taks taks commented Jan 6, 2025

Thank you for your contribution!

We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:

Submission Checklist 📝

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo fmt command to ensure that all changed code is formatted correctly.
  • I have used cargo clippy command to ensure that all changed code passes latest Clippy nightly lints.
  • My changes were added to the CHANGELOG.md in the proper section.

Pull Request Details 📖

Description

When NimBLE is enabled, the following error occurs.

error[E0433]: failed to resolve: `log` is a struct, not a module
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/eth.rs:1050:13
     |
1050 |             log::info!("Driver set in promiscuous mode");
     |             ^^^ `log` is a struct, not a module

error[E0433]: failed to resolve: `log` is a struct, not a module
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/eth.rs:1052:13
     |
1052 |             log::info!("Driver set in non-promiscuous mode");
     |             ^^^ `log` is a struct, not a module

error[E0433]: failed to resolve: `log` is a struct, not a module
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/wifi.rs:1204:13
     |
1204 |             log::info!("Driver set in promiscuous mode");
     |             ^^^ `log` is a struct, not a module

error[E0433]: failed to resolve: `log` is a struct, not a module
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/wifi.rs:1206:13
     |
1206 |             log::info!("Driver set in non-promiscuous mode");
     |             ^^^ `log` is a struct, not a module

error[E0659]: `log` is ambiguous
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/eth.rs:1050:13
     |
1050 |             log::info!("Driver set in promiscuous mode");
     |             ^^^ ambiguous name
     |
     = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
     = note: `log` could refer to a crate passed with `--extern`
     = help: use `::log` to refer to this crate unambiguously
note: `log` could also refer to the struct imported here
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/eth.rs:32:5
     |
32   | use crate::sys::*;
     |     ^^^^^^^^^^^^^
     = help: consider adding an explicit import of `log` to disambiguate
     = help: or use `self::log` to refer to this struct unambiguously

error[E0659]: `log` is ambiguous
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/eth.rs:1052:13
     |
1052 |             log::info!("Driver set in non-promiscuous mode");
     |             ^^^ ambiguous name
     |
     = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
     = note: `log` could refer to a crate passed with `--extern`
     = help: use `::log` to refer to this crate unambiguously
note: `log` could also refer to the struct imported here
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/eth.rs:32:5
     |
32   | use crate::sys::*;
     |     ^^^^^^^^^^^^^
     = help: consider adding an explicit import of `log` to disambiguate
     = help: or use `self::log` to refer to this struct unambiguously

error[E0659]: `log` is ambiguous
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/wifi.rs:1204:13
     |
1204 |             log::info!("Driver set in promiscuous mode");
     |             ^^^ ambiguous name
     |
     = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
     = note: `log` could refer to a crate passed with `--extern`
     = help: use `::log` to refer to this crate unambiguously
note: `log` could also refer to the struct imported here
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/wifi.rs:20:5
     |
20   | use crate::sys::*;
     |     ^^^^^^^^^^^^^
     = help: consider adding an explicit import of `log` to disambiguate
     = help: or use `self::log` to refer to this struct unambiguously

error[E0659]: `log` is ambiguous
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/wifi.rs:1206:13
     |
1206 |             log::info!("Driver set in non-promiscuous mode");
     |             ^^^ ambiguous name
     |
     = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
     = note: `log` could refer to a crate passed with `--extern`
     = help: use `::log` to refer to this crate unambiguously
note: `log` could also refer to the struct imported here
    --> /home/a/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.50.0/src/wifi.rs:20:5
     |
20   | use crate::sys::*;
     |     ^^^^^^^^^^^^^
     = help: consider adding an explicit import of `log` to disambiguate
     = help: or use `self::log` to refer to this struct unambiguously

@ivmarkov ivmarkov merged commit 40ab831 into esp-rs:master Jan 6, 2025
20 checks passed
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 this pull request may close these issues.

2 participants