Skip to content

Commit

Permalink
Drop trybuild
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Oct 31, 2022
1 parent f25c391 commit 9e92c90
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 56 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ semver = "1.0"

[dev-dependencies]
tempfile = "3.3"
trybuild = "1.0"

[workspace]
members = ["gdal-sys"]
Expand Down
19 changes: 0 additions & 19 deletions src/vector/vector_tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -801,25 +801,6 @@ mod tests {
});
}

#[test]
fn test_features_aliasing_compile_fail() {
let t = trybuild::TestCases::new(); // A compilation test that should fail.
t.compile_fail("tests/compile-tests/01-features-aliasing-errors.rs");
}

// It tries to iterate over a layer's features, while
// also trying to read the layer's definition. The
// features iterator borrows layer as a mutable ref as
// it increments the internal state of the layer.
//
// fn test_features_mut_lifetime_enforce() {
// with_layer("roads.geojson", |mut layer| {
// for _ in layer.features() {
// let _ = layer.defn();
// }
// });
// }

#[test]
fn test_set_attribute_filter() {
with_layer("roads.geojson", |mut layer| {
Expand Down
12 changes: 0 additions & 12 deletions tests/compile-tests/01-features-aliasing-errors.rs

This file was deleted.

10 changes: 0 additions & 10 deletions tests/compile-tests/01-features-aliasing-errors.stderr

This file was deleted.

14 changes: 0 additions & 14 deletions tests/compile-tests/utils.rs

This file was deleted.

0 comments on commit 9e92c90

Please sign in to comment.