about summary refs log tree commit diff
path: root/src/test/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-19 06:45:30 +0100
committerGitHub <noreply@github.com>2022-02-19 06:45:30 +0100
commit26dd6ac8302ab7230cd2d78797910931e4b83015 (patch)
tree6a95f972dad56e61042c0636661de36f7eb9219d /src/test/rustdoc-js-std/parser-errors.js
parent554aea90b8e382678de0e87e07210af19f67f0ab (diff)
parent897c8d0ab9d3cb2cf1c112f31c6ac3e93d9884bc (diff)
downloadrust-26dd6ac8302ab7230cd2d78797910931e4b83015.tar.gz
rust-26dd6ac8302ab7230cd2d78797910931e4b83015.zip
Rollup merge of #93979 - SUPERCILEX:debug_check, r=dtolnay
Add debug assertions to validate NUL terminator in c strings

The `unchecked` variants from the stdlib usually perform the check anyway if debug assertions are on (for example, `unwrap_unchecked`). This PR does the same thing for `CStr` and `CString`, validating the correctness for the NUL byte in debug mode.
Diffstat (limited to 'src/test/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions