Skip to content

Commit 12a88a6

Browse files
committed
Auto merge of #55236 - petrochenkov:pfail, r=davidtwco
Move parse-fail tests to UI cc #53353 r? @davidtwco
2 parents 0e2f912 + 21d67c4 commit 12a88a6

File tree

587 files changed

+3245
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

587 files changed

+3245
-133
lines changed

src/bootstrap/builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ impl<'a> Builder<'a> {
379379
test::Ui,
380380
test::RunPass,
381381
test::CompileFail,
382-
test::ParseFail,
383382
test::RunFail,
384383
test::RunPassValgrind,
385384
test::MirOpt,

src/bootstrap/test.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -773,12 +773,6 @@ default_test!(CompileFail {
773773
suite: "compile-fail"
774774
});
775775

776-
default_test!(ParseFail {
777-
path: "src/test/parse-fail",
778-
mode: "parse-fail",
779-
suite: "parse-fail"
780-
});
781-
782776
default_test!(RunFail {
783777
path: "src/test/run-fail",
784778
mode: "run-fail",

src/ci/docker/wasm32-unknown/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ ENV SCRIPT python2.7 /checkout/x.py test --target $TARGETS \
3636
src/test/ui \
3737
src/test/run-pass \
3838
src/test/compile-fail \
39-
src/test/parse-fail \
4039
src/test/mir-opt \
4140
src/test/codegen-units \
4241
src/libcore \

src/etc/generate-keyword-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"""
4545

4646
test_dir = os.path.abspath(
47-
os.path.join(os.path.dirname(__file__), '../test/parse-fail')
47+
os.path.join(os.path.dirname(__file__), '../test/ui/parser')
4848
)
4949

5050
for kw in sys.argv[1:]:

src/libsyntax/parse/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fn file_to_source_file(sess: &ParseSess, path: &Path, spanopt: Option<Span>)
230230
match sess.source_map().load_file(path) {
231231
Ok(source_file) => source_file,
232232
Err(e) => {
233-
let msg = format!("couldn't read {:?}: {}", path.display(), e);
233+
let msg = format!("couldn't read {}: {}", path.display(), e);
234234
match spanopt {
235235
Some(sp) => sess.span_diagnostic.span_fatal(sp, &msg).raise(),
236236
None => sess.span_diagnostic.fatal(&msg).raise()
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
error: this form of character escape may only be used with characters in the range [/x00-/x7f]
2+
--> $DIR/ascii-only-character-escape.rs:14:16
3+
|
4+
LL | let x = "/x80"; //~ ERROR may only be used
5+
| ^^
6+
7+
error: this form of character escape may only be used with characters in the range [/x00-/x7f]
8+
--> $DIR/ascii-only-character-escape.rs:15:16
9+
|
10+
LL | let y = "/xff"; //~ ERROR may only be used
11+
| ^^
12+
13+
error: this form of character escape may only be used with characters in the range [/x00-/x7f]
14+
--> $DIR/ascii-only-character-escape.rs:16:16
15+
|
16+
LL | let z = "/xe2"; //~ ERROR may only be used
17+
| ^^
18+
19+
error: aborting due to 3 previous errors
20+

0 commit comments

Comments
 (0)