We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents adae314 + d81e911 commit 314450fCopy full SHA for 314450f
crates/hir-ty/src/layout.rs
@@ -1,5 +1,6 @@
1
//! Compute the binary representation of a type
2
3
+use std::borrow::Cow;
4
use std::fmt;
5
6
use base_db::salsa::Cycle;
@@ -114,8 +115,8 @@ struct LayoutCx<'a> {
114
115
impl<'a> LayoutCalculator for LayoutCx<'a> {
116
type TargetDataLayoutRef = &'a TargetDataLayout;
117
- fn delayed_bug(&self, txt: String) {
118
- never!("{}", txt);
+ fn delayed_bug(&self, txt: impl Into<Cow<'static, str>>) {
119
+ never!("{}", txt.into());
120
}
121
122
fn current_data_layout(&self) -> &'a TargetDataLayout {
0 commit comments