Skip to content

Commit 88bc40a

Browse files
authored
Merge pull request #19189 from Veykril/push-qutznxznnwqn
minor: Improve unset `OUT_DIR` error message
2 parents 8de928d + 6b32c83 commit 88bc40a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/hir-expand/src/builtin/fn_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ fn env_expand(
833833
if key.as_str() == "OUT_DIR" {
834834
err = Some(ExpandError::other(
835835
span,
836-
r#"`OUT_DIR` not set, enable "build scripts" to fix"#,
836+
r#"`OUT_DIR` not set, build scripts may have failed to run"#,
837837
));
838838
}
839839

crates/ide-diagnostics/src/handlers/macro_error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ macro_rules! env { () => {} }
133133
macro_rules! concat { () => {} }
134134
135135
include!(concat!(env!("OUT_DIR"), "/out.rs"));
136-
//^^^^^^^^^ error: `OUT_DIR` not set, enable "build scripts" to fix
136+
//^^^^^^^^^ error: `OUT_DIR` not set, build scripts may have failed to run
137137
"#,
138138
);
139139
}
@@ -186,7 +186,7 @@ fn main() {
186186
//^^^^^^^ error: expected string literal
187187
188188
env!("OUT_DIR");
189-
//^^^^^^^^^ error: `OUT_DIR` not set, enable "build scripts" to fix
189+
//^^^^^^^^^ error: `OUT_DIR` not set, build scripts may have failed to run
190190
191191
compile_error!("compile_error works");
192192
//^^^^^^^^^^^^^ error: compile_error works

0 commit comments

Comments
 (0)