Skip to content

Commit ff2b405

Browse files
revert changes and just delete the fixme
Avoiding the naming didn't have any meaningful perf impact.
1 parent 9476fe7 commit ff2b405

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/builder.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::borrow::Cow;
22
use std::cell::Cell;
33
use std::convert::TryFrom;
4-
use std::fmt::Display;
54
use std::ops::Deref;
65

76
use gccjit::{
@@ -527,14 +526,14 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
527526
self.block
528527
}
529528

530-
fn append_block(cx: &'a CodegenCx<'gcc, 'tcx>, func: RValue<'gcc>, name: impl Display) -> Block<'gcc> {
529+
fn append_block(cx: &'a CodegenCx<'gcc, 'tcx>, func: RValue<'gcc>, name: &str) -> Block<'gcc> {
531530
let func = cx.rvalue_as_function(func);
532-
func.new_block(name.to_string())
531+
func.new_block(name)
533532
}
534533

535-
fn append_sibling_block(&mut self, name: impl Display) -> Block<'gcc> {
534+
fn append_sibling_block(&mut self, name: &str) -> Block<'gcc> {
536535
let func = self.current_func();
537-
func.new_block(name.to_string())
536+
func.new_block(name)
538537
}
539538

540539
fn switch_to_block(&mut self, block: Self::BasicBlock) {

0 commit comments

Comments
 (0)