Skip to content

Commit 8f0664f

Browse files
committed
test: normalize raw string indentation.
1 parent 0f1534c commit 8f0664f

File tree

7 files changed

+116
-116
lines changed

7 files changed

+116
-116
lines changed

tests/testsuite/bench.rs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,28 +1468,28 @@ fn bench_all_exclude_glob() {
14681468
.file(
14691469
"Cargo.toml",
14701470
r#"
1471-
[project]
1472-
name = "foo"
1473-
version = "0.1.0"
1471+
[project]
1472+
name = "foo"
1473+
version = "0.1.0"
14741474
1475-
[workspace]
1476-
members = ["bar", "baz"]
1477-
"#,
1475+
[workspace]
1476+
members = ["bar", "baz"]
1477+
"#,
14781478
)
14791479
.file("src/main.rs", "fn main() {}")
14801480
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
14811481
.file(
14821482
"bar/src/lib.rs",
14831483
r#"
1484-
#![feature(test)]
1485-
#[cfg(test)]
1486-
extern crate test;
1484+
#![feature(test)]
1485+
#[cfg(test)]
1486+
extern crate test;
14871487
1488-
#[bench]
1489-
pub fn bar(b: &mut test::Bencher) {
1490-
b.iter(|| {});
1491-
}
1492-
"#,
1488+
#[bench]
1489+
pub fn bar(b: &mut test::Bencher) {
1490+
b.iter(|| {});
1491+
}
1492+
"#,
14931493
)
14941494
.file("baz/Cargo.toml", &basic_manifest("baz", "0.1.0"))
14951495
.file(
@@ -1570,37 +1570,37 @@ fn bench_virtual_manifest_glob() {
15701570
.file(
15711571
"Cargo.toml",
15721572
r#"
1573-
[workspace]
1574-
members = ["bar", "baz"]
1575-
"#,
1573+
[workspace]
1574+
members = ["bar", "baz"]
1575+
"#,
15761576
)
15771577
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
15781578
.file("bar/src/lib.rs", "pub fn bar() { break_the_build(); }")
15791579
.file(
15801580
"bar/benches/bar.rs",
15811581
r#"
1582-
#![feature(test)]
1583-
extern crate test;
1582+
#![feature(test)]
1583+
extern crate test;
15841584
1585-
use test::Bencher;
1585+
use test::Bencher;
15861586
1587-
#[bench]
1588-
fn bench_bar(_: &mut Bencher) -> () { break_the_build(); }
1589-
"#,
1587+
#[bench]
1588+
fn bench_bar(_: &mut Bencher) -> () { break_the_build(); }
1589+
"#,
15901590
)
15911591
.file("baz/Cargo.toml", &basic_manifest("baz", "0.1.0"))
15921592
.file("baz/src/lib.rs", "pub fn baz() {}")
15931593
.file(
15941594
"baz/benches/baz.rs",
15951595
r#"
1596-
#![feature(test)]
1597-
extern crate test;
1596+
#![feature(test)]
1597+
extern crate test;
15981598
1599-
use test::Bencher;
1599+
use test::Bencher;
16001600
1601-
#[bench]
1602-
fn bench_baz(_: &mut Bencher) -> () { () }
1603-
"#,
1601+
#[bench]
1602+
fn bench_baz(_: &mut Bencher) -> () { () }
1603+
"#,
16041604
)
16051605
.build();
16061606

tests/testsuite/build.rs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3500,13 +3500,13 @@ fn build_all_exclude_not_found() {
35003500
.file(
35013501
"Cargo.toml",
35023502
r#"
3503-
[project]
3504-
name = "foo"
3505-
version = "0.1.0"
3503+
[project]
3504+
name = "foo"
3505+
version = "0.1.0"
35063506
3507-
[workspace]
3508-
members = ["bar"]
3509-
"#,
3507+
[workspace]
3508+
members = ["bar"]
3509+
"#,
35103510
)
35113511
.file("src/main.rs", "fn main() {}")
35123512
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
@@ -3534,13 +3534,13 @@ fn build_all_exclude_glob() {
35343534
.file(
35353535
"Cargo.toml",
35363536
r#"
3537-
[project]
3538-
name = "foo"
3539-
version = "0.1.0"
3537+
[project]
3538+
name = "foo"
3539+
version = "0.1.0"
35403540
3541-
[workspace]
3542-
members = ["bar", "baz"]
3543-
"#,
3541+
[workspace]
3542+
members = ["bar", "baz"]
3543+
"#,
35443544
)
35453545
.file("src/main.rs", "fn main() {}")
35463546
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
@@ -3569,13 +3569,13 @@ fn build_all_exclude_glob_not_found() {
35693569
.file(
35703570
"Cargo.toml",
35713571
r#"
3572-
[project]
3573-
name = "foo"
3574-
version = "0.1.0"
3572+
[project]
3573+
name = "foo"
3574+
version = "0.1.0"
35753575
3576-
[workspace]
3577-
members = ["bar"]
3578-
"#,
3576+
[workspace]
3577+
members = ["bar"]
3578+
"#,
35793579
)
35803580
.file("src/main.rs", "fn main() {}")
35813581
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
@@ -3740,9 +3740,9 @@ fn build_virtual_manifest_glob() {
37403740
.file(
37413741
"Cargo.toml",
37423742
r#"
3743-
[workspace]
3744-
members = ["bar", "baz"]
3745-
"#,
3743+
[workspace]
3744+
members = ["bar", "baz"]
3745+
"#,
37463746
)
37473747
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
37483748
.file("bar/src/lib.rs", "pub fn bar() { break_the_build(); }")
@@ -3767,9 +3767,9 @@ fn build_virtual_manifest_glob_not_found() {
37673767
.file(
37683768
"Cargo.toml",
37693769
r#"
3770-
[workspace]
3771-
members = ["bar"]
3772-
"#,
3770+
[workspace]
3771+
members = ["bar"]
3772+
"#,
37733773
)
37743774
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
37753775
.file("bar/src/lib.rs", "pub fn bar() {}")
@@ -3792,9 +3792,9 @@ fn build_virtual_manifest_broken_glob() {
37923792
.file(
37933793
"Cargo.toml",
37943794
r#"
3795-
[workspace]
3796-
members = ["bar"]
3797-
"#,
3795+
[workspace]
3796+
members = ["bar"]
3797+
"#,
37983798
)
37993799
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
38003800
.file("bar/src/lib.rs", "pub fn bar() {}")

tests/testsuite/check.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ fn check_all_exclude() {
420420
.file(
421421
"Cargo.toml",
422422
r#"
423-
[workspace]
424-
members = ["bar", "baz"]
425-
"#,
423+
[workspace]
424+
members = ["bar", "baz"]
425+
"#,
426426
)
427427
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
428428
.file("bar/src/lib.rs", "pub fn bar() {}")
@@ -447,9 +447,9 @@ fn check_all_exclude_glob() {
447447
.file(
448448
"Cargo.toml",
449449
r#"
450-
[workspace]
451-
members = ["bar", "baz"]
452-
"#,
450+
[workspace]
451+
members = ["bar", "baz"]
452+
"#,
453453
)
454454
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
455455
.file("bar/src/lib.rs", "pub fn bar() {}")
@@ -496,9 +496,9 @@ fn check_virtual_manifest_one_project() {
496496
.file(
497497
"Cargo.toml",
498498
r#"
499-
[workspace]
500-
members = ["bar", "baz"]
501-
"#,
499+
[workspace]
500+
members = ["bar", "baz"]
501+
"#,
502502
)
503503
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
504504
.file("bar/src/lib.rs", "pub fn bar() {}")
@@ -523,9 +523,9 @@ fn check_virtual_manifest_glob() {
523523
.file(
524524
"Cargo.toml",
525525
r#"
526-
[workspace]
527-
members = ["bar", "baz"]
528-
"#,
526+
[workspace]
527+
members = ["bar", "baz"]
528+
"#,
529529
)
530530
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
531531
.file("bar/src/lib.rs", "pub fn bar() { break_the_build(); }")

tests/testsuite/doc.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,9 @@ fn doc_all_exclude() {
546546
.file(
547547
"Cargo.toml",
548548
r#"
549-
[workspace]
550-
members = ["bar", "baz"]
551-
"#,
549+
[workspace]
550+
members = ["bar", "baz"]
551+
"#,
552552
)
553553
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
554554
.file("bar/src/lib.rs", "pub fn bar() {}")
@@ -573,9 +573,9 @@ fn doc_all_exclude_glob() {
573573
.file(
574574
"Cargo.toml",
575575
r#"
576-
[workspace]
577-
members = ["bar", "baz"]
578-
"#,
576+
[workspace]
577+
members = ["bar", "baz"]
578+
"#,
579579
)
580580
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
581581
.file("bar/src/lib.rs", "pub fn bar() {}")
@@ -1015,9 +1015,9 @@ fn doc_virtual_manifest_one_project() {
10151015
.file(
10161016
"Cargo.toml",
10171017
r#"
1018-
[workspace]
1019-
members = ["bar", "baz"]
1020-
"#,
1018+
[workspace]
1019+
members = ["bar", "baz"]
1020+
"#,
10211021
)
10221022
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
10231023
.file("bar/src/lib.rs", "pub fn bar() {}")
@@ -1042,9 +1042,9 @@ fn doc_virtual_manifest_glob() {
10421042
.file(
10431043
"Cargo.toml",
10441044
r#"
1045-
[workspace]
1046-
members = ["bar", "baz"]
1047-
"#,
1045+
[workspace]
1046+
members = ["bar", "baz"]
1047+
"#,
10481048
)
10491049
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
10501050
.file("bar/src/lib.rs", "pub fn bar() { break_the_build(); }")

tests/testsuite/rustc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ fn fail_with_glob() {
331331
.file(
332332
"Cargo.toml",
333333
r#"
334-
[workspace]
335-
members = ["bar"]
336-
"#,
334+
[workspace]
335+
members = ["bar"]
336+
"#,
337337
)
338338
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
339339
.file("bar/src/lib.rs", "pub fn bar() { break_the_build(); }")

tests/testsuite/rustdoc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ fn fail_with_glob() {
233233
.file(
234234
"Cargo.toml",
235235
r#"
236-
[workspace]
237-
members = ["bar"]
238-
"#,
236+
[workspace]
237+
members = ["bar"]
238+
"#,
239239
)
240240
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
241241
.file("bar/src/lib.rs", "pub fn bar() { break_the_build(); }")

0 commit comments

Comments
 (0)