File tree 10 files changed +20
-14
lines changed
10 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ script:
49
49
if [ -z ${INTEGRATION} ]; then
50
50
cargo build
51
51
cargo test
52
+ cargo test -- --ignored
52
53
else
53
54
./ci/integration.sh
54
55
fi
Original file line number Diff line number Diff line change @@ -50,3 +50,4 @@ build: false
50
50
test_script :
51
51
- cargo build --verbose
52
52
- cargo test
53
+ - cargo test -- --ignored
Original file line number Diff line number Diff line change 16
16
//! following values of `chain_indent`:
17
17
//! Block:
18
18
//!
19
- //! ```ignore
19
+ //! ```text
20
20
//! let foo = {
21
21
//! aaaa;
22
22
//! bbb;
27
27
//!
28
28
//! Visual:
29
29
//!
30
- //! ```ignore
30
+ //! ```text
31
31
//! let foo = {
32
32
//! aaaa;
33
33
//! bbb;
41
41
//! the braces.
42
42
//! Block:
43
43
//!
44
- //! ```ignore
44
+ //! ```text
45
45
//! let a = foo.bar
46
46
//! .baz()
47
47
//! .qux
48
48
//! ```
49
49
//!
50
50
//! Visual:
51
51
//!
52
- //! ```ignore
52
+ //! ```text
53
53
//! let a = foo.bar
54
54
//! .baz()
55
55
//! .qux
@@ -454,7 +454,7 @@ trait ChainFormatter {
454
454
// Parent is the first item in the chain, e.g., `foo` in `foo.bar.baz()`.
455
455
// Root is the parent plus any other chain items placed on the first line to
456
456
// avoid an orphan. E.g.,
457
- // ```ignore
457
+ // ```text
458
458
// foo.bar
459
459
// .baz()
460
460
// ```
@@ -516,7 +516,7 @@ impl<'a> ChainFormatterShared<'a> {
516
516
// know whether 'overflowing' the last child make a better formatting:
517
517
//
518
518
// A chain with overflowing the last child:
519
- // ```ignore
519
+ // ```text
520
520
// parent.child1.child2.last_child(
521
521
// a,
522
522
// b,
@@ -525,7 +525,7 @@ impl<'a> ChainFormatterShared<'a> {
525
525
// ```
526
526
//
527
527
// A chain without overflowing the last child (in vertical layout):
528
- // ```ignore
528
+ // ```text
529
529
// parent
530
530
// .child1
531
531
// .child2
@@ -534,7 +534,7 @@ impl<'a> ChainFormatterShared<'a> {
534
534
//
535
535
// In particular, overflowing is effective when the last child is a method with a multi-lined
536
536
// block-like argument (e.g., closure):
537
- // ```ignore
537
+ // ```text
538
538
// parent.child1.child2.last_child(|a, b, c| {
539
539
// let x = foo(a, b, c);
540
540
// let y = bar(a, b, c);
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ impl TemplateParser {
82
82
///
83
83
/// # Examples
84
84
///
85
- /// ```ignore
85
+ /// ```text
86
86
/// assert_eq!(
87
87
/// TemplateParser::parse(
88
88
/// r"
Original file line number Diff line number Diff line change @@ -1417,7 +1417,7 @@ impl MacroBranch {
1417
1417
///
1418
1418
/// # Expected syntax
1419
1419
///
1420
- /// ```ignore
1420
+ /// ```text
1421
1421
/// lazy_static! {
1422
1422
/// [pub] static ref NAME_1: TYPE_1 = EXPR_1;
1423
1423
/// [pub] static ref NAME_2: TYPE_2 = EXPR_2;
Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ pub(crate) fn remove_trailing_white_spaces(text: &str) -> String {
507
507
/// Indent each line according to the specified `indent`.
508
508
/// e.g.
509
509
///
510
- /// ```rust,ignore
510
+ /// ```rust,compile_fail
511
511
/// foo!{
512
512
/// x,
513
513
/// y,
@@ -521,7 +521,7 @@ pub(crate) fn remove_trailing_white_spaces(text: &str) -> String {
521
521
///
522
522
/// will become
523
523
///
524
- /// ```rust,ignore
524
+ /// ```rust,compile_fail
525
525
/// foo!{
526
526
/// x,
527
527
/// y,
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ macro_rules! assert_that {
46
46
} ;
47
47
}
48
48
49
+ #[ ignore]
49
50
#[ test]
50
51
fn version ( ) {
51
52
assert_that ! ( & [ "--version" ] , starts_with( "rustfmt " ) ) ;
@@ -54,6 +55,7 @@ fn version() {
54
55
assert_that ! ( & [ "--" , "--version" ] , starts_with( "rustfmt " ) ) ;
55
56
}
56
57
58
+ #[ ignore]
57
59
#[ test]
58
60
fn print_config ( ) {
59
61
assert_that ! (
@@ -62,6 +64,7 @@ fn print_config() {
62
64
) ;
63
65
}
64
66
67
+ #[ ignore]
65
68
#[ test]
66
69
fn rustfmt_help ( ) {
67
70
assert_that ! ( & [ "--" , "--help" ] , contains( "Format Rust code" ) ) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ macro_rules! assert_that {
48
48
} ;
49
49
}
50
50
51
+ #[ ignore]
51
52
#[ test]
52
53
fn print_config ( ) {
53
54
assert_that ! (
Original file line number Diff line number Diff line change 17
17
/// ```
18
18
///
19
19
/// Should not format with ignore attribute
20
- /// ```ignore
20
+ /// ```text
21
21
/// .--------------.
22
22
/// | v
23
23
/// Park <- Idle -> Poll -> Probe -> Download -> Install -> Reboot
Original file line number Diff line number Diff line change 18
18
/// ```
19
19
///
20
20
/// Should not format with ignore attribute
21
- /// ```ignore
21
+ /// ```text
22
22
/// .--------------.
23
23
/// | v
24
24
/// Park <- Idle -> Poll -> Probe -> Download -> Install -> Reboot
You can’t perform that action at this time.
0 commit comments