Skip to content

Commit

Permalink
move hir-tree test from run-make to ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
high-cloud committed Apr 4, 2024
1 parent 6bb6b81 commit 94c7913
Show file tree
Hide file tree
Showing 6 changed files with 501 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ run-make/foreign-exceptions/Makefile
run-make/foreign-rust-exceptions/Makefile
run-make/fpic/Makefile
run-make/glibc-staticlib-args/Makefile
run-make/hir-tree/Makefile
run-make/inaccessible-temp-dir/Makefile
run-make/include_bytes_deps/Makefile
run-make/incr-add-rust-src-component/Makefile
Expand Down
8 changes: 0 additions & 8 deletions tests/run-make/hir-tree/Makefile

This file was deleted.

3 changes: 0 additions & 3 deletions tests/run-make/hir-tree/input.rs

This file was deleted.

8 changes: 8 additions & 0 deletions tests/ui/unpretty/hir-tree.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//@ build-pass
//@ compile-flags: -o - -Zunpretty=hir-tree
//@ check-stdout
//@ regex-error-pattern: Hello, Rustaceans!

fn main() {
println!("Hello, Rustaceans!");
}
4 changes: 4 additions & 0 deletions tests/ui/unpretty/hir-tree.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
warning: ignoring --out-dir flag due to -o flag

warning: 1 warning emitted

Loading

0 comments on commit 94c7913

Please sign in to comment.