Skip to content

Commit

Permalink
Upgrade examples (unscheduled)
Browse files Browse the repository at this point in the history
Upgrade examples to `nightly-2022-07-28` and `clippy_utils` `3c7e7db` to
eliminate Cargo-emitted warning.

See: rust-lang/rust-clippy#9216
  • Loading branch information
smoelius committed Aug 3, 2022
1 parent d517652 commit f09ef85
Show file tree
Hide file tree
Showing 42 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion examples/general/await_holding_span_guard/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/general/await_holding_span_guard/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name = "ui"
path = "ui/main.rs"

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }

dylint_linting = { path = "../../../utils/linting" }

Expand Down
2 changes: 1 addition & 1 deletion examples/general/await_holding_span_guard/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]
2 changes: 1 addition & 1 deletion examples/general/crate_wide_allow/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/general/crate_wide_allow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name = "ui"
path = "ui/main.rs"

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_linting = { path = "../../../utils/linting" }
Expand Down
2 changes: 1 addition & 1 deletion examples/general/crate_wide_allow/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]
2 changes: 1 addition & 1 deletion examples/general/env_cargo_path/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/general/env_cargo_path/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_linting = { path = "../../../utils/linting" }
Expand Down
2 changes: 1 addition & 1 deletion examples/general/env_cargo_path/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]
2 changes: 1 addition & 1 deletion examples/general/non_thread_safe_call_in_test/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/general/non_thread_safe_call_in_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ name = "set_current_dir"
path = "ui_late/set_current_dir.rs"

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_internal = { path = "../../../internal" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]
8 changes: 4 additions & 4 deletions examples/general/non_thread_safe_call_in_test/src/late.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use if_chain::if_chain;
use rustc_hir::{
def_id::{DefId, LocalDefId},
intravisit::{walk_body, walk_expr, Visitor},
Expr, ExprKind, Item, ItemKind,
Closure, Expr, ExprKind, Item, ItemKind,
};
use rustc_lint::{LateContext, LateLintPass};
use rustc_middle::hir::nested_filter;
Expand Down Expand Up @@ -89,11 +89,11 @@ impl NonThreadSafeCallInTest {
if let Some(testfn) = fields.iter().find(|field| field.ident.as_str() == "testfn");
// smoelius: Callee is `self::test::StaticTestFn`.
if let ExprKind::Call(_, [arg]) = testfn.expr.kind;
if let ExprKind::Closure {
if let ExprKind::Closure(Closure {
body: closure_body_id,
..
} = arg.kind;
let closure_body = cx.tcx.hir().body(closure_body_id);
}) = arg.kind;
let closure_body = cx.tcx.hir().body(*closure_body_id);
// smoelius: Callee is `self::test::assert_test_result`.
if let ExprKind::Call(_, [arg]) = closure_body.value.kind;
// smoelius: Callee is test function.
Expand Down
2 changes: 1 addition & 1 deletion examples/general/redundant_reference/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/general/redundant_reference/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_internal = { path = "../../../internal" }
Expand Down
2 changes: 1 addition & 1 deletion examples/general/redundant_reference/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]
2 changes: 1 addition & 1 deletion examples/restriction/env_literal/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/restriction/env_literal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_internal = { path = "../../../internal" }
Expand Down
2 changes: 1 addition & 1 deletion examples/restriction/env_literal/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]
2 changes: 1 addition & 1 deletion examples/restriction/inconsistent_qualification/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/restriction/inconsistent_qualification/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_linting = { path = "../../../utils/linting" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_internal = { path = "../../../internal" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name = "ls"
path = "ui/ls.rs"

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_linting = { path = "../../../utils/linting" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]
2 changes: 1 addition & 1 deletion examples/restriction/suboptimal_pattern/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/restriction/suboptimal_pattern/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_internal = { path = "../../../internal" }
Expand Down
2 changes: 1 addition & 1 deletion examples/restriction/suboptimal_pattern/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]
2 changes: 1 addition & 1 deletion examples/restriction/try_io_result/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/restriction/try_io_result/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name = "ui"
path = "ui/main.rs"

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
if_chain = "1.0.2"

dylint_internal = { path = "../../../internal" }
Expand Down
2 changes: 1 addition & 1 deletion examples/restriction/try_io_result/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]
4 changes: 2 additions & 2 deletions examples/testing/clippy/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/testing/clippy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
serde_json = "1.0.82"

dylint_internal = { path = "../../../internal" }
Expand Down
2 changes: 1 addition & 1 deletion examples/testing/clippy/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
# smoelius: The `or_fun_call` test passes only if `rust-src` is installed.
components = ["llvm-tools-preview", "rustc-dev", "rust-src"]
4 changes: 2 additions & 2 deletions examples/testing/straggler/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/testing/straggler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]

[dependencies]
# smoelius: `straggler` is intentionally held back for testing purposes.
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "b312ad7d0cf0f30be2bd4658b71a3520a2e76709" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }

dylint_linting = { path = "../../../utils/linting" }

Expand Down
2 changes: 1 addition & 1 deletion examples/testing/straggler/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
# smoelius: `straggler` is intentionally held back for testing purposes.
channel = "nightly-2022-05-19"
channel = "nightly-2022-06-30"
components = ["llvm-tools-preview", "rustc-dev"]
2 changes: 1 addition & 1 deletion internal/template/Cargo.toml~
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "3c7e7dbc1583a0b06df5bd7623dd354a4debd23d" }
dylint_linting = "2.0.9"
if_chain = "1.0.2"

Expand Down
2 changes: 1 addition & 1 deletion internal/template/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-06-30"
channel = "nightly-2022-07-28"
components = ["llvm-tools-preview", "rustc-dev"]

0 comments on commit f09ef85

Please sign in to comment.