fix(derive): keep missing-generation diagnostics author-facing

Replace OUT_DIR/path-shaped proc-macro errors with generated slhx file/module language while preserving the build.rs fix hint.

req: dx/005

req: component/004
This commit is contained in:
slhx agent
2026-06-02 03:54:08 +02:00
parent 998e15758a
commit 20d1159e39
2 changed files with 17 additions and 13 deletions
+8
View File
@@ -218,6 +218,10 @@ fn create() -> impl slhx::IntoEffect {
stderr.contains("add slhx_build::app().run()? to build.rs"),
"missing build.rs hint in stderr:\n{stderr}"
);
assert!(
!stderr.contains("OUT_DIR"),
"diagnostic should not teach Cargo internals:\n{stderr}"
);
}
#[test]
@@ -810,6 +814,10 @@ pub mod ui {}
stderr.contains("add slhx_build::app().run()? to build.rs"),
"missing build.rs hint in stderr:\n{stderr}"
);
assert!(
!stderr.contains("OUT_DIR"),
"diagnostic should not teach Cargo internals:\n{stderr}"
);
}
#[test]