From 399e050a3dfa552fe256149607f0bc701f177670 Mon Sep 17 00:00:00 2001 From: Dennis Korpel Date: Sat, 15 Feb 2025 23:23:55 +0100 Subject: [PATCH] Fix #20855: -v command line switch should show import sources --- compiler/src/dmd/dmodule.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dmd/dmodule.d b/compiler/src/dmd/dmodule.d index 3264c34bf671..970003e38728 100644 --- a/compiler/src/dmd/dmodule.d +++ b/compiler/src/dmd/dmodule.d @@ -548,7 +548,7 @@ extern (C++) final class Module : Package buf.writeByte('.'); } buf.printf("%s\t(%s)", ident.toChars(), m.srcfile.toChars()); - message("import %s", buf.peekChars()); + message("import %s (from %s)", buf.peekChars(), loc.toChars()); } if((m = m.parse()) is null) return null;