This would be better as `s => cx.span_bug(span, format!("expected built-in trait name but found {}", s))` to assist with debugging.