diff options
| author | Mark Mansi <markm@cs.wisc.edu> | 2018-08-27 12:14:31 -0500 |
|---|---|---|
| committer | Mark Mansi <markm@cs.wisc.edu> | 2018-08-27 12:40:16 -0500 |
| commit | 6c264d764efc4c43c170d710edd94556e1401bdb (patch) | |
| tree | d918d994b118b4531696569587b7897ea065aa5a | |
| parent | 15b2640e70e6d9b004dee9c782d91563a94fefbd (diff) | |
| download | rust-6c264d764efc4c43c170d710edd94556e1401bdb.tar.gz rust-6c264d764efc4c43c170d710edd94556e1401bdb.zip | |
Fix anon param + make it allow-by-def
| -rw-r--r-- | src/librustc_lint/builtin.rs | 2 | ||||
| -rw-r--r-- | src/librustc_lint/lib.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/windows/backtrace/mod.rs | 9 |
3 files changed, 10 insertions, 3 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 856b50de762..6c32107c96e 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -627,7 +627,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDebugImplementations { declare_lint! { pub ANONYMOUS_PARAMETERS, - Warn, + Allow, "detects anonymous parameters" } diff --git a/src/librustc_lint/lib.rs b/src/librustc_lint/lib.rs index 7d802787105..002f6f0c520 100644 --- a/src/librustc_lint/lib.rs +++ b/src/librustc_lint/lib.rs @@ -276,7 +276,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) { FutureIncompatibleInfo { id: LintId::of(ANONYMOUS_PARAMETERS), reference: "issue #41686 <https://github.com/rust-lang/rust/issues/41686>", - edition: None, + edition: Some(Edition::Edition2018), }, FutureIncompatibleInfo { id: LintId::of(PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES), diff --git a/src/libstd/sys/windows/backtrace/mod.rs b/src/libstd/sys/windows/backtrace/mod.rs index f64cae810b9..70de4a6f2b6 100644 --- a/src/libstd/sys/windows/backtrace/mod.rs +++ b/src/libstd/sys/windows/backtrace/mod.rs @@ -152,7 +152,14 @@ type StackWalk64Fn = unsafe extern "system" fn( trait StackWalker { type Item: StackFrame; - fn walk(&self, c::DWORD, c::HANDLE, c::HANDLE, &mut Self::Item, &mut c::CONTEXT) -> c::BOOL; + fn walk( + &self, + _: c::DWORD, + _: c::HANDLE, + _: c::HANDLE, + _: &mut Self::Item, + _: &mut c::CONTEXT + ) -> c::BOOL; } impl StackWalker for StackWalkExFn { |
