needless references

上级 4051b0e3
......@@ -30,7 +30,7 @@ pub fn step(&mut self) -> EvalResult<'tcx, bool> {
let mir = self.mir();
let basic_block = &mir.basic_blocks()[block];
if let Some(ref stmt) = basic_block.statements.get(stmt_id) {
if let Some(stmt) = basic_block.statements.get(stmt_id) {
let mut new = Ok(0);
ConstantExtractor {
span: stmt.source_info.span,
......
......@@ -164,7 +164,7 @@ fn get_vtable_methods(&mut self, impl_id: DefId, substs: &'tcx Substs<'tcx>) ->
// method could then never be called, so we do not want to
// try and trans it, in that case. Issue #23435.
if mth.is_provided {
let predicates = mth.method.predicates.predicates.subst(self.tcx, &mth.substs);
let predicates = mth.method.predicates.predicates.subst(self.tcx, mth.substs);
if !self.normalize_and_test_predicates(predicates) {
debug!("get_vtable_methods: predicates do not hold");
return None;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册