Skip to content

Commit 749d4eb

Browse files
authored
Unrolled build for #144808
Rollup merge of #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 f34ba77 + 2f60cef commit 749d4eb

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)