Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 7 pull requests #71410

Merged
merged 22 commits into from
Apr 22, 2020
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
33905ad
Remove unused dependencies
sinkuu Apr 17, 2020
fae4e2a
Remove unused ToHex/FromHex trait
sinkuu Apr 17, 2020
d3c96f0
Suggest `-> impl Trait` and `-> Box<dyn Trait>` on fn that doesn't re…
estebank Apr 10, 2020
e536257
Ensure tail expression will have a `Ty` for E0746
estebank Apr 11, 2020
9fc0833
Stop accessing module level int consts via crate::<Ty>
faern Apr 16, 2020
4ddf661
Define module level int consts from assoc consts
faern Apr 16, 2020
6850e4a
Use assoc float consts instead of module level
faern Apr 16, 2020
9af047f
Fix show-const-contents rustdoc test
faern Apr 20, 2020
0315864
Fix #! (shebang) stripping account space issue #70528
Apr 21, 2020
ee5a212
Refactoring and added test-cases #70528
Apr 21, 2020
365b3cc
Fix formatting issue
Apr 21, 2020
20de922
Fix stage0.txt version number comment
RalfJung Apr 21, 2020
e2901c4
Fix incorrect description of E0690
aticu Apr 21, 2020
1b362cd
Minor refactoring
Apr 21, 2020
410fc9d
Clean up E0554 explanation
GuillaumeGomez Apr 21, 2020
24fb393
Rollup merge of #70998 - estebank:suggest-impl-trait-empty-fn, r=varkor
JohnTitor Apr 22, 2020
567e54f
Rollup merge of #71236 - sinkuu:cleanup, r=nikomatsakis
JohnTitor Apr 22, 2020
f28e387
Rollup merge of #71366 - faern:use-assoc-int-consts3, r=dtolnay
JohnTitor Apr 22, 2020
46a8dce
Rollup merge of #71372 - ayushmishra2005:shebang_stripping, r=estebank
JohnTitor Apr 22, 2020
836a64a
Rollup merge of #71384 - RalfJung:RalfJung-patch-1, r=Mark-Simulacrum
JohnTitor Apr 22, 2020
3efa70f
Rollup merge of #71390 - aticu:master, r=Dylan-DPC
JohnTitor Apr 22, 2020
66eaead
Rollup merge of #71399 - rust-lang:cleanup-e0554, r=Dylan-DPC
JohnTitor Apr 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/librustc_lexer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -237,7 +237,7 @@ pub enum Base {
pub fn strip_shebang(input: &str) -> Option<usize> {
debug_assert!(!input.is_empty());
let s: &str = &remove_whitespace(input);
if !s.starts_with("#!") || s.starts_with("#![") || s.starts_with("#! [") {
if !s.starts_with("#!") || s.starts_with("#![") {
return None;
}
Some(input.find('\n').unwrap_or(input.len()))