mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Manually format remaining problems
Use line comments instead of block comments as block comments contain trailing whitespace after formatting with rustfmt. Skip tests for malloc_size_of and script_plugins with rustfmt as they have many block comments.
This commit is contained in:
parent
cb07debcb6
commit
095d446ccd
5 changed files with 51 additions and 52 deletions
|
@ -1,19 +1,20 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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/. */
|
||||
#![rustfmt::skip]
|
||||
|
||||
pub mod unrooted_must_root {
|
||||
/**
|
||||
```
|
||||
#![feature(plugin)]
|
||||
#![plugin(script_plugins)]
|
||||
|
||||
|
||||
#[must_root] struct Foo(i32);
|
||||
#[must_root] struct Bar(Foo);
|
||||
|
||||
|
||||
fn foo1(_: &Foo) {}
|
||||
fn foo2(_: &()) -> &Foo { unimplemented!() }
|
||||
|
||||
|
||||
fn main() {}
|
||||
```
|
||||
*/
|
||||
|
@ -23,10 +24,10 @@ pub mod unrooted_must_root {
|
|||
```compile_fail
|
||||
#![feature(plugin)]
|
||||
#![plugin(script_plugins)]
|
||||
|
||||
|
||||
#[must_root] struct Foo(i32);
|
||||
struct Bar(Foo);
|
||||
|
||||
|
||||
fn main() {}
|
||||
```
|
||||
*/
|
||||
|
@ -36,11 +37,11 @@ pub mod unrooted_must_root {
|
|||
```compile_fail
|
||||
#![feature(plugin)]
|
||||
#![plugin(script_plugins)]
|
||||
|
||||
|
||||
#[must_root] struct Foo(i32);
|
||||
|
||||
|
||||
fn foo1(_: Foo) {}
|
||||
|
||||
|
||||
fn main() {}
|
||||
```
|
||||
*/
|
||||
|
@ -50,11 +51,11 @@ pub mod unrooted_must_root {
|
|||
```compile_fail
|
||||
#![feature(plugin)]
|
||||
#![plugin(script_plugins)]
|
||||
|
||||
|
||||
#[must_root] struct Foo(i32);
|
||||
|
||||
|
||||
fn foo2() -> Foo { unimplemented!() }
|
||||
|
||||
|
||||
fn main() {}
|
||||
```
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue