File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,18 @@ pub enum ResolutionError<'a> {
202
202
AttemptToUseNonConstantValueInConstant ,
203
203
}
204
204
205
+ /// Context of where `ResolutionError::UnresolvedName` arose.
205
206
#[ derive( Clone , PartialEq , Eq , Debug ) ]
206
207
pub enum UnresolvedNameContext {
208
+ /// `PathIsMod(id)` indicates that a given path, used in
209
+ /// expression context, actually resolved to a module rather than
210
+ /// a value. The `id` attached to the variant is the node id of
211
+ /// the erroneous path expression.
207
212
PathIsMod ( ast:: NodeId ) ,
213
+
214
+ /// `Other` means we have no extra information about the context
215
+ /// of the unresolved name error. (Maybe we could eliminate all
216
+ /// such cases; but for now, this is an information-free default.)
208
217
Other ,
209
218
}
210
219
You can’t perform that action at this time.
0 commit comments