X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_span%2Fsrc%2Fdef_id.rs;h=7c5e1427d1ed72e9e7a8f45ad2c2e70cb8eef90e;hb=c62665e09c11eb1c9d8ea02df5b723364a0b8ba4;hp=221f65b66e6d4b77a1a0f63bc27acf3905e718b5;hpb=d4cf00f03d35c651b7853935309342a4905943f4;p=rust.git diff --git a/compiler/rustc_span/src/def_id.rs b/compiler/rustc_span/src/def_id.rs index 221f65b66e6..7c5e1427d1e 100644 --- a/compiler/rustc_span/src/def_id.rs +++ b/compiler/rustc_span/src/def_id.rs @@ -303,7 +303,7 @@ pub fn expect_local(self) -> LocalDefId { // i.e. don't use closures. match self.as_local() { Some(local_def_id) => local_def_id, - None => panic!("DefId::expect_local: `{:?}` isn't local", self), + None => panic!("DefId::expect_local: `{self:?}` isn't local"), } }