Skip to content

Commit 09af184

Browse files
committed
review comments: clean up code
* deduplicate logic * fix typos * remove unnecessary state
1 parent 5aab1a9 commit 09af184

File tree

4 files changed

+214
-297
lines changed

4 files changed

+214
-297
lines changed

src/librustc_typeck/check/method/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
296296
opt_input_types: Option<&[Ty<'tcx>]>,
297297
) -> Option<InferOk<'tcx, MethodCallee<'tcx>>> {
298298
debug!(
299-
"lookup_in_trait_adjusted(self_ty={:?}, \
300-
m_name={}, trait_def_id={:?})",
299+
"lookup_in_trait_adjusted(self_ty={:?}, m_name={}, trait_def_id={:?})",
301300
self_ty, m_name, trait_def_id
302301
);
303302

src/librustc_typeck/check/method/probe.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
379379
self.tcx.sess,
380380
span,
381381
E0699,
382-
"the type of this value must be known \
383-
to call a method on a raw pointer on it"
382+
"the type of this value must be known to call a method on a raw pointer on \
383+
it"
384384
)
385385
.emit();
386386
} else {

0 commit comments

Comments
 (0)