Skip to content

Commit aadb0c1

Browse files
committed
modernize the enter signature
1 parent 8698117 commit aadb0c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc/infer/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,7 @@ impl<'a, 'gcx, 'tcx> InferCtxtBuilder<'a, 'gcx, 'tcx> {
429429
self
430430
}
431431

432-
pub fn enter<F, R>(&'tcx mut self, f: F) -> R
433-
where F: for<'b> FnOnce(&InferCtxt<'b, 'gcx, 'tcx>) -> R
434-
{
432+
pub fn enter<R>(&'tcx mut self, f: impl FnOnce(&InferCtxt<'_, 'gcx, 'tcx>) -> R) -> R {
435433
let InferCtxtBuilder {
436434
global_tcx,
437435
ref arena,

0 commit comments

Comments
 (0)