Allow merge commits when 'in-rust-tree' feature is enabled

This adds an `in-rust-tree` feature that will be enabled when
rust-analyzer is built from `rust-lang/rust`. Due to the way
"git subtree" works, that test _will_ find merge commits and
fail, so we simply skip it.
This commit is contained in:
Amos Wenger 2022-07-20 15:49:40 +02:00
parent 28bab681e9
commit c520408731
2 changed files with 2 additions and 0 deletions

View file

@ -84,3 +84,4 @@ mbe = { path = "../mbe" }
[features]
jemalloc = ["jemallocator", "profile/jemalloc"]
force-always-assert = ["always-assert/force"]
in-rust-tree = []

View file

@ -142,6 +142,7 @@ fn check_cargo_toml(path: &Path, text: String) {
}
}
#[cfg(not(feature = "in-rust-tree"))]
#[test]
fn check_merge_commits() {
let sh = &Shell::new().unwrap();