Update shebang reference names

This updates the rule names for shebang which were changed in
https://github.com/rust-lang/reference/pull/2192 and
https://github.com/rust-lang/reference/pull/2199.
This commit is contained in:
Eric Huss
2026-03-23 14:28:42 -07:00
parent 6772c82eb3
commit ae3d87c2a8
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#!
[allow(unused_variables)]
//@ check-pass
//@ reference: input.shebang.inner-attribute
//@ reference: shebang.syntax-description
fn main() {
let x = 5;
+1 -1
View File
@@ -1,6 +1,6 @@
#![allow(unused_variables)]
//@ check-pass
//@ reference: input.shebang.inner-attribute
//@ reference: shebang.syntax-description
fn main() {
let x = 5;
}
@@ -1,7 +1,7 @@
#!/usr/bin/env run-cargo-script
//@ check-pass
//@ reference: input.shebang.inner-attribute
//@ reference: shebang.syntax-description
#![allow(unused_variables)]
@@ -2,4 +2,4 @@
[allow(unused_variables)]
//~^ ERROR expected item, found `[`
//@ reference: input.shebang.inner-attribute
//@ reference: shebang.syntax-description
+1 -1
View File
@@ -11,7 +11,7 @@
[allow(unused_variables)]
//@ check-pass
//@ reference: input.shebang.inner-attribute
//@ reference: shebang.syntax-description
fn main() {
let x = 5;
}