Skip to content

Find usages doesn't work well inside the file that included by include! macro #18313

Closed
@ShoyuVanilla

Description

@ShoyuVanilla
// ./src/lib.rs
include!("foo.rs");

fn howdy() {
    let _ = FIND_ME;
         // ^^^^^^^ triggering find usages here works fine
    println!("{FIND_ME}");
            // ^^^^^^^ fine here, too
}

// ./src/foo.rs
const FIND_ME: i32 = 0;
   // ^^^^^^^ not finding any usages here

Metadata

Metadata

Assignees

Labels

A-nameresname, path and module resolutionC-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions