diff options
author | Jonas Schievink <[email protected]> | 2020-12-02 16:03:18 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-12-03 14:48:29 +0000 |
commit | 4634bfb332897f8478ed885970e7cb21bb9c4fce (patch) | |
tree | eb70d41c024032d1ddcd134fa748b2471bcbc5fa /crates/hir_def/src | |
parent | 17542d08b4316afd899dabc6c7fc4c66f257dacb (diff) |
Give better diagnostic if `OUT_DIR` is unset
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/body/tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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() { | |||
100 | env!(invalid); | 100 | env!(invalid); |
101 | //^^^^^^^^^^^^^ could not convert tokens | 101 | //^^^^^^^^^^^^^ could not convert tokens |
102 | 102 | ||
103 | env!("OUT_DIR"); | ||
104 | //^^^^^^^^^^^^^^^ `OUT_DIR` not set, enable "load out dirs from check" to fix | ||
105 | |||
103 | // Lazy: | 106 | // Lazy: |
104 | 107 | ||
105 | format_args!(); | 108 | format_args!(); |