Skip to content

InferCtxt::tainted_by_errors_flag should be Option<ErrorGuaranteed> #100321

Closed
@lcnr

Description

@lcnr

tainted_by_errors_flag: Cell<bool>,

should be Cell<Option<ErrorGuaranteed>> to guarantee that we emit an error when that flag is set. This is already done for tainted_by_errors of other types in rustc.

pub tainted_by_errors: Option<ErrorGuaranteed>,

Metadata

Metadata

Assignees

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions