Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
679f6f3
Add `unwrap_unchecked()` methods for `Option` and `Result`
ojeda Jan 10, 2021
76299b3
Add `SAFETY` annotations
ojeda Jan 10, 2021
def0e9b
Fix ICE with `ReadPointerAsBytes` validation error
camelid Jan 11, 2021
a7b7a43
Move test to `src/test/ui/consts/`
camelid Jan 11, 2021
495f7cc
BTreeMap: compile-test all borrowing interfaces and test more chaotic…
ssomers Jan 19, 2021
1d03648
Fix spelling in documentation for error E0207
jockbert Jan 24, 2021
2be1993
Ignore test on 32-bit architectures
camelid Jan 25, 2021
59195a2
rustc_codegen_ssa: use wall time for codegen_to_LLVM_IR time-passes e…
tgnottingham Jan 25, 2021
088c89d
Account for generics when suggesting bound
estebank Jan 19, 2021
042facb
Fix some bugs reported by eslint
GuillaumeGomez Jan 23, 2021
0140dac
Link the reference about undefined behavior
ojeda Jan 25, 2021
01250fc
Add tracking issue
ojeda Jan 25, 2021
1c0a52d
rustdoc: Document CommonMark extensions.
ehuss Jan 25, 2021
3eebf9b
tidy: Remove cargo check.
ehuss Jan 25, 2021
d980715
tidy: Remove edition filter exceptions.
ehuss Jan 25, 2021
6f22f51
tidy: Remove unnecessary trailing semicolon.
ehuss Jan 25, 2021
fdd592a
Update books
ehuss Jan 25, 2021
d035be8
typeck: Don't suggest converting LHS exprs
osa1 Jan 24, 2021
8ddc1c8
Refine "remove semicolon" suggestion in trait selection
osa1 Jan 26, 2021
39e24f7
Update RELEASES.md for 1.50.0
XAMPPRocky Jan 8, 2021
f520667
Fix assertion in `MaybeUninit::array_assume_init()` for zero-length a…
Jan 26, 2021
f85fd81
Rollup merge of #80812 - rust-lang:relnotes-1.50.0, r=Mark-Simulacrum
JohnTitor Jan 26, 2021
fe6b3a9
Rollup merge of #80876 - ojeda:option-result-unwrap_unchecked, r=m-ou-se
JohnTitor Jan 26, 2021
c2c90bf
Rollup merge of #80900 - camelid:readpointerasbytes-ice, r=oli-obk
JohnTitor Jan 26, 2021
8299105
Rollup merge of #81191 - ssomers:btree_more_order_chaos, r=Mark-Simul…
JohnTitor Jan 26, 2021
644df2f
Rollup merge of #81195 - estebank:suggest-bound-on-trait-with-params,…
JohnTitor Jan 26, 2021
1308c14
Rollup merge of #81299 - GuillaumeGomez:fix-eslint-detected-bugs, r=N…
JohnTitor Jan 26, 2021
71f13fb
Rollup merge of #81325 - osa1:issue81293, r=estebank
JohnTitor Jan 26, 2021
3741844
Rollup merge of #81353 - jockbert:spelling_in_e0207, r=petrochenkov
JohnTitor Jan 26, 2021
acbd101
Rollup merge of #81369 - tgnottingham:codegen-to-llvm-ir-wall-time, r…
JohnTitor Jan 26, 2021
ebe28f7
Rollup merge of #81389 - ehuss:rustdoc-cmark-extensions, r=GuillaumeG…
JohnTitor Jan 26, 2021
9da3608
Rollup merge of #81399 - ehuss:update-books, r=ehuss
JohnTitor Jan 26, 2021
24a1081
Rollup merge of #81401 - ehuss:tidy-cleanup, r=Mark-Simulacrum
JohnTitor Jan 26, 2021
d68570c
Rollup merge of #81407 - osa1:issue81098, r=estebank
JohnTitor Jan 26, 2021
b2f6c2a
Rollup merge of #81412 - hyd-dev:array-assume-init-wrong-assertion, r…
JohnTitor Jan 26, 2021
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
Prev Previous commit
Next Next commit
tidy: Remove edition filter exceptions.
These exceptions are no longer necessary.
  • Loading branch information
ehuss committed Jan 25, 2021
commit d9807154d693df43552c1e312dceb320f124dff6
16 changes: 1 addition & 15 deletions src/tools/tidy/src/edition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

use std::path::Path;

fn filter_dirs(path: &Path) -> bool {
// FIXME: just use super::filter_dirs after the submodules are updated.
if super::filter_dirs(path) {
return true;
}
let skip = [
"src/doc/book/second-edition",
"src/doc/book/2018-edition",
"src/doc/book/ci/stable-check",
"src/doc/reference/stable-check",
];
skip.iter().any(|p| path.ends_with(p))
}

fn is_edition_2018(mut line: &str) -> bool {
line = line.trim();
line == "edition = \"2018\"" || line == "edition = \'2018\'"
Expand All @@ -24,7 +10,7 @@ fn is_edition_2018(mut line: &str) -> bool {
pub fn check(path: &Path, bad: &mut bool) {
super::walk(
path,
&mut |path| filter_dirs(path) || path.ends_with("src/test"),
&mut |path| super::filter_dirs(path) || path.ends_with("src/test"),
&mut |entry, contents| {
let file = entry.path();
let filename = file.file_name().unwrap();
Expand Down