Try harder to continue through errors in type checking #39275
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-type-system
Area: Type system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
If you look at librustc_typeck/lib.rs:check_crate, you see a bunch of
tcx.sess.track_errors
and early returns with?
. In most of these cases (perhaps all except type collection), we should be able to continue type checking instead of returning. That would mean getting more errors to the user sooner, and getting type info in more circumstances in IDEs.The text was updated successfully, but these errors were encountered: