We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ImportData::imported_module
1 parent 3b9d04c commit 40305b2Copy full SHA for 40305b2
compiler/rustc_resolve/src/imports.rs
@@ -174,7 +174,10 @@ pub(crate) struct ImportData<'ra> {
174
175
pub parent_scope: ParentScope<'ra>,
176
pub module_path: Vec<Segment>,
177
- /// The resolution of `module_path`.
+ /// The resolution of `module_path`:
178
+ /// - It refers to `a::b` when the `module_path` is `a::b::c`.
179
+ /// - It refers to the module where the use statement is
180
+ /// defined when the `module_path` only has one segment.
181
pub imported_module: Cell<Option<ModuleOrUniformRoot<'ra>>>,
182
pub vis: ty::Visibility,
183
}
0 commit comments