needless references

This commit is contained in:
Oliver Schneider 2016-09-13 13:03:42 +02:00
parent 4051b0e36a
commit 903bb97c17
No known key found for this signature in database
GPG key ID: 56D6EEA0FC67AC46
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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;