From 4634bfb332897f8478ed885970e7cb21bb9c4fce Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Wed, 2 Dec 2020 17:03:18 +0100 Subject: Give better diagnostic if `OUT_DIR` is unset --- crates/hir_def/src/body/tests.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/hir_def/src') diff --git a/crates/hir_def/src/body/tests.rs b/crates/hir_def/src/body/tests.rs index f2b57aebe..c7003f2a6 100644 --- a/crates/hir_def/src/body/tests.rs +++ b/crates/hir_def/src/body/tests.rs @@ -100,6 +100,9 @@ fn f() { env!(invalid); //^^^^^^^^^^^^^ could not convert tokens + env!("OUT_DIR"); + //^^^^^^^^^^^^^^^ `OUT_DIR` not set, enable "load out dirs from check" to fix + // Lazy: format_args!(); -- cgit v1.2.3