Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekun Wang authored and fEst1ck committed Nov 15, 2023
1 parent 060148a commit e926c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion third_party/move/move-compiler/src/typing/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ fn type_fun_ty_param(
type_msg_(context, ty, &format!("Cannot infer the type parameter `{param_name}` for generic function `{m}::{n}`. Try providing a type parameter."));
}

pub fn type_msg_(context: &mut Context, ty: &mut Type, msg_uninferred: &str) {
// Try to expand the type of ty, warning with msg_uninferred if type cannot be inferred.
fn type_msg_(context: &mut Context, ty: &mut Type, msg_uninferred: &str) {
use Type_::*;
match &mut ty.value {
Anything | UnresolvedError | Param(_) | Unit => (),
Expand Down

0 comments on commit e926c16

Please sign in to comment.