Skip to content

Commit d4fa2b1

Browse files
Rollup merge of rust-lang#144808 - Veykril:push-uttkuyswqnzt, r=compiler-errors
`Interner` arg to `EarlyBinder` does not affect auto traits Conceptually `EarlyBinder` does not contain an `Interner` so it shouldn't tell Rust it does via `PhantomData`. This is necessary for rust-analyzer as it stores `EarlyBinder`s in query results which require `Sync`, placing restrictions on our interner setup. r? compiler-errors
2 parents 04463db + 2f60cef commit d4fa2b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_type_ir/src/binder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ impl<I: Interner> TypeVisitor<I> for ValidateBoundVars<I> {
376376
pub struct EarlyBinder<I: Interner, T> {
377377
value: T,
378378
#[derive_where(skip(Debug))]
379-
_tcx: PhantomData<I>,
379+
_tcx: PhantomData<fn() -> I>,
380380
}
381381

382382
/// For early binders, you should first call `instantiate` before using any visitors.

0 commit comments

Comments
 (0)