commit
c14609035d
39 changed files with 1603 additions and 889 deletions
|
|
@ -269,7 +269,7 @@ impl UnsafetyState {
|
|||
(unsafety, blk.id, self.unsafe_push_count.checked_sub(1).unwrap()),
|
||||
hir::UnsafeBlock(..) =>
|
||||
(hir::Unsafety::Unsafe, blk.id, self.unsafe_push_count),
|
||||
hir::DefaultBlock =>
|
||||
hir::DefaultBlock | hir::PushUnstableBlock | hir:: PopUnstableBlock =>
|
||||
(unsafety, self.def, self.unsafe_push_count),
|
||||
};
|
||||
UnsafetyState{ def: def,
|
||||
|
|
@ -1810,7 +1810,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
|
||||
// There is a possibility that this algorithm will have to run an arbitrary number of times
|
||||
// to terminate so we bound it by the compiler's recursion limit.
|
||||
for _ in (0..self.tcx().sess.recursion_limit.get()) {
|
||||
for _ in 0..self.tcx().sess.recursion_limit.get() {
|
||||
// First we try to solve all obligations, it is possible that the last iteration
|
||||
// has made it possible to make more progress.
|
||||
self.select_obligations_where_possible();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue