summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/shebang
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/shebang')
-rw-r--r--src/test/ui/parser/shebang/issue-71471-ignore-tidy.rs2
-rw-r--r--src/test/ui/parser/shebang/issue-71471-ignore-tidy.stderr8
-rw-r--r--src/test/ui/parser/shebang/multiline-attrib.rs7
-rw-r--r--src/test/ui/parser/shebang/regular-attrib.rs5
-rw-r--r--src/test/ui/parser/shebang/shebang-and-attrib.rs9
-rw-r--r--src/test/ui/parser/shebang/shebang-comment.rs6
-rw-r--r--src/test/ui/parser/shebang/shebang-doc-comment.rs3
-rw-r--r--src/test/ui/parser/shebang/shebang-doc-comment.stderr8
-rw-r--r--src/test/ui/parser/shebang/shebang-empty.rs4
-rw-r--r--src/test/ui/parser/shebang/shebang-must-start-file.rs6
-rw-r--r--src/test/ui/parser/shebang/shebang-must-start-file.stderr8
-rw-r--r--src/test/ui/parser/shebang/shebang-space.rs5
-rw-r--r--src/test/ui/parser/shebang/sneaky-attrib.rs16
-rw-r--r--src/test/ui/parser/shebang/valid-shebang.rs6
14 files changed, 0 insertions, 93 deletions
diff --git a/src/test/ui/parser/shebang/issue-71471-ignore-tidy.rs b/src/test/ui/parser/shebang/issue-71471-ignore-tidy.rs
deleted file mode 100644
index a25051808..000000000
--- a/src/test/ui/parser/shebang/issue-71471-ignore-tidy.rs
+++ /dev/null
@@ -1,2 +0,0 @@
-
-#!B //~ expected `[`, found `B`
diff --git a/src/test/ui/parser/shebang/issue-71471-ignore-tidy.stderr b/src/test/ui/parser/shebang/issue-71471-ignore-tidy.stderr
deleted file mode 100644
index 896a9dc83..000000000
--- a/src/test/ui/parser/shebang/issue-71471-ignore-tidy.stderr
+++ /dev/null
@@ -1,8 +0,0 @@
-error: expected `[`, found `B`
- --> $DIR/issue-71471-ignore-tidy.rs:2:3
- |
-LL | #!B
- | ^ expected `[`
-
-error: aborting due to previous error
-
diff --git a/src/test/ui/parser/shebang/multiline-attrib.rs b/src/test/ui/parser/shebang/multiline-attrib.rs
deleted file mode 100644
index 931c94c7f..000000000
--- a/src/test/ui/parser/shebang/multiline-attrib.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-#!
-[allow(unused_variables)]
-// check-pass
-
-fn main() {
- let x = 5;
-}
diff --git a/src/test/ui/parser/shebang/regular-attrib.rs b/src/test/ui/parser/shebang/regular-attrib.rs
deleted file mode 100644
index ca8fb0830..000000000
--- a/src/test/ui/parser/shebang/regular-attrib.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-#![allow(unused_variables)]
-// check-pass
-fn main() {
- let x = 5;
-}
diff --git a/src/test/ui/parser/shebang/shebang-and-attrib.rs b/src/test/ui/parser/shebang/shebang-and-attrib.rs
deleted file mode 100644
index 61b89c655..000000000
--- a/src/test/ui/parser/shebang/shebang-and-attrib.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env run-cargo-script
-
-// check-pass
-#![allow(unused_variables)]
-
-
-fn main() {
- let x = 5;
-}
diff --git a/src/test/ui/parser/shebang/shebang-comment.rs b/src/test/ui/parser/shebang/shebang-comment.rs
deleted file mode 100644
index 2b1ab0c57..000000000
--- a/src/test/ui/parser/shebang/shebang-comment.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-#!//bin/bash
-
-// check-pass
-fn main() {
- println!("a valid shebang (that is also a rust comment)")
-}
diff --git a/src/test/ui/parser/shebang/shebang-doc-comment.rs b/src/test/ui/parser/shebang/shebang-doc-comment.rs
deleted file mode 100644
index 72866753e..000000000
--- a/src/test/ui/parser/shebang/shebang-doc-comment.rs
+++ /dev/null
@@ -1,3 +0,0 @@
-#!///bin/bash
-[allow(unused_variables)]
-//~^ ERROR expected item, found `[`
diff --git a/src/test/ui/parser/shebang/shebang-doc-comment.stderr b/src/test/ui/parser/shebang/shebang-doc-comment.stderr
deleted file mode 100644
index 2227d45ec..000000000
--- a/src/test/ui/parser/shebang/shebang-doc-comment.stderr
+++ /dev/null
@@ -1,8 +0,0 @@
-error: expected item, found `[`
- --> $DIR/shebang-doc-comment.rs:2:1
- |
-LL | [allow(unused_variables)]
- | ^ expected item
-
-error: aborting due to previous error
-
diff --git a/src/test/ui/parser/shebang/shebang-empty.rs b/src/test/ui/parser/shebang/shebang-empty.rs
deleted file mode 100644
index e38cc637e..000000000
--- a/src/test/ui/parser/shebang/shebang-empty.rs
+++ /dev/null
@@ -1,4 +0,0 @@
-#!
-
-// check-pass
-fn main() {}
diff --git a/src/test/ui/parser/shebang/shebang-must-start-file.rs b/src/test/ui/parser/shebang/shebang-must-start-file.rs
deleted file mode 100644
index e0392572d..000000000
--- a/src/test/ui/parser/shebang/shebang-must-start-file.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-// something on the first line for tidy
-#!/bin/bash //~ expected `[`, found `/`
-
-fn main() {
- println!("ok!");
-}
diff --git a/src/test/ui/parser/shebang/shebang-must-start-file.stderr b/src/test/ui/parser/shebang/shebang-must-start-file.stderr
deleted file mode 100644
index 50543e8bd..000000000
--- a/src/test/ui/parser/shebang/shebang-must-start-file.stderr
+++ /dev/null
@@ -1,8 +0,0 @@
-error: expected `[`, found `/`
- --> $DIR/shebang-must-start-file.rs:2:3
- |
-LL | #!/bin/bash
- | ^ expected `[`
-
-error: aborting due to previous error
-
diff --git a/src/test/ui/parser/shebang/shebang-space.rs b/src/test/ui/parser/shebang/shebang-space.rs
deleted file mode 100644
index 0978b759d..000000000
--- a/src/test/ui/parser/shebang/shebang-space.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-#!
-
-// check-pass
-// ignore-tidy-end-whitespace
-fn main() {}
diff --git a/src/test/ui/parser/shebang/sneaky-attrib.rs b/src/test/ui/parser/shebang/sneaky-attrib.rs
deleted file mode 100644
index b406cc3aa..000000000
--- a/src/test/ui/parser/shebang/sneaky-attrib.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-#!//bin/bash
-
-
-// This could not possibly be a shebang & also a valid rust file, since a Rust file
-// can't start with `[`
-/*
- [ (mixing comments to also test that we ignore both types of comments)
-
- */
-
-[allow(unused_variables)]
-
-// check-pass
-fn main() {
- let x = 5;
-}
diff --git a/src/test/ui/parser/shebang/valid-shebang.rs b/src/test/ui/parser/shebang/valid-shebang.rs
deleted file mode 100644
index e480d3da3..000000000
--- a/src/test/ui/parser/shebang/valid-shebang.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env run-cargo-script
-
-// check-pass
-fn main() {
- println!("Hello World!");
-}