Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a Callable trait that is implemented for unsafe functions, too #107123

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
rustfmt
oli-obk committed Jun 28, 2023

Verified

This commit was signed with the committer’s verified signature.
mroeschke Matthew Roeschke
commit 3080b86ff4e14381b6a5e27771976a417b6a3b9d
2 changes: 1 addition & 1 deletion compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {

let err = self.tcx.ty_error_misc();
let callee_ty = method.map_or(err, |method| self.tcx.mk_fn_def(method.def_id, method.substs));

// FIXME(callable_trait): make this work automatically with `check_callable`
self.check_argument_types(
sp,