diff options
| author | Trevor Gross <tmgross@umich.edu> | 2023-08-03 19:13:08 -0400 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2023-08-29 13:36:45 -0400 |
| commit | e8f9d1a80f1e21dd3b4198c35b9596fb62e8786d (patch) | |
| tree | fd734ac017d8318785fcd1a67d795681e1f613e0 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | bb90f810703af79f6d4006d455bbb6782838854b (diff) | |
| download | rust-e8f9d1a80f1e21dd3b4198c35b9596fb62e8786d.tar.gz rust-e8f9d1a80f1e21dd3b4198c35b9596fb62e8786d.zip | |
Refactor the const `strlen` implementation to `const_strlen`
Currently, `CStr::from_ptr` contains its own implementation of `strlen` that uses `const_eval_select` to either call libc's `strlen` or use a naive Rust implementation. Refactor that into its own function so we can use it elsewhere in the module.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
