-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
A-marker-uitestArea: ui-test infrastructure (marker_uitests)Area: ui-test infrastructure (marker_uitests)C-bugCategory: Something isn't workingCategory: Something isn't workingD-rustc-driverDriver: Rustc DriverDriver: Rustc Driver
Milestone
Description
Summary
I'm not positive that this is a bug, but running Marker on a different crate instead of testing does work, so I think something is wrong with the testing.
Reproducer
Windows 10
git clone https://github.com/rust-marker/lint-crate-template.gitcd lint-crate-templatecargo uitest
Using the latest nightly toolchain and latest Marker dependencies (0.4.2) doesn't help.
Version
cargo-marker 0.4.2
Logs
Updating crates.io index
Compiling proc-macro2 v1.0.70
Compiling unicode-ident v1.0.12
Compiling serde v1.0.193
Compiling cfg-if v1.0.0
Compiling once_cell v1.18.0
Compiling lazy_static v1.4.0
Compiling windows_x86_64_msvc v0.48.5
Compiling windows_x86_64_msvc v0.42.2
Compiling winapi v0.3.9
Compiling unicode-width v0.1.11
Compiling sharded-slab v0.1.7
Compiling tracing-core v0.1.32
Compiling thread_local v1.1.7
Compiling pin-project-lite v0.2.13
Compiling serde_json v1.0.108
Compiling windows-targets v0.48.5
Compiling semver v1.0.20
Compiling cc v1.0.83
Compiling libc v0.2.150
Compiling windows-sys v0.48.0
Compiling quote v1.0.33
Compiling windows-targets v0.42.2
Compiling syn v2.0.39
Compiling tracing v0.1.40
Compiling tracing-subscriber v0.3.18
Compiling thiserror v1.0.50
Compiling portable-atomic v1.5.1
Compiling regex-syntax v0.8.2
Compiling ryu v1.0.15
Compiling eyre v0.6.9
Compiling crossbeam-utils v0.8.16
Compiling anyhow v1.0.75
Compiling itoa v1.0.9
Compiling camino v1.1.6
Compiling tracing-error v0.2.0
Compiling regex-automata v0.4.3
Compiling backtrace v0.3.69
Compiling windows-sys v0.45.0
Compiling rustc-demangle v0.1.23
Compiling encode_unicode v0.3.6
Compiling indenter v0.3.3
Compiling owo-colors v3.5.0
Compiling console v0.15.7
Compiling color-spantrace v0.2.1
Compiling serde_derive v1.0.193
Compiling thiserror-impl v1.0.50
Compiling ansi_term v0.12.1
Compiling yansi-term v0.1.2
Compiling is-terminal v0.4.9
Compiling pad v0.1.6
Compiling number_prefix v0.4.0
Compiling log v0.4.20
Compiling memchr v2.6.4
Compiling fastrand v2.0.1
Compiling indicatif v0.17.7
Compiling prettydiff v0.6.4
Compiling tempfile v3.8.1
Compiling colored v2.0.4
Compiling annotate-snippets v0.9.2
Compiling bstr v1.8.0
Compiling crossbeam-channel v0.5.8
Compiling regex v1.10.2
Compiling color-eyre v0.6.2
Compiling levenshtein v1.0.5
Compiling comma v1.0.0
Compiling marker_api v0.4.2
Compiling marker_utils v0.4.2
Compiling cargo-platform v0.1.5
Compiling rustc_version v0.4.0
Compiling cargo_metadata v0.15.4
Compiling rustfix v0.6.1
Compiling ui_test v0.21.2
Compiling marker_uitest v0.4.2
Compiling lint-crate-template v0.1.0 (C:\Users\aurel\source\repos\lint-crate-template)
Finished test [unoptimized + debuginfo] target(s) in 22.29s
Running tests\uitest.rs (target\debug\deps\uitest-ab45871b164387e1.exe)
marker_rustc_driver 0.4.2 (c753799 2023-11-25)
FAILED TEST: tests\ui\hello_marker.rs
command: "C:\\Users\\aurel\\.rustup\\toolchains\\nightly-2023-11-16-x86_64-pc-windows-msvc\\bin\\marker_rustc_driver.exe" "--error-format=json" "-Aunused" "--out-dir" "\\\\?\\C:\\Users\\aurel\\source\\repos\\lint-crate-template\\target\\ui_test\\tests\\ui" "tests\\ui\\hello_marker.rs" "--edition" "2021"
error: actual output differed from expected
Execute `cargo test -- -- --bless` to update `tests\ui\hello_marker.stderr` to the actual output
--- tests\ui\hello_marker.stderr
+++ <stderr output>
-warning: hello, main (From Marker)
+error[E0463]: can't find crate for `std`
~ --> $DIR/hello_marker.rs:5:1
|
-5 | / fn main() {
+6 | println!("Hello, World!");
~6 | | println!("Hello, World!");^^^^^^^
-warning: 1 warning emitted
+error: requires `sized` lang_item
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0463`.
full stderr:
error[E0463]: can't find crate for `std`
error: cannot find macro `println` in this scope
--> tests\ui\hello_marker.rs:6:5
|
6 | println!("Hello, World!");
| ^^^^^^^
error: requires `sized` lang_item
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0463`.
full stdout:
FAILURES:
tests\ui\hello_marker.rs
test result: FAIL. 1 failed;
Error: tests failed
Location:
C:\Users\aurel\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ui_test-0.21.2\src\lib.rs:388:13
error: test failed, to rerun pass `--test uitest`
Caused by:
process didn't exit successfully: `C:\Users\aurel\source\repos\lint-crate-template\target\debug\deps\uitest-ab45871b164387e1.exe` (exit code: 1)
Metadata
Metadata
Assignees
Labels
A-marker-uitestArea: ui-test infrastructure (marker_uitests)Area: ui-test infrastructure (marker_uitests)C-bugCategory: Something isn't workingCategory: Something isn't workingD-rustc-driverDriver: Rustc DriverDriver: Rustc Driver