about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-12-02 23:08:55 +0100
committerGitHub <noreply@github.com>2024-12-02 23:08:55 +0100
commit65b0dad824afa54eb23aa9e3c333daaf9037249d (patch)
tree0821e4e5d06610adc8e8efa62c72ce455b15d622 /tests/coverage/branch/lazy-boolean.rs
parent6f0d15a144f2d1ee01a3991e1c8f84d411902735 (diff)
parenteadea7764ee49e11165ed041e529cbe79707a31c (diff)
downloadrust-65b0dad824afa54eb23aa9e3c333daaf9037249d.tar.gz
rust-65b0dad824afa54eb23aa9e3c333daaf9037249d.zip
Rollup merge of #133701 - kornelski:c-str, r=workingjubilee
Use c"lit" for CStrings without unwrap

I've reviewed uses of `CString::new("lit")`.

Some could be changed to `c"lit"`. Some could be changed to `c"lit".to_owned()`, avoiding an `unwrap()`.

Many `CString` documentation examples could be simplified. I deliberately haven't changed all the examples to use the exact same expression, so that they can demonstrate many ways of creating `CString`s.

I've left UI tests mostly unchanged, because `c""` requires edition 2021, but most UI tests use 2015, and I didn't want to accidentally change what the tests are testing.
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.rs')
0 files changed, 0 insertions, 0 deletions