diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2017-07-13 02:25:43 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2017-07-28 15:46:24 +0200 |
| commit | 098d6f05971d68aa6e24a46a3505a4b9ec42d992 (patch) | |
| tree | 832d7cbd7501ec26ee81b86551527147fcdaffde | |
| parent | 66b8a12a6d2dd0e71781becedec0fe35729c2f41 (diff) | |
| download | rust-098d6f05971d68aa6e24a46a3505a4b9ec42d992.tar.gz rust-098d6f05971d68aa6e24a46a3505a4b9ec42d992.zip | |
Move a FIXME around
| -rw-r--r-- | src/librustc/ty/flags.rs | 2 | ||||
| -rw-r--r-- | src/librustc/ty/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/ty/flags.rs b/src/librustc/ty/flags.rs index 72e4e20d70b..02d50ce29e4 100644 --- a/src/librustc/ty/flags.rs +++ b/src/librustc/ty/flags.rs @@ -86,8 +86,6 @@ impl FlagComputation { } &ty::TyGenerator(_, ref substs, ref interior) => { - // FIXME: Find out why TyClosure has HAS_TY_CLOSURE - // and see if the same reason applies here self.add_flags(TypeFlags::HAS_TY_CLOSURE); self.add_flags(TypeFlags::HAS_LOCAL_NAMES); self.add_substs(&substs.substs); diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs index 21a98bceedf..648300f9cf4 100644 --- a/src/librustc/ty/mod.rs +++ b/src/librustc/ty/mod.rs @@ -406,6 +406,8 @@ bitflags! { const HAS_FREE_REGIONS = 1 << 6, const HAS_TY_ERR = 1 << 7, const HAS_PROJECTION = 1 << 8, + + // FIXME: Rename this to the actual property since it's used for generators too const HAS_TY_CLOSURE = 1 << 9, // true if there are "names" of types and regions and so forth |
