[Git][ghc/ghc][master] compiler: refactor error reporting code for ExplicitLevelImports