You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lint on FileCheck directives with missing colon #130981
In current compiletest -> FileCheck setup (e.g. codegen/assembly tests), if you forgor a colon : in one of the FileCheck directives, it gets silently ignored by both compilest and FileCheck, meaning that you aren't testing anything.
// tests/assembly/selftest.rs//@ assembly-output: emit-asm#![crate_type = "lib"]// CHECK-LABEL: foo://-- CHECK-LABEL: bar: # <- make sure this test is actually testing// CHECK-NOT ret # <- notice the missing `:`?#[no_mangle]pubfnfoo(x:u8){}
This test currently will just silently pass, even though we wanted to check ret doesn't exist (made-up example for illustration purposes). Realized while reviewing #128018.
Activity