Skip to content

Reintroduce a FCW system to borrowck #713

Description

@nxsaken
Metadata
Point of contact @oli-obk
Team(s) compiler, types
Goal document 2026/borrowck-fcw

Summary

When borrowck was transitioned to NLL, we had a system for turning some errors into warnings, if they only happened
with NLL but not old borrowck and generally compare two impls of borrowck to make sure the errors match up.

Due to recent changes to borrowck (opaque type handling and borrowcking typeck children individually),
the remains of the system for comparing two runs of borrowck can't easily be used anymore for those purposes.

Tasks and status


Note: we have updated the body to match the 2026 goal. Your original text is preserved below.

Details

Metadata
Point of contact @oli-obk
Team(s) compiler, types
Goal document 2026/borrowck-fcw

Summary

When borrowck was transitioned to NLL, we had a system for turning some errors into warnings, if they only happened
with NLL but not old borrowck and generally compare two impls of borrowck to make sure the errors match up.

Due to recent changes to borrowck (opaque type handling and borrowcking typeck children individually),
the remains of the system for comparing two runs of borrowck can't easily be used anymore for those purposes.

Tasks and status

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions