91931ec2fc
Change `is_some_and` to take by value Consistent with other function-accepting `Option` methods. Tracking issue: #93050 r? `@m-ou-se`
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.