File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
compiler/rustc_resolve/src Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,14 @@ pub(crate) struct ImportData<'ra> {
174174
175175 pub parent_scope : ParentScope < ' ra > ,
176176 pub module_path : Vec < Segment > ,
177- /// The resolution of `module_path`.
177+ /// The resolution of `module_path`:
178+ ///
179+ /// | `module_path` | `imported_module` | remark |
180+ /// |-|-|-|
181+ /// |`use prefix::foo`| `ModuleOrUniformRoot::Module(prefix)` | - |
182+ /// |`use ::foo` | `ModuleOrUniformRoot::ExternPrelude` | 2018+ editions |
183+ /// |`use ::foo` | `ModuleOrUniformRoot::CrateRootAndExternPrelude` | a special case in 2015 edition |
184+ /// |`use foo` | `ModuleOrUniformRoot::CurrentScope` | - |
178185 pub imported_module : Cell < Option < ModuleOrUniformRoot < ' ra > > > ,
179186 pub vis : ty:: Visibility ,
180187}
You can’t perform that action at this time.
0 commit comments