mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Update OUT_DIR
diagnostic to match setting
This commit is contained in:
parent
8e900cb4a1
commit
053dac88ca
3 changed files with 3 additions and 3 deletions
|
@ -143,7 +143,7 @@ fn f() {
|
|||
//^^^^^^^^^^^^^ could not convert tokens
|
||||
|
||||
env!("OUT_DIR");
|
||||
//^^^^^^^^^^^^^^^ `OUT_DIR` not set, enable "load out dirs from check" to fix
|
||||
//^^^^^^^^^^^^^^^ `OUT_DIR` not set, enable "run build scripts" to fix
|
||||
|
||||
compile_error!("compile_error works");
|
||||
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ compile_error works
|
||||
|
|
|
@ -233,7 +233,7 @@ fn good_out_dir_diagnostic() {
|
|||
macro_rules! concat { () => {} }
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/out.rs"));
|
||||
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `OUT_DIR` not set, enable "load out dirs from check" to fix
|
||||
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `OUT_DIR` not set, enable "run build scripts" to fix
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
|
@ -490,7 +490,7 @@ fn env_expand(
|
|||
// unnecessary diagnostics for eg. `CARGO_PKG_NAME`.
|
||||
if key == "OUT_DIR" {
|
||||
err = Some(mbe::ExpandError::Other(
|
||||
r#"`OUT_DIR` not set, enable "load out dirs from check" to fix"#.into(),
|
||||
r#"`OUT_DIR` not set, enable "run build scripts" to fix"#.into(),
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue