Skip to content
Open
Show file tree
Hide file tree
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
19 changes: 19 additions & 0 deletions library/coretests/tests/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,25 @@ fn test_fmt_debug_of_mut_reference() {
assert_eq!(format!("{:?}", &mut x), "0");
}

#[test]
fn test_fmt_pointer() {
use std::rc::Rc;
use std::sync::Arc;
let p: *const u8 = std::ptr::null();
let rc = Rc::new(1usize);
let arc = Arc::new(1usize);
let b = Box::new("hi");

let _ = format!("{rc:p}{arc:p}{b:p}");

if cfg!(target_pointer_width = "32") {
assert_eq!(format!("{:#p}", p), "0x00000000");
} else {
assert_eq!(format!("{:#p}", p), "0x0000000000000000");
}
assert_eq!(format!("{:p}", p), "0x0");
}

#[test]
fn test_default_write_impls() {
use core::fmt::Write;
Expand Down
4 changes: 0 additions & 4 deletions library/stdarch/.git-blame-ignore-revs

This file was deleted.

332 changes: 0 additions & 332 deletions library/stdarch/.github/workflows/main.yml

This file was deleted.

23 changes: 0 additions & 23 deletions library/stdarch/.github/workflows/rustc-pull.yml

This file was deleted.

9 changes: 0 additions & 9 deletions library/stdarch/.gitignore

This file was deleted.

Empty file removed library/stdarch/.gitmodules
Empty file.
Loading
Loading