Fix test-tidy self test

Install rustup on first Travis job.
Only use rustfmt::skip as an outer attribute.
This commit is contained in:
Pyfisch 2018-11-06 22:26:18 +01:00
parent 9e92eb205a
commit 1855c88d61
4 changed files with 6 additions and 8 deletions

View file

@ -1,7 +1,6 @@
/* 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]
/**
```
@ -21,6 +20,7 @@ fn main() {
*/
pub fn imports_ok() {}
#[rustfmt::skip]
pub mod does_not_impl_malloc_size_of {
/**
```compile_fail,E0277
@ -63,6 +63,7 @@ pub mod does_not_impl_malloc_size_of {
pub fn rc() {}
}
#[rustfmt::skip]
pub mod does_not_impl_malloc_shallow_size_of {
/**
```compile_fail,E0277