10BC0 layout_of uses `PostAnalysis` · rust-lang/rust-analyzer@719ee8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 719ee8e

Browse files
committed
layout_of uses PostAnalysis
1 parent d4d5f9d commit 719ee8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-ty/src/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ pub fn layout_of_ty_ns_query<'db>(
182182
};
183183
let dl = &*target;
184184
let cx = LayoutCx::new(dl);
185-
let infer_ctxt = interner.infer_ctxt().build(TypingMode::non_body_analysis());
185+
let infer_ctxt = interner.infer_ctxt().build(TypingMode::PostAnalysis);
186186
let cause = ObligationCause::dummy();
187187
let ty = deeply_normalize(infer_ctxt.at(&cause, ParamEnv::empty()), ty).unwrap_or(ty);
188188
let result = match ty.kind() {

0 commit comments

Comments
 (0)
0