1
Fork 0

Address review comments

- Add back `HirIdVec`, with a comment that it will soon be used.
- Add back `*_region` functions, with a comment they may soon be used.
- Remove `-Z borrowck_stats` completely. It didn't do anything.
- Remove `make_nop` completely.
- Add back `current_loc`, which is used by an out-of-tree tool.
- Fix style nits
- Remove `AtomicCell` with `cfg(parallel_compiler)` for consistency.
This commit is contained in:
Joshua Nelson 2021-03-16 12:57:31 -04:00
parent 441dc3640a
commit de0fda9558
10 changed files with 154 additions and 18 deletions

View file

@ -146,7 +146,7 @@ impl<'tcx> TypeVariableValue<'tcx> {
}
}
pub(crate) struct Instantiate {}
pub(crate) struct Instantiate;
pub(crate) struct Delegate;
@ -222,7 +222,7 @@ impl<'tcx> TypeVariableTable<'_, 'tcx> {
// Hack: we only need this so that `types_escaping_snapshot`
// can see what has been unified; see the Delegate impl for
// more details.
self.undo_log.push(Instantiate {});
self.undo_log.push(Instantiate);
}
/// Creates a new type variable.