File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
c2rust-refactor/src/ast_builder Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,7 @@ pub struct Builder {
352352 unsafety : Unsafe ,
353353 constness : Const ,
354354 ext : Extern ,
355+ inline : Inline ,
355356 attrs : AttrVec ,
356357 span : Span ,
357358 id : NodeId ,
@@ -371,6 +372,7 @@ impl Builder {
371372 unsafety : Unsafe :: No ,
372373 constness : Const :: No ,
373374 ext : Extern :: None ,
375+ inline : Inline :: No ,
374376 attrs : AttrVec :: new ( ) ,
375377 span : DUMMY_SP ,
376378 id : DUMMY_NODE_ID ,
@@ -388,6 +390,13 @@ impl Builder {
388390 self . vis ( "pub" )
389391 }
390392
393+ pub fn inline ( self ) -> Self {
394+ Builder {
395+ inline : Inline :: Yes ,
396+ ..self
397+ }
398+ }
399+
391400 pub fn set_mutbl < M : Make < Mutability > > ( self , mutbl : M ) -> Self {
392401 let mutbl = mutbl. make ( & self ) ;
393402 Builder {
@@ -1776,7 +1785,7 @@ impl Builder {
17761785 inner_span : self . span ,
17771786 inject_use_span : DUMMY_SP ,
17781787 } ;
1779- ModKind :: Loaded ( items, Inline :: Yes , spans)
1788+ ModKind :: Loaded ( items, self . inline , spans)
17801789 }
17811790
17821791 pub fn mac_item < M > ( self , mac : M ) -> P < Item >
You can’t perform that action at this time.
0 commit comments