I think this warning would be more clear if the location given by the warning was the location of the used variable instead of the offending lambda. 1. Make the warning the actual variable 2. Make the note the location of the lambda.