Skip to content

Update and rename stabilization.md to ssskyblue999-stabilization.md #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update and rename stabilization.md to ssskyblue999-stabilization.md
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
  • Loading branch information
sskyblue1010 authored Jan 14, 2025
commit 0a1f9ab8a739a4b2c68feff46dc2bcb9325e76e4
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,18 @@ To stabilize a feature, follow these steps:
- Link to the tracking issue by adding "Closes #XXXXX".

You can see an example of stabilizing a feature with [tracking issue #81656 with FCP](https://github.com/rust-lang/rust/issues/81656) and the associated [implementation PR #84642](https://github.com/rust-lang/rust/pull/84642).
extern "C" {
fn dprintf(fd: i32, s: *const u8, ...);
}

macro_rules! dbg_printf {
($s:expr) => {
unsafe { dprintf(2, "%s\0".as_ptr(), $s as *const u8); }
}
}

fn function_to_debug() {
let dbg_str = format!("debug: {}\n\0", "hello world");
dbg_printf!(dbg_str.as_bytes().as_ptr());
}