Skip to content

Commit

Permalink
Update some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 2, 2022
1 parent a4c1cec commit bbbdcb3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/ty/sty.rs
Expand Up @@ -152,6 +152,7 @@ pub enum TyKind<'tcx> {

/// The anonymous type of a closure. Used to represent the type of
/// `|a| a`.
/// For the order of the substs see the `ClosureSubsts` type's documentation.
Closure(DefId, SubstsRef<'tcx>),

/// The anonymous type of a generator. Used to represent the type of
Expand Down
5 changes: 0 additions & 5 deletions compiler/rustc_typeck/src/check/upvar.rs
Expand Up @@ -335,11 +335,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {

// Returns a list of `Ty`s for each upvar.
fn final_upvar_tys(&self, closure_id: DefId) -> Vec<Ty<'tcx>> {
// Presently an unboxed closure type cannot "escape" out of a
// function, so we will only encounter ones that originated in the
// local crate or were inlined into it along with some function.
// This may change if abstract return types of some sort are
// implemented.
self.typeck_results
.borrow()
.closure_min_captures_flattened(closure_id)
Expand Down

0 comments on commit bbbdcb3

Please sign in to comment.