File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ pub struct AssemblyOutput
6363{
6464 pub binary : util:: BitVec ,
6565 pub state : State ,
66+ pub iterations : usize ,
6667}
6768
6869
@@ -174,6 +175,7 @@ impl Assembler
174175 {
175176 state : self . state ,
176177 binary : full_output,
178+ iterations : iteration,
177179 } ) ;
178180 }
179181
Original file line number Diff line number Diff line change @@ -233,7 +233,9 @@ fn drive_inner(
233233 {
234234 if !quiet
235235 {
236- println ! ( "success" ) ;
236+ println ! ( "success after {} iteration{}" ,
237+ output. iterations,
238+ if output. iterations == 1 { "" } else { "s" } ) ;
237239 println ! ( "" ) ;
238240 }
239241
@@ -271,7 +273,11 @@ fn drive_inner(
271273 { println ! ( "no files written" ) ; }
272274
273275 if !quiet
274- { println ! ( "success" ) ; }
276+ {
277+ println ! ( "success after {} iteration{}" ,
278+ output. iterations,
279+ if output. iterations == 1 { "" } else { "s" } ) ;
280+ }
275281 }
276282
277283 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments