Skip to content

Commit b71f340

Browse files
committed
Auto merge of #7178 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
2 parents 796a6f0 + d481b38 commit b71f340

File tree

15 files changed

+24
-21
lines changed

15 files changed

+24
-21
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.1.53"
3+
version = "0.1.54"
44
authors = ["The Rust Clippy Developers"]
55
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
66
repository = "https://github.com/rust-lang/rust-clippy"

clippy_dev/src/new_lint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn create(pass: Option<&str>, lint_name: Option<&str>, category: Option<&str
4444
create_test(&lint).context("Unable to create a test for the new lint")
4545
}
4646

47-
fn create_lint(lint: &LintData) -> io::Result<()> {
47+
fn create_lint(lint: &LintData<'_>) -> io::Result<()> {
4848
let (pass_type, pass_lifetimes, pass_import, context_import) = match lint.pass {
4949
"early" => ("EarlyLintPass", "", "use rustc_ast::ast::*;", "EarlyContext"),
5050
"late" => ("LateLintPass", "<'_>", "use rustc_hir::*;", "LateContext"),
@@ -68,7 +68,7 @@ fn create_lint(lint: &LintData) -> io::Result<()> {
6868
write_file(lint.project_root.join(&lint_path), lint_contents.as_bytes())
6969
}
7070

71-
fn create_test(lint: &LintData) -> io::Result<()> {
71+
fn create_test(lint: &LintData<'_>) -> io::Result<()> {
7272
fn create_project_layout<P: Into<PathBuf>>(lint_name: &str, location: P, case: &str, hint: &str) -> io::Result<()> {
7373
let mut path = location.into().join(case);
7474
fs::create_dir(&path)?;

clippy_lints/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "clippy_lints"
33
# begin automatic update
4-
version = "0.1.53"
4+
version = "0.1.54"
55
# end automatic update
66
authors = ["The Rust Clippy Developers"]
77
description = "A bunch of helpful lints to avoid common pitfalls in Rust"

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// warn on lints, that are included in `rust-lang/rust`s bootstrap
1717
#![warn(rust_2018_idioms, unused_lifetimes)]
1818
// warn on rustc internal lints
19-
#![deny(rustc::internal)]
19+
#![warn(rustc::internal)]
2020

2121
// FIXME: switch to something more ergonomic here, once available.
2222
// (Currently there is no way to opt into sysroot crates without `extern crate`.)

clippy_lints/src/missing_const_for_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingConstForFn {
137137
let mir = cx.tcx.optimized_mir(def_id);
138138

139139
if let Err((span, err)) = is_min_const_fn(cx.tcx, mir, self.msrv.as_ref()) {
140-
if rustc_mir::const_eval::is_min_const_fn(cx.tcx, def_id.to_def_id()) {
140+
if cx.tcx.is_const_fn_raw(def_id.to_def_id()) {
141141
cx.tcx.sess.span_err(span, &err);
142142
}
143143
} else {

clippy_utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy_utils"
3-
version = "0.1.53"
3+
version = "0.1.54"
44
authors = ["The Rust Clippy Developers"]
55
edition = "2018"
66
publish = false

clippy_utils/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ pub fn method_chain_args<'a>(expr: &'a Expr<'_>, methods: &[&str]) -> Option<Vec
678678
pub fn is_entrypoint_fn(cx: &LateContext<'_>, def_id: DefId) -> bool {
679679
cx.tcx
680680
.entry_fn(LOCAL_CRATE)
681-
.map_or(false, |(entry_fn_def_id, _)| def_id == entry_fn_def_id.to_def_id())
681+
.map_or(false, |(entry_fn_def_id, _)| def_id == entry_fn_def_id)
682682
}
683683

684684
/// Returns `true` if the expression is in the program's `#[panic_handler]`.

clippy_utils/src/paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub const PARKING_LOT_RWLOCK_WRITE_GUARD: [&str; 2] = ["parking_lot", "RwLockWri
112112
pub const PATH_BUF_AS_PATH: [&str; 4] = ["std", "path", "PathBuf", "as_path"];
113113
pub const PATH_TO_PATH_BUF: [&str; 4] = ["std", "path", "Path", "to_path_buf"];
114114
pub const PERMISSIONS: [&str; 3] = ["std", "fs", "Permissions"];
115-
pub const PERMISSIONS_FROM_MODE: [&str; 7] = ["std", "sys", "unix", "ext", "fs", "PermissionsExt", "from_mode"];
115+
pub const PERMISSIONS_FROM_MODE: [&str; 7] = ["std", "os", "imp", "unix", "fs", "PermissionsExt", "from_mode"];
116116
pub const POLL: [&str; 4] = ["core", "task", "poll", "Poll"];
117117
pub const POLL_PENDING: [&str; 5] = ["core", "task", "poll", "Poll", "Pending"];
118118
pub const POLL_READY: [&str; 5] = ["core", "task", "poll", "Poll", "Ready"];

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2021-04-22"
2+
channel = "nightly-2021-05-06"
33
components = ["llvm-tools-preview", "rustc-dev", "rust-src"]

src/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// warn on lints, that are included in `rust-lang/rust`s bootstrap
55
#![warn(rust_2018_idioms, unused_lifetimes)]
66
// warn on rustc internal lints
7-
#![deny(rustc::internal)]
7+
#![warn(rustc::internal)]
88

99
// FIXME: switch to something more ergonomic here, once available.
1010
// (Currently there is no way to opt into sysroot crates without `extern crate`.)

0 commit comments

Comments
 (0)