Skip to content
Merged
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
1 change: 0 additions & 1 deletion mordant-baseline.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"parallel_vecs:src/runtime/api/html_rewriter.rs" = 1
"parallel_vecs:src/runtime/bake/dev_server/incremental_graph.rs" = 1
"reimplemented_helper:src/runtime/api/bun/Terminal.rs" = 1
"reimplemented_helper:src/runtime/ffi/abi_type.rs" = 1
"reimplemented_helper:src/runtime/hw_exports.rs" = 1
"same_match_twice:src/runtime/api/YAMLObject.rs" = 1
"same_match_twice:src/runtime/api/bun/h2_frame_parser.rs" = 1
Expand Down
11 changes: 1 addition & 10 deletions src/runtime/ffi/abi_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ bun_core::comptime_string_map! {
}

// ─────────────────────────────────────────────────────────────────────────────
// Per-variant string table — single source of truth for the four exhaustive
// matches that previously lived in typename_label / param_typename_label /
// Per-variant string table — single source of truth for typename_label /
// ToCFormatter / ToJSFormatter. Indexed by `self as usize`.
// ─────────────────────────────────────────────────────────────────────────────

Expand Down Expand Up @@ -225,14 +224,6 @@ impl ABIType {
pub(crate) fn typename_label(self) -> &'static [u8] {
self.row().c_type
}

pub(crate) fn param_typename(
self,
writer: &mut impl std::io::Write,
) -> Result<(), crate::Error> {
writer.write_all(self.typename_label())?;
Ok(())
}
}

pub struct ToCFormatter<'a> {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/ffi/ffi_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2135,7 +2135,7 @@ impl Function {
writer.write_all(b", ")?;
}
first = false;
arg.param_typename(writer)?;
arg.typename(writer)?;
write!(writer, " arg{}", i)?;
}
writer.write_all(
Expand Down
Loading