mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
add reference to issue regarding CTFE function on enum types for length
This commit is contained in:
parent
4c1648f8f5
commit
048a39d4a5
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue