Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test snapshots #49

Merged
merged 3 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.74.0
toolchain: 1.78.0
components: rust-src
- run: cargo test --release
- run: cargo install cargo-expand
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repository = "https://github.com/regexident/tryexpand"
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
rust-version = "1.74"
rust-version = "1.78"
version = "0.9.2"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/test_suite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl TestSuite {
.packages
.iter()
.find(|package| package.name == crate_name)
.ok_or_else(|| Error::CargoPackageNotFound)?;
.ok_or(Error::CargoPackageNotFound)?;

let target_dir = env::var("CARGO_TARGET_DIR")
.map(PathBuf::from)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ error: cannot find attribute `non_existent_macro` in this scope
|
1 | #[non_existent_macro]
| ^^^^^^^^^^^^^^^^^^
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ error: cannot find derive macro `NonExistentMacro` in this scope
|
1 | #[derive(NonExistentMacro)]
| ^^^^^^^^^^^^^^^^
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ error: cannot find macro `non_existent_macro` in this scope
|
2 | non_existent_macro!();
| ^^^^^^^^^^^^^^^^^^
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ error[E0277]: cannot add `&str` to `{integer}`
= note: this error originates in the macro `produce_invalid_code` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
running 1 test
F
failing_test --- FAILED

failures:

---- failing_test stdout ----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ error[E0425]: cannot find value `asdf` in this scope
| ^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
error: could not compile `<CRATE>` (bin "<BIN>" test) due to previous error
error: could not compile `<CRATE>` (bin "<BIN>" test) due to 1 previous error
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ error[E0277]: cannot add `&str` to `{integer}`
= note: this error originates in the macro `produce_invalid_code` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
1 change: 1 addition & 0 deletions tests/other-tests/tests/envs/fail/env_var.err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ error: env var required
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ error[E0432]: unresolved import `http`
5 | use http::Request;
| ^^^^ use of undeclared crate or module `http`
For more information about this error, try `rustc --explain E0432`.
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
1 change: 1 addition & 0 deletions tests/other-tests/tests/expand/fail/invalid_syntax.err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ error: expected one of `!` or `::`, found `ipsum`
|
1 | lorem ipsum dolor sit amet.
| ^^^^^ expected one of `!` or `::`
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
1 change: 1 addition & 0 deletions tests/other-tests/tests/expand/fail/unknown_fn.err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ error[E0425]: cannot find function `non_existent_fn` in this scope
2 | non_existent_fn();
| ^^^^^^^^^^^^^^^ not found in this scope
For more information about this error, try `rustc --explain E0425`.
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
1 change: 1 addition & 0 deletions tests/other-tests/tests/expand/fail/unknown_macro.err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ error: cannot find macro `non_existent_macro` in this scope
|
2 | non_existent_macro!();
| ^^^^^^^^^^^^^^^^^^
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ error[E0432]: unresolved import `non_existent_crate`
1 | use non_existent_crate;
| ^^^^^^^^^^^^^^^^^^ no external crate `non_existent_crate`
For more information about this error, try `rustc --explain E0432`.
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
3 changes: 2 additions & 1 deletion tests/other-tests/tests/run_tests/fail/failing_test.out.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
running 1 test
F
failing_test --- FAILED

failures:

---- failing_test stdout ----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ error[E0425]: cannot find value `asdf` in this scope
| ^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
error: could not compile `<CRATE>` (bin "<BIN>" test) due to previous error
error: could not compile `<CRATE>` (bin "<BIN>" test) due to 1 previous error
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ error: custom attribute panicked
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: test
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ error: proc-macro derive panicked
| ^^^^^^^^^^^^^^
|
= help: message: test
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ error: proc macro panicked
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: test
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error
Loading