]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-test.rs
Auto merge of #8183 - alex-ozdemir:limit-ident, r=camsteffen
[rust.git] / tests / compile-test.rs
index c15835ef2995687327d9227c861b1decd8b3f85d..a2d58491872b30813e99e0bb2685478183c6dc74 100644 (file)
@@ -28,6 +28,7 @@
     "serde",
     "serde_derive",
     "syn",
+    "parking_lot",
 ];
 
 // Test dependencies may need an `extern crate` here to ensure that they show up
@@ -41,6 +42,8 @@
 #[allow(unused_extern_crates)]
 extern crate itertools;
 #[allow(unused_extern_crates)]
+extern crate parking_lot;
+#[allow(unused_extern_crates)]
 extern crate quote;
 #[allow(unused_extern_crates)]
 extern crate syn;
@@ -104,7 +107,10 @@ fn extern_flags() -> String {
 }
 
 fn default_config() -> compiletest::Config {
-    let mut config = compiletest::Config::default();
+    let mut config = compiletest::Config {
+        edition: Some("2021".into()),
+        ..compiletest::Config::default()
+    };
 
     if let Ok(filters) = env::var("TESTNAME") {
         config.filters = filters.split(',').map(std::string::ToString::to_string).collect();