Skip to content

Commit

Permalink
add reference to issue regarding CTFE function on enum types for length
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Kuehn committed Aug 28, 2013
1 parent 4c1648f commit 048a39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/util/time.rs
Expand Up @@ -41,7 +41,7 @@ pub enum ProfilerCategory {
RenderingDrawingCategory,
RenderingPrepBuffCategory,
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,
}
struct ProfilerBucket {
Expand All @@ -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];

pub enum ProfilerMsg {
Expand Down

0 comments on commit 048a39d

Please sign in to comment.