about summary refs log tree commit diff
path: root/compiler/rustc_ast/src
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-06-04 16:36:40 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2022-06-03 16:46:20 +0000
commit15e0d8bdb1f81be314114e78e4ff507a97e8ce33 (patch)
tree6e16bf971c20ece9d39bff8a973879af7e01d4b7 /compiler/rustc_ast/src
parenta2591639ec714a4c415ae432353ae3413ac18b67 (diff)
downloadrust-15e0d8bdb1f81be314114e78e4ff507a97e8ce33.tar.gz
rust-15e0d8bdb1f81be314114e78e4ff507a97e8ce33.zip
Remove support for -Zast-json and -Zast-json-noexpand
Diffstat (limited to 'compiler/rustc_ast/src')
-rw-r--r--compiler/rustc_ast/src/ast.rs3
-rw-r--r--compiler/rustc_ast/src/ast/tests.rs11
2 files changed, 0 insertions, 14 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index b81f7a24270..09a3e53c7f0 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -41,9 +41,6 @@ use std::convert::TryFrom;
 use std::fmt;
 use std::mem;
 
-#[cfg(test)]
-mod tests;
-
 /// A "Label" is an identifier of some point in sources,
 /// e.g. in the following code:
 ///
diff --git a/compiler/rustc_ast/src/ast/tests.rs b/compiler/rustc_ast/src/ast/tests.rs
deleted file mode 100644
index 8ba55bf037b..00000000000
--- a/compiler/rustc_ast/src/ast/tests.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-use super::*;
-
-// Are ASTs encodable?
-#[test]
-fn check_asts_encodable() {
-    fn assert_encodable<
-        T: for<'a> rustc_serialize::Encodable<rustc_serialize::json::Encoder<'a>>,
-    >() {
-    }
-    assert_encodable::<Crate>();
-}