Merge pull request #20447 from lcnr/typing-mode
Some checks are pending
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run

user facing code should use not use `PostAnalysis`
This commit is contained in:
Shoyu Vanilla (Flint) 2025-08-19 06:53:17 +00:00 committed by GitHub
commit 58bbdec731
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ fn existing_from_impl(
let from_trait = FamousDefs(sema, krate).core_convert_From()?;
let interner = DbInterner::new_with(db, Some(krate.base()), None);
use hir::next_solver::infer::DbInternerInferExt;
let infcx = interner.infer_ctxt().build(TypingMode::PostAnalysis);
let infcx = interner.infer_ctxt().build(TypingMode::non_body_analysis());
let variant = variant.instantiate_infer(&infcx);
let enum_ = variant.parent_enum(sema.db);

View file

@ -216,7 +216,7 @@ fn from_impl_exists(
let from_trait = FamousDefs(sema, krate).core_convert_From()?;
let interner = DbInterner::new_with(db, Some(krate.base()), None);
use hir::next_solver::infer::DbInternerInferExt;
let infcx = interner.infer_ctxt().build(TypingMode::PostAnalysis);
let infcx = interner.infer_ctxt().build(TypingMode::non_body_analysis());
let strukt = strukt.instantiate_infer(&infcx);
let field_ty = strukt.fields(db).get(main_field_i)?.ty(db);