@@ -689,13 +689,6 @@ pub struct LocalDecl<'tcx> {
689
689
/// Temporaries and the return place are always mutable.
690
690
pub mutability : Mutability ,
691
691
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`.
699
692
// FIXME(matthewjasper) Don't store in this in `Body`
700
693
pub local_info : LocalInfo < ' tcx > ,
701
694
@@ -831,6 +824,10 @@ pub struct LocalDecl<'tcx> {
831
824
#[ derive( Clone , Debug , RustcEncodable , RustcDecodable , HashStable , TypeFoldable ) ]
832
825
pub enum LocalInfo < ' tcx > {
833
826
/// 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.
834
831
User ( ClearCrossCrate < BindingForm < ' tcx > > ) ,
835
832
/// A temporary created that references the static with the given `DefId`.
836
833
StaticRef { def_id : DefId , is_thread_local : bool } ,
0 commit comments