diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-10-13 11:45:34 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-10-13 14:42:59 +0200 |
| commit | dad8ddbfdd86556fa8a5a287d0256c74ead59f59 (patch) | |
| tree | 216c88c8888cd17fc896c0196462fde4865992d0 /src/librustc_codegen_ssa/meth.rs | |
| parent | f1ed3a878622ae6d593bc8aa5974b80831fca9f2 (diff) | |
| download | rust-dad8ddbfdd86556fa8a5a287d0256c74ead59f59.tar.gz rust-dad8ddbfdd86556fa8a5a287d0256c74ead59f59.zip | |
Inline functions from cg_ssa::callee and remove the mod
Fixes #65271
Diffstat (limited to 'src/librustc_codegen_ssa/meth.rs')
| -rw-r--r-- | src/librustc_codegen_ssa/meth.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/meth.rs b/src/librustc_codegen_ssa/meth.rs index 7fe9f5f2513..5c177fd7d6d 100644 --- a/src/librustc_codegen_ssa/meth.rs +++ b/src/librustc_codegen_ssa/meth.rs @@ -1,6 +1,5 @@ use rustc_target::abi::call::FnType; -use crate::callee; use crate::traits::*; use rustc::ty::{self, Ty, Instance}; @@ -92,7 +91,14 @@ pub fn get_vtable<'tcx, Cx: CodegenMethods<'tcx>>( let methods = methods.cloned().map(|opt_mth| { opt_mth.map_or(nullptr, |(def_id, substs)| { - callee::resolve_and_get_fn_for_vtable(cx, def_id, substs) + cx.get_fn( + ty::Instance::resolve_for_vtable( + cx.tcx(), + ty::ParamEnv::reveal_all(), + def_id, + substs, + ).unwrap() + ) }) }); |
