about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2023-08-03 19:13:08 -0400
committerTrevor Gross <tmgross@umich.edu>2023-08-29 13:36:45 -0400
commite8f9d1a80f1e21dd3b4198c35b9596fb62e8786d (patch)
treefd734ac017d8318785fcd1a67d795681e1f613e0 /compiler/rustc_mir_transform/src
parentbb90f810703af79f6d4006d455bbb6782838854b (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions