rust/tests/fail/validity
bors 5e584d25ef Auto merge of #2252 - dtolnay-contrib:rustfmt5, r=oli-obk
Format tests with rustfmt (225-275 of 300)

Extracted from #2097.

These cases all involve a line comment at the end of a block that rustfmt has chosen to wrap.

```diff
- unsafe { (*ptr).set(20); } //~ ERROR does not exist in the borrow stack
+ unsafe {
+     (*ptr).set(20);
+ } //~ ERROR does not exist in the borrow stack
```

I have moved all of those comments back onto the same line as the content of the block instead, as was indicated being `@RalfJung's` preference in https://github.com/rust-lang/miri/pull/2097#discussion_r862436672.

```diff
+ unsafe {
+     (*ptr).set(20); //~ ERROR does not exist in the borrow stack
+ }
```
2022-06-22 09:04:44 +00:00
..
cast_fn_ptr1.rs Format tests with rustfmt (201-224 of 300) 2022-06-21 11:32:06 -07:00
cast_fn_ptr1.stderr
cast_fn_ptr2.rs Format tests with rustfmt (201-224 of 300) 2022-06-21 11:32:06 -07:00
cast_fn_ptr2.stderr
dangling_ref1.rs
dangling_ref1.stderr
dangling_ref2.rs
dangling_ref2.stderr
dangling_ref3.rs
dangling_ref3.stderr
invalid_bool_uninit.rs
invalid_bool_uninit.stderr
invalid_bool.rs
invalid_bool.stderr
invalid_char_uninit.rs
invalid_char_uninit.stderr
invalid_char.rs Manual adjustments 2022-06-21 23:21:12 -07:00
invalid_char.stderr
invalid_enum_tag_256variants_uninit.rs port some tests away from flags we want to remove 2022-06-06 11:44:36 -04:00
invalid_enum_tag_256variants_uninit.stderr deprecate -Zmiri-allow-uninit-numbers and -Zmiri-allow-ptr-int-transmute 2022-06-06 16:07:30 -04:00
invalid_enum_tag.rs Format tests with rustfmt (201-224 of 300) 2022-06-21 11:32:06 -07:00
invalid_enum_tag.stderr
invalid_fnptr_null.rs
invalid_fnptr_null.stderr
invalid_fnptr_uninit.rs
invalid_fnptr_uninit.stderr
invalid_wide_raw.rs Format tests with rustfmt (201-224 of 300) 2022-06-21 11:32:06 -07:00
invalid_wide_raw.stderr
nonzero.rs
nonzero.stderr
ptr_integer_array_transmute.rs
ptr_integer_array_transmute.stderr
ref_to_uninhabited1.rs Format tests with rustfmt (201-224 of 300) 2022-06-21 11:32:06 -07:00
ref_to_uninhabited1.stderr Bless stderr files after rustfmt 2022-06-21 11:32:15 -07:00
ref_to_uninhabited2.rs Format tests with rustfmt (201-224 of 300) 2022-06-21 11:32:06 -07:00
ref_to_uninhabited2.stderr Bless stderr files after rustfmt 2022-06-21 11:32:15 -07:00
too-big-slice.rs Format tests with rustfmt (201-224 of 300) 2022-06-21 11:32:06 -07:00
too-big-slice.stderr Bless stderr files after rustfmt 2022-06-21 11:32:15 -07:00
too-big-unsized.rs Format tests with rustfmt (201-224 of 300) 2022-06-21 11:32:06 -07:00
too-big-unsized.stderr Bless stderr files after rustfmt 2022-06-21 11:32:15 -07:00
transmute_through_ptr.rs Manual adjustments 2022-06-21 11:46:09 -07:00
transmute_through_ptr.stderr
uninit_float.rs
uninit_float.stderr
uninit_integer_signed.rs
uninit_integer_signed.stderr
uninit_integer.rs
uninit_integer.stderr