Skip to content

Commit a372987

Browse files
committed
---
yaml --- r: 5400 b: refs/heads/master c: 571ff0c h: refs/heads/master v: v3
1 parent b2e9862 commit a372987

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 390677ebccb9abd8bd7f2a139ee6010dedc23c57
2+
refs/heads/master: 571ff0c84ac6d61061581d4d53159f2326838a71

trunk/src/fuzzer/fuzzer.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ fn common_exprs() -> [ast::expr] {
5555
dse(ast::expr_put(option::none)),
5656
dse(ast::expr_lit(@dsl(ast::lit_nil))),
5757
dse(ast::expr_lit(@dsl(ast::lit_bool(false)))),
58-
dse(ast::expr_lit(@dsl(ast::lit_bool(true))))
58+
dse(ast::expr_lit(@dsl(ast::lit_bool(true)))),
59+
dse(ast::expr_unary(ast::box(ast::imm), @dse(ast::expr_lit(@dsl(ast::lit_bool(true))))))
5960
]
6061
}
6162

@@ -344,7 +345,7 @@ fn check_compiling(filename: str) -> happiness {
344345
known_bug("https://github.com/graydon/rust/issues/943")
345346
} else if contains(p.err, "(S->getType()->isPointerTy() && \"Invalid cast\")") {
346347
known_bug("https://github.com/graydon/rust/issues/895")
347-
} else if contains(p.out, "Ptr must be a pointer to Val type") {
348+
} else if contains(p.err, "Ptr must be a pointer to Val type") {
348349
known_bug("https://github.com/graydon/rust/issues/897")
349350
} else if contains(p.err, "(castIsValid(op, S, Ty) && \"Invalid cast!\"), function Create") {
350351
known_bug("https://github.com/graydon/rust/issues/901")
@@ -425,7 +426,6 @@ fn content_is_dangerous_to_run(code: str) -> bool {
425426
["import", // espeically fs, run
426427
"native",
427428
"unsafe",
428-
"with", // tstate hang: https://github.com/graydon/rust/issues/948
429429
"log"]; // python --> rust pipe deadlock?
430430

431431
for p: str in dangerous_patterns { if contains(code, p) { ret true; } }
@@ -437,6 +437,7 @@ fn content_is_dangerous_to_modify(code: str) -> bool {
437437
["#macro", // not safe to steal things inside of it, because they have a special syntax
438438
"#", // strange representation of the arguments to #fmt, for example
439439
"tag", // typeck hang: https://github.com/graydon/rust/issues/742 (from dup #900)
440+
"with", // tstate hang: https://github.com/graydon/rust/issues/948
440441
" be "]; // don't want to replace its child with a non-call: "Non-call expression in tail call"
441442

442443
for p: str in dangerous_patterns { if contains(code, p) { ret true; } }

0 commit comments

Comments
 (0)