Skip to content

Commit

Permalink
Rollup merge of rust-lang#66418 - ecstatic-morse:hir-const-check-err-…
Browse files Browse the repository at this point in the history
…msg, r=estebank

Link to tracking issue in HIR const-check error code description

This is a follow up to rust-lang#66170 that addresses [this comment](rust-lang#66170 (comment)).

As an aside, the only other error code whose description uses the phrase "tracking issue" is `E0202`. We may want to come up with standards around this, especially since error codes are now centralized and easier to keep track of (thanks @GuillaumeGomez).

r? @estebank (since they +1'ed the comment)
  • Loading branch information
JohnTitor committed Nov 15, 2019
2 parents 6c35001 + 336e332 commit d00dd35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/librustc_error_codes/error_codes/E0744.md
Expand Up @@ -15,3 +15,10 @@ const _: i32 = {
x
};
```

This will be allowed at some point in the future, but the implementation is not
yet complete. See the tracking issue for [conditionals] or [loops] in a const
context for the current status.

[conditionals]: https://github.com/rust-lang/rust/issues/49146
[loops]: https://github.com/rust-lang/rust/issues/52000

0 comments on commit d00dd35

Please sign in to comment.