@@ -51,6 +51,7 @@ pub enum Definition {
5151 ToolModule ( ToolModule ) ,
5252 ExternCrateDecl ( ExternCrateDecl ) ,
5353 InlineAsmRegOrRegClass ( ( ) ) ,
54+ InlineAsmRegOperand ( ( ) ) ,
5455}
5556
5657impl Definition {
@@ -89,7 +90,8 @@ impl Definition {
8990 | Definition :: BuiltinLifetime ( _)
9091 | Definition :: TupleField ( _)
9192 | Definition :: ToolModule ( _)
92- | Definition :: InlineAsmRegOrRegClass ( _) => return None ,
93+ | Definition :: InlineAsmRegOrRegClass ( _)
94+ | Definition :: InlineAsmRegOperand ( _) => return None ,
9395 } ;
9496 Some ( module)
9597 }
@@ -124,7 +126,8 @@ impl Definition {
124126 | Definition :: GenericParam ( _)
125127 | Definition :: Label ( _)
126128 | Definition :: DeriveHelper ( _)
127- | Definition :: InlineAsmRegOrRegClass ( _) => return None ,
129+ | Definition :: InlineAsmRegOrRegClass ( _)
130+ | Definition :: InlineAsmRegOperand ( _) => return None ,
128131 } ;
129132 Some ( vis)
130133 }
@@ -153,7 +156,9 @@ impl Definition {
153156 Definition :: ToolModule ( _) => return None , // FIXME
154157 Definition :: DeriveHelper ( it) => it. name ( db) ,
155158 Definition :: ExternCrateDecl ( it) => return it. alias_or_name ( db) ,
156- Definition :: InlineAsmRegOrRegClass ( _) => return None , // FIXME
159+ Definition :: InlineAsmRegOrRegClass ( _) | Definition :: InlineAsmRegOperand ( _) => {
160+ return None
161+ } // FIXME
157162 } ;
158163 Some ( name)
159164 }
@@ -216,7 +221,7 @@ impl Definition {
216221 Definition :: ToolModule ( _) => None ,
217222 Definition :: DeriveHelper ( _) => None ,
218223 Definition :: TupleField ( _) => None ,
219- Definition :: InlineAsmRegOrRegClass ( _) => None ,
224+ Definition :: InlineAsmRegOrRegClass ( _) | Definition :: InlineAsmRegOperand ( _ ) => None ,
220225 } ;
221226
222227 docs. or_else ( || {
@@ -275,6 +280,7 @@ impl Definition {
275280 }
276281 // FIXME
277282 Definition :: InlineAsmRegOrRegClass ( _) => "inline_asm_reg_or_reg_class" . to_owned ( ) ,
283+ Definition :: InlineAsmRegOperand ( _) => "inline_asm_reg_operand" . to_owned ( ) ,
278284 }
279285 }
280286}
@@ -706,6 +712,9 @@ impl NameRefClass {
706712 NameRefClass :: ExternCrateShorthand { krate, decl: extern_crate }
707713 } )
708714 } ,
715+ ast:: AsmRegSpec ( _) => {
716+ Some ( NameRefClass :: Definition ( Definition :: InlineAsmRegOrRegClass ( ( ) ) ) )
717+ } ,
709718 _ => None
710719 }
711720 }
0 commit comments