needless references
This commit is contained in:
parent
4051b0e36a
commit
903bb97c17
2 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
|||
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 @@ impl<'a, 'tcx> EvalContext<'a, '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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue