We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6896f8 + cd6df69 commit 098a8e7Copy full SHA for 098a8e7
crates/sourcegen/src/lib.rs
@@ -191,5 +191,7 @@ fn normalize_newlines(s: &str) -> String {
191
192
pub fn project_root() -> PathBuf {
193
let dir = env!("CARGO_MANIFEST_DIR");
194
- PathBuf::from(dir).parent().unwrap().parent().unwrap().to_owned()
+ let res = PathBuf::from(dir).parent().unwrap().parent().unwrap().to_owned();
195
+ assert!(res.join("bors.toml").exists());
196
+ res
197
}
0 commit comments