Skip to content
Permalink
Browse files

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

  • Loading branch information
Tim Kuehn
Tim Kuehn committed Aug 28, 2013
1 parent 4c1648f commit 048a39d4a5ff9a0a916a9f9542bad309a60f9c96
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/components/util/time.rs
@@ -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 {
@@ -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 {

0 comments on commit 048a39d

Please sign in to comment.
You can’t perform that action at this time.