Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit ffc821f

Browse files
committed
Merge branch 'master' into hacspec
2 parents f1462b1 + 1cac2f9 commit ffc821f

File tree

134 files changed

+868
-731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+868
-731
lines changed

.gitattributes

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
[attr]rust text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4
2-
31
* text=auto eol=lf
4-
*.rs rust
2+
*.rs text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4
53
*.fixed linguist-language=Rust

.github/deploy.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if [[ -n $TAG_NAME ]]; then
1717
ln -s "$TAG_NAME" out/stable
1818
fi
1919

20+
if [[ $BETA = "true" ]]; then
21+
echo "Update documentation for the beta release"
22+
cp -r out/master out/beta
23+
fi
24+
2025
# Generate version index that is shown as root index page
2126
cp util/gh-pages/versions.html out/index.html
2227

@@ -35,12 +40,15 @@ fi
3540

3641
if [[ -n $TAG_NAME ]]; then
3742
# Add the new dir
38-
git add $TAG_NAME
43+
git add "$TAG_NAME"
3944
# Update the symlink
4045
git add stable
4146
# Update versions file
4247
git add versions.json
4348
git commit -m "Add documentation for ${TAG_NAME} release: ${SHA}"
49+
elif [[ $BETA = "true" ]]; then
50+
git add beta
51+
git commit -m "Automatic deploy to GitHub Pages (beta): ${SHA}"
4452
else
4553
git add .
4654
git commit -m "Automatic deploy to GitHub Pages: ${SHA}"

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- beta
78
tags:
89
- rust-1.**
910

@@ -34,6 +35,9 @@ jobs:
3435
run: |
3536
TAG=$(basename ${{ github.ref }})
3637
echo "::set-env name=TAG_NAME::$TAG"
38+
- name: Set beta to true
39+
if: github.ref == 'refs/heads/beta'
40+
run: echo "::set-env name=BETA::true"
3741
- name: Deploy
3842
run: |
3943
eval "$(ssh-agent -s)"

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,7 @@ Released 2018-09-13
12711271
[`float_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_arithmetic
12721272
[`float_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
12731273
[`float_cmp_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp_const
1274+
[`fn_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_address_comparisons
12741275
[`fn_params_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_params_excessive_bools
12751276
[`fn_to_numeric_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast
12761277
[`fn_to_numeric_cast_with_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation
@@ -1542,6 +1543,7 @@ Released 2018-09-13
15421543
[`vec_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_box
15431544
[`verbose_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_bit_mask
15441545
[`verbose_file_reads`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_file_reads
1546+
[`vtable_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#vtable_address_comparisons
15451547
[`while_immutable_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
15461548
[`while_let_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop
15471549
[`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
77

8-
[There are 364 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
8+
[There are 365 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
99

1010
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
1111

@@ -175,6 +175,8 @@ If you do not want to include your lint levels in your code, you can globally en
175175
flags to Clippy during the run: `cargo clippy -- -A clippy::lint_name` will run Clippy with `lint_name` disabled and
176176
`cargo clippy -- -W clippy::lint_name` will run it with that enabled. This also works with lint groups. For example you
177177
can run Clippy with warnings for all lints enabled: `cargo clippy -- -W clippy::pedantic`
178+
If you care only about a single lint, you can allow all others and then explicitly reenable
179+
the lint(s) you are interested in: `cargo clippy -- -Aclippy::all -Wclippy::useless_format -Wclippy::...`
178180

179181
## Contributing
180182

clippy_dev/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77
[dependencies]
88
bytecount = "0.6"
99
clap = "2.33"
10-
itertools = "0.8"
10+
itertools = "0.9"
1111
regex = "1"
1212
lazy_static = "1.0"
1313
shell-escape = "0.1"

clippy_lints/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ cargo_metadata = "0.9.0"
2121
if_chain = "1.0.0"
2222
itertools = "0.9"
2323
lazy_static = "1.0.2"
24-
matches = "0.1.7"
2524
pulldown-cmark = { version = "0.7", default-features = false }
2625
quine-mc_cluskey = "0.2.2"
2726
regex-syntax = "0.6"

clippy_lints/src/as_conversions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use rustc::lint::in_external_macro;
21
use rustc_ast::ast::{Expr, ExprKind};
32
use rustc_lint::{EarlyContext, EarlyLintPass, LintContext};
3+
use rustc_middle::lint::in_external_macro;
44
use rustc_session::{declare_lint_pass, declare_tool_lint};
55

66
use crate::utils::span_lint_and_help;

clippy_lints/src/assign_ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ use crate::utils::{
33
};
44
use crate::utils::{higher, sugg};
55
use if_chain::if_chain;
6-
use rustc::hir::map::Map;
76
use rustc_errors::Applicability;
87
use rustc_hir as hir;
98
use rustc_hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
109
use rustc_lint::{LateContext, LateLintPass};
10+
use rustc_middle::hir::map::Map;
1111
use rustc_session::{declare_lint_pass, declare_tool_lint};
1212

1313
declare_clippy_lint! {

clippy_lints/src/atomic_ordering.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use crate::utils::{match_def_path, span_lint_and_help};
22
use if_chain::if_chain;
3-
use rustc::ty;
43
use rustc_hir::def_id::DefId;
54
use rustc_hir::{Expr, ExprKind};
65
use rustc_lint::{LateContext, LateLintPass};
6+
use rustc_middle::ty;
77
use rustc_session::{declare_lint_pass, declare_tool_lint};
88

99
declare_clippy_lint! {

0 commit comments

Comments
 (0)