mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Merge pull request #19189 from Veykril/push-qutznxznnwqn
minor: Improve unset `OUT_DIR` error message
This commit is contained in:
commit
88bc40aac0
@ -833,7 +833,7 @@ fn env_expand(
|
||||
if key.as_str() == "OUT_DIR" {
|
||||
err = Some(ExpandError::other(
|
||||
span,
|
||||
r#"`OUT_DIR` not set, enable "build scripts" to fix"#,
|
||||
r#"`OUT_DIR` not set, build scripts may have failed to run"#,
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -133,7 +133,7 @@ macro_rules! env { () => {} }
|
||||
macro_rules! concat { () => {} }
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/out.rs"));
|
||||
//^^^^^^^^^ error: `OUT_DIR` not set, enable "build scripts" to fix
|
||||
//^^^^^^^^^ error: `OUT_DIR` not set, build scripts may have failed to run
|
||||
"#,
|
||||
);
|
||||
}
|
||||
@ -186,7 +186,7 @@ fn main() {
|
||||
//^^^^^^^ error: expected string literal
|
||||
|
||||
env!("OUT_DIR");
|
||||
//^^^^^^^^^ error: `OUT_DIR` not set, enable "build scripts" to fix
|
||||
//^^^^^^^^^ error: `OUT_DIR` not set, build scripts may have failed to run
|
||||
|
||||
compile_error!("compile_error works");
|
||||
//^^^^^^^^^^^^^ error: compile_error works
|
||||
|
Loading…
x
Reference in New Issue
Block a user