Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 10 pull requests #75060

Merged
merged 25 commits into from
Aug 2, 2020
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c4f4639
Remove into_slices and its unsafe block
ssomers Jul 23, 2020
0a62b7d
make some vec_deque tests less exhaustive in Miri
RalfJung Jul 31, 2020
7e168a6
reduce slice::panic_safe test size further in Miri
RalfJung Jul 31, 2020
7468f63
also reduce some libcore test iteration counts
RalfJung Jul 31, 2020
ff0c3a9
expand comments
RalfJung Jul 31, 2020
240ef70
Define forget_type only when relevant
ssomers Jul 26, 2020
602f9aa
More benchmarks of BTreeMap mutation
ssomers Aug 1, 2020
99398dd
BTreeMap::drain_filter no longer touches the root during iteration
ssomers Jul 14, 2020
70ba491
Update elasticlunr-rs and ammonia transitive deps
Aaron1011 Aug 1, 2020
980edf5
Replace from log to tracing in libsrustrustc_ast_lowering, librustc_a…
bishtpawan Aug 2, 2020
fee58eb
Replace from log to tracing
bishtpawan Aug 2, 2020
507f403
Clean up E0733 explanation
GuillaumeGomez Jul 26, 2020
093e45d
Clean up E0744 explanation
GuillaumeGomez Aug 2, 2020
4d4b8f2
Rename rustc_middle::cstore::DepKind to DependencyKind.
cjgillot Aug 2, 2020
cc7abc7
Avoid dumping rustc invocations to stdout
Mark-Simulacrum Aug 2, 2020
8c331ee
Rollup merge of #74686 - ssomers:btree_cleanup_3, r=Mark-Simulacrum
JohnTitor Aug 2, 2020
814b31e
Rollup merge of #74762 - ssomers:btree_no_root_in_remove_kv_tracking,…
JohnTitor Aug 2, 2020
5323b9f
Rollup merge of #74781 - GuillaumeGomez:cleanup-e0733, r=jyn514
JohnTitor Aug 2, 2020
1033c74
Rollup merge of #74874 - ssomers:btree_cleanup_8, r=Mark-Simulacrum
JohnTitor Aug 2, 2020
7d18040
Rollup merge of #74974 - RalfJung:miri-tests, r=Mark-Simulacrum
JohnTitor Aug 2, 2020
21ebf69
Rollup merge of #75010 - Aaron1011:feature/remove-old-deps, r=Mark-Si…
JohnTitor Aug 2, 2020
e728848
Rollup merge of #75041 - pawanbisht62:feature/replace-log-with-tracin…
JohnTitor Aug 2, 2020
d4cc6d8
Rollup merge of #75044 - GuillaumeGomez:cleanup-e0744, r=pickfire
JohnTitor Aug 2, 2020
595a2f5
Rollup merge of #75054 - cjgillot:rename-depkind, r=petrochenkov
JohnTitor Aug 2, 2020
50f2b5d
Rollup merge of #75057 - Mark-Simulacrum:avoid-long-print, r=alexcric…
JohnTitor Aug 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean up E0744 explanation
  • Loading branch information
GuillaumeGomez committed Aug 2, 2020
commit 093e45dce656780f0ba4f3c530541def23f9d332
8 changes: 5 additions & 3 deletions src/librustc_error_codes/error_codes/E0744.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Control-flow expressions are not allowed inside a const context.
A control-flow expression was used inside a const context.

At the moment, `if` and `match`, as well as the looping constructs `for`,
`while`, and `loop`, are forbidden inside a `const`, `static`, or `const fn`.
Erroneous code example:

```compile_fail,E0744
const _: i32 = {
@@ -13,6 +12,9 @@ const _: i32 = {
};
```

At the moment, `if` and `match`, as well as the looping constructs `for`,
`while`, and `loop`, are forbidden inside a `const`, `static`, or `const fn`.

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.