Closed
Description
There are some run-pass
tests that seemingly check whether a specific warning or error is emitted. As far as I can tell though, the compiletest
tool just ignores the given directives in a run-pass
test case, i.e. changing the given directives to something unexpected still lets the tests pass.
Some affected test cases (in no particular order):
attr-before-view-item.rs
attr-before-view-item2.rs
deprecated-macro_escape-inner.rs
deprecated-macro_escape.rs
deriving-meta-empty-trait-list.rs
liveness-assign-imm-local-after-ret.rs
unreachable-code-1.rs
auxiliary/const_fn_lib.rs
auxiliary/issue_3136_a.rs
enum-size-variance.rs
issue-25757.rs
pred-not-bool.rs
issue-19100.rs
issue-2611-3.rs
cc @rust-lang/compiler @rust-lang/tools