Skip to content

Commit 537b31b

Browse files
Properly support opaques
By letting the solver take control of them (reveal them when needed and define them when needed), by providing them in the `TypingMode` plus few helpers.
1 parent b4de9df commit 537b31b

File tree

28 files changed

+743
-501
lines changed

28 files changed

+743
-501
lines changed

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ trivias = "trivias"
3333
thir = "thir"
3434
jod = "jod"
3535
tructure = "tructure"
36+
taits = "taits"
3637

3738
[default.extend-identifiers]
3839
anc = "anc"

crates/hir-ty/src/autoderef.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn autoderef<'db>(
3838
env: Arc<TraitEnvironment<'db>>,
3939
ty: Canonical<'db, Ty<'db>>,
4040
) -> impl Iterator<Item = Ty<'db>> + use<'db> {
41-
let mut table = InferenceTable::new(db, env);
41+
let mut table = InferenceTable::new(db, env, None);
4242
let ty = table.instantiate_canonical(ty);
4343
let mut autoderef = Autoderef::new_no_tracking(&mut table, ty);
4444
let mut v = Vec::new();

0 commit comments

Comments
 (0)