Skip to content

Commit 5c34781

Browse files
committed
Disable the JSON doctests because they don't pass the new coherence
rules and cannot be updated until the libraries are synced, nor can they opt in to the old semantics.
1 parent c61a009 commit 5c34781

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/libserialize/json.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
//! Create a struct called `TestStruct` and serialize and deserialize it to and from JSON using the
7777
//! serialization API, using the derived serialization code.
7878
//!
79-
//! ```rust
79+
//! ```notrust
80+
//! // FIXME(#19470): this cannot be ```rust``` because it fails orphan checking at the moment
8081
//! extern crate serialize;
8182
//! use serialize::json;
8283
//!
@@ -110,7 +111,8 @@
110111
//!
111112
//! ### Simple example of `ToJson` usage
112113
//!
113-
//! ```rust
114+
//! ```notrust
115+
//! // FIXME(#19470): this cannot be ```rust``` because it fails orphan checking at the moment
114116
//! extern crate serialize;
115117
//! use serialize::json::{mod, ToJson, Json};
116118
//!
@@ -149,7 +151,8 @@
149151
//!
150152
//! ### Verbose example of `ToJson` usage
151153
//!
152-
//! ```rust
154+
//! ```notrust
155+
//! // FIXME(#19470): this cannot be ```rust``` because it fails orphan checking at the moment
153156
//! extern crate serialize;
154157
//! use std::collections::BTreeMap;
155158
//! use serialize::json::{mod, Json, ToJson};

0 commit comments

Comments
 (0)