File tree 4 files changed +1
-17
lines changed 4 files changed +1
-17
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
toolchain : ${{ matrix.rust }}
23
23
24
- # A nightly toolchain is required for cargo-expand to work, even if the
25
- # toolchain with which tests are run is not nightly.
26
- - run : rustup toolchain install nightly
27
- if : matrix.rust != 'nightly'
28
-
29
24
- uses : taiki-e/cache-cargo-install-action@v1
30
25
with :
31
26
tool : cargo-expand
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Please refer to the [documentation](https://docs.rs/macrotest).
19
19
20
20
## Example
21
21
22
- Install nightly rust and [ ` cargo expand ` ] .
22
+ Install [ ` cargo expand ` ] .
23
23
24
24
Add to your crate's Cargo.toml:
25
25
Original file line number Diff line number Diff line change 74
74
//! cargo install cargo-expand
75
75
//! ```
76
76
//!
77
- //! A **nightly** compiler is required for this tool to work, so it must be installed as well.
78
- //!
79
77
//! ## Setting up a test project
80
78
//!
81
79
//! In your crate that provides procedural or declarative macros, under the `tests` directory,
Original file line number Diff line number Diff line change @@ -59,15 +59,6 @@ pub(crate) fn message_expansion_error(msg: Vec<u8>) {
59
59
eprintln ! ( "\t cargo install cargo-expand" ) ;
60
60
eprintln ! ( ) ;
61
61
}
62
-
63
- // No nightly installed, make a suggestion
64
- if msg. starts_with ( "error: toolchain '" ) && msg. ends_with ( "is not installed" ) {
65
- eprintln ! ( "You have `cargo expand` installed but it requires *nightly* compiler to be installed as well." ) ;
66
- eprintln ! ( "To install it via rustup, run:" ) ;
67
- eprintln ! ( ) ;
68
- eprintln ! ( "\t rustup toolchain install nightly" ) ;
69
- eprintln ! ( ) ;
70
- }
71
62
} else {
72
63
eprintln ! ( "<unprintable>" ) ;
73
64
}
You can’t perform that action at this time.
0 commit comments