about summary refs log tree commit diff
path: root/tests/coverage/generics.coverage
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-01-16 14:12:10 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-01-16 16:14:27 +1100
commit1f9353ae2ca81b0a508e38751b0d3ab213526f56 (patch)
treeec37b754ef9c1c2aa6d57d5bb1f1d3042485b70a /tests/coverage/generics.coverage
parentf1494425bbb68e71f2bf3aa215fb71978b36acf2 (diff)
downloadrust-1f9353ae2ca81b0a508e38751b0d3ab213526f56.tar.gz
rust-1f9353ae2ca81b0a508e38751b0d3ab213526f56.zip
coverage: Tweak individual tests to be unaffected by `rustfmt`
Some of these tests use non-standard formatting that we can simulate by
strategically adding `//` line comments.

One contains `where` clauses that would be split across multiple lines, which
we can keep on one line by moving the bounds to the generic type instead.
Diffstat (limited to 'tests/coverage/generics.coverage')
-rw-r--r--tests/coverage/generics.coverage6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/coverage/generics.coverage b/tests/coverage/generics.coverage
index 09839183566..c68c0be80b1 100644
--- a/tests/coverage/generics.coverage
+++ b/tests/coverage/generics.coverage
@@ -1,11 +1,11 @@
    LL|       |#![allow(unused_assignments)]
    LL|       |// failure-status: 1
    LL|       |
-   LL|       |struct Firework<T> where T: Copy + std::fmt::Display {
+   LL|       |struct Firework<T: Copy + std::fmt::Display> {
    LL|       |    strength: T,
    LL|       |}
    LL|       |
-   LL|       |impl<T> Firework<T> where T: Copy + std::fmt::Display {
+   LL|       |impl<T: Copy + std::fmt::Display> Firework<T> {
    LL|       |    #[inline(always)]
    LL|      3|    fn set_strength(&mut self, new_strength: T) {
    LL|      3|        self.strength = new_strength;
@@ -23,7 +23,7 @@
   ------------------
    LL|       |}
    LL|       |
-   LL|       |impl<T> Drop for Firework<T> where T: Copy + std::fmt::Display {
+   LL|       |impl<T: Copy + std::fmt::Display> Drop for Firework<T> {
    LL|       |    #[inline(always)]
    LL|      2|    fn drop(&mut self) {
    LL|      2|        println!("BOOM times {}!!!", self.strength);