Skip to content

Commit 3d8bb97

Browse files
Kyle StrandBatmanAoD
authored andcommitted
more
1 parent 380baad commit 3d8bb97

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/panic-runtime.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
XXX fill me in...
44

5+
From the Book:
6+
7+
> By default, when a panic occurs, the program starts unwinding, which means
8+
> Rust walks back up the stack and cleans up the data from each function it
9+
> encounters. However, this walking back and cleanup is a lot of work. Rust,
10+
> therefore, allows you to choose the alternative of immediately aborting,
11+
> which ends the program without cleaning up. Memory that the program was using
12+
> will then need to be cleaned up by the operating system.
13+
514
`rustc` option: `-C panic=<foo>`
615

716
`panic=abort`

0 commit comments

Comments
 (0)