Skip to content

Commit

Permalink
review comments: clean up code
Browse files Browse the repository at this point in the history
* deduplicate logic
* fix typos
* remove unnecessary state
  • Loading branch information
estebank committed Jun 24, 2020
1 parent 5aab1a9 commit 09af184
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 297 deletions.
3 changes: 1 addition & 2 deletions src/librustc_typeck/check/method/mod.rs
Expand Up @@ -296,8 +296,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
opt_input_types: Option<&[Ty<'tcx>]>,
) -> Option<InferOk<'tcx, MethodCallee<'tcx>>> {
debug!(
"lookup_in_trait_adjusted(self_ty={:?}, \
m_name={}, trait_def_id={:?})",
"lookup_in_trait_adjusted(self_ty={:?}, m_name={}, trait_def_id={:?})",
self_ty, m_name, trait_def_id
);

Expand Down
4 changes: 2 additions & 2 deletions src/librustc_typeck/check/method/probe.rs
Expand Up @@ -379,8 +379,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
self.tcx.sess,
span,
E0699,
"the type of this value must be known \
to call a method on a raw pointer on it"
"the type of this value must be known to call a method on a raw pointer on \
it"
)
.emit();
} else {
Expand Down

0 comments on commit 09af184

Please sign in to comment.