Skip to content

Commit e31484c

Browse files
committed
Update the other crates too
1 parent 1b0b422 commit e31484c

File tree

3 files changed

+18
-41
lines changed

3 files changed

+18
-41
lines changed

Cargo.lock

Lines changed: 11 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ tt = { path = "./crates/tt", version = "0.0.0" }
8484
vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
8585
vfs = { path = "./crates/vfs", version = "0.0.0" }
8686

87-
ra-ap-rustc_lexer = { version = "0.40.0", default-features = false }
88-
ra-ap-rustc_parse_format = { version = "0.40.0", default-features = false }
89-
ra-ap-rustc_index = { version = "0.40.0", default-features = false }
90-
ra-ap-rustc_abi = { version = "0.40.0", default-features = false }
87+
ra-ap-rustc_lexer = { version = "0.42.0", default-features = false }
88+
ra-ap-rustc_parse_format = { version = "0.42.0", default-features = false }
89+
ra-ap-rustc_index = { version = "0.42.0", default-features = false }
90+
ra-ap-rustc_abi = { version = "0.42.0", default-features = false }
9191
ra-ap-rustc_pattern_analysis = { version = "0.42.0", default-features = false }
9292

9393
# local crates that aren't published to crates.io. These should not have versions.

crates/hir-ty/src/layout.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Compute the binary representation of a type
22
3-
use std::fmt;
3+
use std::{borrow::Cow, fmt};
44

55
use base_db::salsa::Cycle;
66
use chalk_ir::{AdtId, FloatTy, IntTy, TyKind, UintTy};
@@ -114,8 +114,8 @@ struct LayoutCx<'a> {
114114
impl<'a> LayoutCalculator for LayoutCx<'a> {
115115
type TargetDataLayoutRef = &'a TargetDataLayout;
116116

117-
fn delayed_bug(&self, txt: String) {
118-
never!("{}", txt);
117+
fn delayed_bug(&self, txt: impl Into<Cow<'static, str>>) {
118+
never!("{}", txt.into());
119119
}
120120

121121
fn current_data_layout(&self) -> &'a TargetDataLayout {

0 commit comments

Comments
 (0)