Skip to content

Commit c8eb092

Browse files
committed
rust: clarify overflow checks trigger a Rust panic
Suggested-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent ff17780 commit c8eb092

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Kconfig.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2677,7 +2677,7 @@ config RUST_OVERFLOW_CHECKS
26772677
Enables rustc's `-Coverflow-checks` codegen option.
26782678

26792679
This flag allows you to control the behavior of runtime integer
2680-
overflow. When overflow-checks are enabled, a panic will occur
2680+
overflow. When overflow-checks are enabled, a Rust panic will occur
26812681
on overflow.
26822682

26832683
Note that this will apply to all Rust code, including `core`.

0 commit comments

Comments
 (0)