Skip to content

Commit c520408

Browse files
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.
1 parent 28bab68 commit c520408

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/rust-analyzer/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ mbe = { path = "../mbe" }
8484
[features]
8585
jemalloc = ["jemallocator", "profile/jemalloc"]
8686
force-always-assert = ["always-assert/force"]
87+
in-rust-tree = []

crates/rust-analyzer/tests/slow-tests/tidy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ fn check_cargo_toml(path: &Path, text: String) {
142142
}
143143
}
144144

145+
#[cfg(not(feature = "in-rust-tree"))]
145146
#[test]
146147
fn check_merge_commits() {
147148
let sh = &Shell::new().unwrap();

0 commit comments

Comments
 (0)