Also merges the inhabitedness check into the query to further unify the code paths.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.