Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/tls.rs')
| -rw-r--r-- | crates/hir-ty/src/tls.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-ty/src/tls.rs b/crates/hir-ty/src/tls.rs index 0600fd7c6d..547850b021 100644 --- a/crates/hir-ty/src/tls.rs +++ b/crates/hir-ty/src/tls.rs @@ -104,7 +104,7 @@ mod unsafe_tls { use crate::db::HirDatabase; use scoped_tls::scoped_thread_local; - scoped_thread_local!(static PROGRAM: DebugContext); + scoped_thread_local!(static PROGRAM: DebugContext<'_>); pub(crate) fn with_current_program<R>( op: impl for<'a> FnOnce(Option<&'a DebugContext<'a>>) -> R, @@ -127,7 +127,7 @@ mod unsafe_tls { // `with_current_program`, which hides the lifetime through the `for` // type. let static_p: &DebugContext<'static> = - unsafe { std::mem::transmute::<&DebugContext, &DebugContext<'static>>(&ctx) }; + unsafe { std::mem::transmute::<&DebugContext<'_>, &DebugContext<'static>>(&ctx) }; PROGRAM.set(static_p, op) } } |