@@ -689,13 +689,6 @@ pub struct LocalDecl<'tcx> {
689689 /// Temporaries and the return place are always mutable.
690690 pub mutability : Mutability ,
691691
692- /// `Some(binding_mode)` if this corresponds to a user-declared local variable.
693- ///
694- /// This is solely used for local diagnostics when generating
695- /// warnings/errors when compiling the current crate, and
696- /// therefore it need not be visible across crates. pnkfelix
697- /// currently hypothesized we *need* to wrap this in a
698- /// `ClearCrossCrate` as long as it carries as `HirId`.
699692 // FIXME(matthewjasper) Don't store in this in `Body`
700693 pub local_info : LocalInfo < ' tcx > ,
701694
@@ -831,6 +824,10 @@ pub struct LocalDecl<'tcx> {
831824#[ derive( Clone , Debug , RustcEncodable , RustcDecodable , HashStable , TypeFoldable ) ]
832825pub enum LocalInfo < ' tcx > {
833826 /// A user-defined local variable or function parameter
827+ ///
828+ /// The `BindingForm` is solely used for local diagnostics when generating
829+ /// warnings/errors when compiling the current crate, and therefore it need
830+ /// not be visible across crates.
834831 User ( ClearCrossCrate < BindingForm < ' tcx > > ) ,
835832 /// A temporary created that references the static with the given `DefId`.
836833 StaticRef { def_id : DefId , is_thread_local : bool } ,
0 commit comments