mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 18:43:01 +00:00
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
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:
commit
58bbdec731
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue