Skip to content

Commit 6c264d7

Browse files
committed
Fix anon param + make it allow-by-def
1 parent 15b2640 commit 6c264d7

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/librustc_lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDebugImplementations {
627627

628628
declare_lint! {
629629
pub ANONYMOUS_PARAMETERS,
630-
Warn,
630+
Allow,
631631
"detects anonymous parameters"
632632
}
633633

src/librustc_lint/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
276276
FutureIncompatibleInfo {
277277
id: LintId::of(ANONYMOUS_PARAMETERS),
278278
reference: "issue #41686 <https://github.com/rust-lang/rust/issues/41686>",
279-
edition: None,
279+
edition: Some(Edition::Edition2018),
280280
},
281281
FutureIncompatibleInfo {
282282
id: LintId::of(PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES),

src/libstd/sys/windows/backtrace/mod.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,14 @@ type StackWalk64Fn = unsafe extern "system" fn(
152152
trait StackWalker {
153153
type Item: StackFrame;
154154

155-
fn walk(&self, c::DWORD, c::HANDLE, c::HANDLE, &mut Self::Item, &mut c::CONTEXT) -> c::BOOL;
155+
fn walk(
156+
&self,
157+
_: c::DWORD,
158+
_: c::HANDLE,
159+
_: c::HANDLE,
160+
_: &mut Self::Item,
161+
_: &mut c::CONTEXT
162+
) -> c::BOOL;
156163
}
157164

158165
impl StackWalker for StackWalkExFn {

0 commit comments

Comments
 (0)