Skip to content

regression: name resolution fails to find constant? #152347

@Mark-Simulacrum

Description

@Mark-Simulacrum

I'm not sure if this is our fault or something in the underlying library...

[INFO] [stdout] error[E0425]: cannot find value `TEST_MODULE_ID` in this scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/abstract-testing-0.26.1/src/abstract_mock_querier.rs:58:18
[INFO] [stdout]     |
[INFO] [stdout]  58 |                 (TEST_MODULE_ID, abstract_addrs.module_address),
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/abstract-testing-0.26.1/src/lib.rs:238:5
[INFO] [stdout]     |
[INFO] [stdout] 238 |     pub const TEST_MODULE_NAME: &str = "test-module-id";
[INFO] [stdout]     |     ---------------------------------------------------- similarly named constant `TEST_MODULE_NAME` defined here
[INFO] [stdout]     |
[INFO] [stdout] help: a constant with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout]  58 -                 (TEST_MODULE_ID, abstract_addrs.module_address),
[INFO] [stdout]  58 +                 (TEST_MODULE_NAME, abstract_addrs.module_address),
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this constant through its public re-export
[INFO] [stdout]     |
[INFO] [stdout]   1 + use crate::TEST_MODULE_ID;
[INFO] [stdout]     |

Metadata

Metadata

Assignees

Labels

A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyP-criticalCritical priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions