Prevent replace_consts
lint within match patterns
#4977
Merged
replace_consts
lint within match patterns
#4977