about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-12 14:37:58 +0200
committerGitHub <noreply@github.com>2024-07-12 14:37:58 +0200
commit8ceb4e49ff598d4b8bc07cd0f2fdc0d0e66667dc (patch)
tree47ada17c6d6fb72474c1adf0238f7921f17c94be /compiler/rustc_codegen_gcc/example/std_example.rs
parentf9b3e8b3878f30810def3d151288847868ee084e (diff)
parent7f1518bddd76ad8e3a743278fd983c35d11b2411 (diff)
downloadrust-8ceb4e49ff598d4b8bc07cd0f2fdc0d0e66667dc.tar.gz
rust-8ceb4e49ff598d4b8bc07cd0f2fdc0d0e66667dc.zip
Rollup merge of #127433 - dtolnay:conststrlen, r=workingjubilee
Stabilize const_cstr_from_ptr (CStr::from_ptr, CStr::count_bytes)

Completed the pair of FCPs https://github.com/rust-lang/rust/issues/113219#issuecomment-2016939401 + https://github.com/rust-lang/rust/issues/114441#issuecomment-2016942566.

`CStr::from_ptr` is covered by just the first FCP on its own. `CStr::count_bytes` requires the approval of both FCPs. The second paragraph of the first link and the last paragraph of the second link explain the relationship between the two FCPs. As both have been approved, we can proceed with stabilizing `const` on both of these already-stable functions.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions