rust/src/tools
Russell Cohen a93d31603f Fix bug in shebang handling
Shebang handling was too agressive in stripping out the first line in cases where it is actually _not_ a shebang, but instead, valid rust (#70528). This is a second attempt at resolving this issue (the first attempt was flawed, for, among other reasons, causing an ICE in certain cases (#71372, #71471).

The behavior is now codified by a number of UI tests, but simply:
For the first line to be a shebang, the following must all be true:
1. The line must start with `#!`
2. The line must contain a non whitespace character after `#!`
3. The next character in the file, ignoring comments & whitespace must not be `[`

I believe this is a strict superset of what we used to allow, so perhaps a crater run is unnecessary, but probably not a terrible idea.
2020-05-25 10:11:08 -04:00
..
build-manifest remove lldb package from bootstrap, config and build-manifest 2020-05-10 22:43:58 +02:00
cargo@500b2bd01c Update cargo 2020-05-18 15:41:57 -07:00
cargotest cargotest: remove webrender 2020-03-31 19:28:06 +02:00
clippy Use OnceCell instead of Once 2020-05-22 13:31:02 -07:00
compiletest Fail if I/O error occurs during testing 2020-05-10 16:53:48 -04:00
error_index_generator Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
expand-yaml-anchors ci: add github actions configuration 2020-03-24 15:36:07 +01:00
linkchecker linkchecker: fix typo in main.rs 2020-04-26 17:09:15 +05:30
miri@a6c28f0845 bump Miri 2020-05-24 15:11:00 +02:00
remote-test-client Add remote-test-client help text 2020-05-18 12:33:18 +01:00
remote-test-server Format the world 2019-12-22 17:42:47 -05:00
rls@1cb7c09eb2 Update RLS 2020-05-05 14:16:26 +02:00
rust-installer@9f66c14c3f Update rust-installer to limit memory use 2019-08-28 14:48:02 -07:00
rustbook rustbook: Bump mdbook dependency 2020-05-11 14:43:41 +02:00
rustc-std-workspace-alloc Update version of rustc-std-workspace-* crates 2019-09-09 13:02:10 -07:00
rustc-std-workspace-core Update version of rustc-std-workspace-* crates 2019-09-09 13:02:10 -07:00
rustc-std-workspace-std Update version of rustc-std-workspace-* crates 2019-09-09 13:02:10 -07:00
rustc-workspace-hack Unify winapi features for tools 2020-05-05 12:50:58 -07:00
rustdoc Format the world 2019-12-22 17:42:47 -05:00
rustdoc-js Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-themes Format the world 2019-12-22 17:42:47 -05:00
rustfmt@a5cb5d2683 Bump rustfmt and rls 2020-04-15 11:09:29 +09:00
tidy Fix bug in shebang handling 2020-05-25 10:11:08 -04:00
unicode-table-generator Store UNICODE_VERSION as a tuple 2020-04-11 12:56:25 +02:00
unstable-book-gen Format the world 2019-12-22 17:42:47 -05:00
publish_toolstate.py Allow rust-highfive to label issues it creates. 2020-05-22 17:28:22 +02:00