diff options
| author | Michael Goulet <michael@errs.io> | 2023-01-14 22:55:27 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-02-03 21:37:41 +0000 |
| commit | 0b5941aa1117b6054a6e991787e8075adf392b11 (patch) | |
| tree | 719d4e79abe7c49fc4a49af71bc57f6cfb582bfb /compiler/rustc_middle/src/ty/fold.rs | |
| parent | 658fad6c5506f41c35b64fb1a22ceb0992697ff3 (diff) | |
| download | rust-0b5941aa1117b6054a6e991787e8075adf392b11.tar.gz rust-0b5941aa1117b6054a6e991787e8075adf392b11.zip | |
Make const/fn return params more suggestable
Diffstat (limited to 'compiler/rustc_middle/src/ty/fold.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/fold.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/fold.rs b/compiler/rustc_middle/src/ty/fold.rs index 1445bc1ed32..8a0019bc012 100644 --- a/compiler/rustc_middle/src/ty/fold.rs +++ b/compiler/rustc_middle/src/ty/fold.rs @@ -105,7 +105,7 @@ pub trait TypeSuperFoldable<'tcx>: TypeFoldable<'tcx> { /// the infallible methods of this trait to ensure that the two APIs /// are coherent. pub trait TypeFolder<'tcx>: FallibleTypeFolder<'tcx, Error = !> { - fn tcx<'a>(&'a self) -> TyCtxt<'tcx>; + fn tcx(&self) -> TyCtxt<'tcx>; fn fold_binder<T>(&mut self, t: Binder<'tcx, T>) -> Binder<'tcx, T> where |
