Update the other crates too

This commit is contained in:
Nadrieril 2024-03-07 16:40:04 +01:00
parent 1b0b4220fd
commit e31484c108
3 changed files with 18 additions and 41 deletions

View file

@ -1,6 +1,6 @@
//! Compute the binary representation of a type
use std::fmt;
use std::{borrow::Cow, fmt};
use base_db::salsa::Cycle;
use chalk_ir::{AdtId, FloatTy, IntTy, TyKind, UintTy};
@ -114,8 +114,8 @@ struct LayoutCx<'a> {
impl<'a> LayoutCalculator for LayoutCx<'a> {
type TargetDataLayoutRef = &'a TargetDataLayout;
fn delayed_bug(&self, txt: String) {
never!("{}", txt);
fn delayed_bug(&self, txt: impl Into<Cow<'static, str>>) {
never!("{}", txt.into());
}
fn current_data_layout(&self) -> &'a TargetDataLayout {