Co-Authored-By: varkor <github@varkor.com>
This commit is contained in:
Esteban Kuber 2020-04-27 10:59:44 -07:00 committed by GitHub
parent c47bb6debd
commit 432ab343f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -248,7 +248,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
};
printer.name_resolver = Some(Box::new(&getter));
let _ = if let ty::FnDef(..) = ty.kind {
// We don't want the regular output for `fn`s because it inscludes its path in
// We don't want the regular output for `fn`s because it includes its path in
// invalid pseduo-syntax, we want the `fn`-pointer output instead.
ty.fn_sig(self.tcx).print(printer)
} else {