Skip to content

Commit

Permalink
Add rustfmt::skip as a work around
Browse files Browse the repository at this point in the history
because comments are checked and removed by rustfmt for some reason
  • Loading branch information
giraffate committed Nov 16, 2020
1 parent 27a1572 commit c1b5f46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ui/cast_ref_to_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#![allow(clippy::no_effect)]

extern "C" {
#[rustfmt::skip]
// TODO: This `rustfmt::skip` is a work around of #6336 because
// the following comments are checked by rustfmt for some reason.
//
// N.B., mutability can be easily incorrect in FFI calls -- as
// in C, the default is mutable pointers.
fn ffi(c: *mut u8);
Expand Down

0 comments on commit c1b5f46

Please sign in to comment.