File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,18 @@ of `impl const` items.
144
144
7 . Remove the call in https://github.com/rust-lang/rust/blob/f8caa321c7c7214a6c5415e4b3694e65b4ff73a7/src/librustc_passes/ast_validation.rs#L306
145
145
8 . Adjust the reference and the book to reflect these changes.
146
146
147
+ ## Const type theory
148
+
149
+ This RFC was written after weighing practical issues against each other and finding the sweet spot
150
+ that supports most use cases, is sound and fairly intuitive to use. A different approach from a
151
+ type theoretical perspective started out with a much purer scheme, but, when exposed to the
152
+ constraints required, evolved to essentially the same scheme as this RFC. We thus feel confident
153
+ that this RFC is the minimal viable scheme for having bounds on generic parameters of const
154
+ functions. The discussion and evolution of the type theoretical scheme can be found
155
+ [ here] ( https://github.com/rust-rfcs/const-eval/pull/8#issuecomment-452396020 ) and is only 12 posts
156
+ and a linked three page document long. It is left as an exercise to the reader to read the
157
+ discussion themselves.
158
+
147
159
# Drawbacks
148
160
[ drawbacks ] : #drawbacks
149
161
You can’t perform that action at this time.
0 commit comments