Make use of raw strings in core::fmt::builders · patricklam/verify-rust-std@b405024 (original) (raw)

`@@ -78,7 +78,7 @@ impl fmt::Write for PadAdapter<'_, '_> {

`

78

78

`///

`

79

79

`/// assert_eq!(

`

80

80

`/// format!("{:?}", Foo { bar: 10, baz: "Hello World".to_string() }),

`

81

``

`-

/// "Foo { bar: 10, baz: "Hello World" }",

`

``

81

`+

/// r#"Foo { bar: 10, baz: "Hello World" }"#,

`

82

82

`/// );

`

83

83

```` /// ```


`84`

`84`

`` #[must_use = "must eventually call `finish()` on Debug builders"]

``

`@@ -125,7 +125,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {

`

`125`

`125`

`///

`

`126`

`126`

`/// assert_eq!(

`

`127`

`127`

`/// format!("{:?}", Bar { bar: 10, another: "Hello World".to_string() }),

`

`128`

``

`-

/// "Bar { bar: 10, another: \"Hello World\", nonexistent_field: 1 }",

`

``

`128`

`+

/// r#"Bar { bar: 10, another: "Hello World", nonexistent_field: 1 }"#,

`

`129`

`129`

`/// );

`

`130`

`130`

```` /// ```

131

131

`#[stable(feature = "debug_builders", since = "1.2.0")]

`

`@@ -237,7 +237,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {

`

237

237

`///

`

238

238

`/// assert_eq!(

`

239

239

`/// format!("{:?}", Bar { bar: 10, baz: "Hello World".to_string() }),

`

240

``

`-

/// "Bar { bar: 10, baz: "Hello World" }",

`

``

240

`+

/// r#"Bar { bar: 10, baz: "Hello World" }"#,

`

241

241

`/// );

`

242

242

```` /// ```


`243`

`243`

`#[stable(feature = "debug_builders", since = "1.2.0")]

`

`@@ -280,7 +280,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {

`

`280`

`280`

`///

`

`281`

`281`

`/// assert_eq!(

`

`282`

`282`

`/// format!("{:?}", Foo(10, "Hello World".to_string())),

`

`283`

``

`-

/// "Foo(10, \"Hello World\")",

`

``

`283`

`+

/// r#"Foo(10, "Hello World")"#,

`

`284`

`284`

`/// );

`

`285`

`285`

```` /// ```

286

286

`` #[must_use = "must eventually call finish() on Debug builders"]

``

`@@ -322,7 +322,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {

`

322

322

`///

`

323

323

`/// assert_eq!(

`

324

324

`/// format!("{:?}", Foo(10, "Hello World".to_string())),

`

325

``

`-

/// "Foo(10, "Hello World")",

`

``

325

`+

/// r#"Foo(10, "Hello World")"#,

`

326

326

`/// );

`

327

327

```` /// ```


`328`

`328`

`#[stable(feature = "debug_builders", since = "1.2.0")]

`

`@@ -381,7 +381,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {

`

`381`

`381`

`///

`

`382`

`382`

`/// assert_eq!(

`

`383`

`383`

`/// format!("{:?}", Foo(10, "Hello World".to_string())),

`

`384`

``

`-

/// "Foo(10, \"Hello World\")",

`

``

`384`

`+

/// r#"Foo(10, "Hello World")"#,

`

`385`

`385`

`/// );

`

`386`

`386`

```` /// ```

387

387

`#[stable(feature = "debug_builders", since = "1.2.0")]

`

`@@ -747,7 +747,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {

`

747

747

`///

`

748

748

`/// assert_eq!(

`

749

749

`/// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),

`

750

``

`-

/// "{"A": 10, "B": 11}",

`

``

750

`+

/// r#"{"A": 10, "B": 11}"#,

`

751

751

`/// );

`

752

752

```` /// ```


`753`

`753`

`` #[must_use = "must eventually call `finish()` on Debug builders"]

``

`@@ -787,7 +787,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {

`

`787`

`787`

`///

`

`788`

`788`

`/// assert_eq!(

`

`789`

`789`

`/// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),

`

`790`

``

`-

/// "{\"whole\": [(\"A\", 10), (\"B\", 11)]}",

`

``

`790`

`+

/// r#"{"whole": [("A", 10), ("B", 11)]}"#,

`

`791`

`791`

`/// );

`

`792`

`792`

```` /// ```

793

793

`#[stable(feature = "debug_builders", since = "1.2.0")]

`

`@@ -823,7 +823,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {

`

823

823

`///

`

824

824

`/// assert_eq!(

`

825

825

`/// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),

`

826

``

`-

/// "{"whole": [("A", 10), ("B", 11)]}",

`

``

826

`+

/// r#"{"whole": [("A", 10), ("B", 11)]}"#,

`

827

827

`/// );

`

828

828

```` /// ```


`829`

`829`

`#[stable(feature = "debug_map_key_value", since = "1.42.0")]

`

`@@ -899,7 +899,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {

`

`899`

`899`

`///

`

`900`

`900`

`/// assert_eq!(

`

`901`

`901`

`/// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),

`

`902`

``

`-

/// "{\"whole\": [(\"A\", 10), (\"B\", 11)]}",

`

``

`902`

`+

/// r#"{"whole": [("A", 10), ("B", 11)]}"#,

`

`903`

`903`

`/// );

`

`904`

`904`

```` /// ```

905

905

`#[stable(feature = "debug_map_key_value", since = "1.42.0")]

`

`@@ -957,7 +957,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {

`

957

957

`///

`

958

958

`/// assert_eq!(

`

959

959

`/// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),

`

960

``

`-

/// "{"A": 10, "B": 11}",

`

``

960

`+

/// r#"{"A": 10, "B": 11}"#,

`

961

961

`/// );

`

962

962

```` /// ```


`963`

`963`

`#[stable(feature = "debug_builders", since = "1.2.0")]

`

`@@ -997,7 +997,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {

`

`997`

`997`

`///

`

`998`

`998`

`/// assert_eq!(

`

`999`

`999`

`/// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),

`

`1000`

``

`-

/// "{\"A\": 10, \"B\": 11}",

`

``

`1000`

`+

/// r#"{"A": 10, "B": 11}"#,

`

`1001`

`1001`

`/// );

`

`1002`

`1002`

```` /// ```

1003

1003

`#[stable(feature = "debug_builders", since = "1.2.0")]

`