diff --git a/README.md b/README.md index a342a0b..6d77d12 100644 --- a/README.md +++ b/README.md @@ -224,6 +224,16 @@ to catch. If the compiler changes something that makes error messages that we care about substantially worse, it is also important to catch and report as a compiler issue. +## CI + +Make sure `rust-src` component is installed on CI, otherwise error messages +on CI will not include snippets of code from the standard library. This will +make sure the output on CI is the same as on your local machine. + +```bash +rustup component add rust-src +``` +
#### License diff --git a/src/lib.rs b/src/lib.rs index 0a83cd6..4ef0f8e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -207,6 +207,16 @@ //! important for a test suite to catch. If the compiler changes something that //! makes error messages that we care about substantially worse, it is also //! important to catch and report as a compiler issue. +//! +//! # CI +//! +//! Make sure `rust-src` component is installed on CI, otherwise error messages +//! on CI will not include snippets of code from the standard library. This will +//! make sure the output on CI is the same as on your local machine. +//! +//! ```bash +//! rustup component add rust-src +//! ``` #![doc(html_root_url = "https://docs.rs/trybuild/1.0.99")] #![allow(