mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Replace compiletest suite by doc-tests with compile_fail
compiletest-rs use internal rustc APIs and is broken in today’s Nightly. rustdoc however is maintained with rustc and so much less fragile.
This commit is contained in:
parent
d96f0ff6a7
commit
b1ce298d4b
18 changed files with 266 additions and 239 deletions
|
@ -2,11 +2,11 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
extern crate euclid;
|
||||
extern crate msg;
|
||||
extern crate script;
|
||||
extern crate servo_url;
|
||||
extern crate style;
|
||||
#[cfg(test)] extern crate euclid;
|
||||
#[cfg(test)] extern crate msg;
|
||||
#[cfg(test)] extern crate script;
|
||||
#[cfg(test)] extern crate servo_url;
|
||||
#[cfg(test)] extern crate style;
|
||||
|
||||
#[cfg(test)] mod origin;
|
||||
#[cfg(all(test, target_pointer_width = "64"))] mod size_of;
|
||||
|
@ -15,3 +15,15 @@ extern crate style;
|
|||
#[cfg(test)] mod htmlareaelement;
|
||||
#[cfg(test)] mod htmlimageelement;
|
||||
|
||||
/**
|
||||
```compile_fail,E0277
|
||||
extern crate script;
|
||||
|
||||
fn cloneable<T: Clone>() {}
|
||||
|
||||
fn main() {
|
||||
cloneable::<script::test::TrustedPromise>();
|
||||
}
|
||||
```
|
||||
*/
|
||||
pub fn trustedpromise_does_not_impl_clone() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue