add reference to issue regarding CTFE function on enum types for length

This commit is contained in:
Tim Kuehn 2013-08-27 22:27:31 -04:00
parent 4c1648f8f5
commit 048a39d4a5

View file

@ -41,7 +41,7 @@ pub enum ProfilerCategory {
RenderingDrawingCategory, RenderingDrawingCategory,
RenderingPrepBuffCategory, RenderingPrepBuffCategory,
RenderingCategory, RenderingCategory,
// hackish but helps prevent errors when adding new categories // FIXME(rust#8803): workaround for lack of CTFE function on enum types to return length
NumBuckets, NumBuckets,
} }
struct ProfilerBucket { struct ProfilerBucket {
@ -56,7 +56,7 @@ impl ProfilerBucket {
} }
} }
} }
// FIXME(rust#5873) this should be initialized by a NumBuckets cast, // FIXME(rust#5873) this should be initialized by a NumBuckets cast
type ProfilerBuckets = [ProfilerBucket, ..13]; type ProfilerBuckets = [ProfilerBucket, ..13];
pub enum ProfilerMsg { pub enum ProfilerMsg {