From 048a39d4a5ff9a0a916a9f9542bad309a60f9c96 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Tue, 27 Aug 2013 22:27:31 -0400 Subject: [PATCH] add reference to issue regarding CTFE function on enum types for length --- src/components/util/time.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/util/time.rs b/src/components/util/time.rs index 470769bb0af..ac6bc083fce 100644 --- a/src/components/util/time.rs +++ b/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 {