fix #8311, spurious warning about importing Core.eval into Main

(cherry picked from commit ee4d1f284e290ec6f11c44b2964032069dac66d3)