Skip to content

Commit

Permalink
Eat dogfood
Browse files Browse the repository at this point in the history
  • Loading branch information
HMPerson1 committed Oct 30, 2018
1 parent 0fcd88d commit 151e966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/any_coerce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for WrongAnyCoerce {
adjustments[i - 1].target
};
cx.tcx.infer_ctxt().enter(|infcx| {
let opt_lint_data = check_unsize_coercion(infcx, cx.param_env, src_ty, adj.target);
let opt_lint_data = check_unsize_coercion(&infcx, cx.param_env, src_ty, adj.target);
if let Some(lint_data) = opt_lint_data {
// TODO: we might be able to suggest dereferencing in some cases
let cta_str = lint_data.coerced_to_any.to_string();
Expand All @@ -88,7 +88,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for WrongAnyCoerce {

/// Returns whether or not this coercion should be linted
fn check_unsize_coercion<'tcx>(
infcx: InferCtxt<'_, '_, 'tcx>,
infcx: &InferCtxt<'_, '_, 'tcx>,
param_env: ty::ParamEnv<'tcx>,
src_ty: Ty<'tcx>,
tgt_ty: Ty<'tcx>,
Expand Down

0 comments on commit 151e966

Please sign in to comment.