Auto merge of #6781 - matthiaskrgr:lintcheck_fix, r=matthiaskrgr
Auto merge of #6781 - matthiaskrgr:lintcheck_fix, r=matthiaskrgr

lintcheck fix build (forgot to pass function parameter) and runtime (…

…don't check metadata of directory if it does not exist)

Accidentally broke lintcheck in my previous commit.

changelog: None

graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust