Skip to content

Commit 62c4882

Browse files
committed
move middle::const_eval to rustc_const_eval
1 parent 95256c9 commit 62c4882

File tree

26 files changed

+1421
-1400
lines changed

26 files changed

+1421
-1400
lines changed

mk/crates.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,23 +99,23 @@ DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_bo
9999
rustc_trans rustc_privacy rustc_lint rustc_front rustc_plugin \
100100
rustc_metadata syntax_ext rustc_passes rustc_const_eval
101101
DEPS_rustc_front := std syntax log serialize
102-
DEPS_rustc_lint := rustc log syntax
102+
DEPS_rustc_lint := rustc log syntax rustc_const_eval
103103
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
104104
DEPS_rustc_metadata := rustc rustc_front syntax rbml
105-
DEPS_rustc_passes := syntax rustc core rustc_front
106-
DEPS_rustc_mir := rustc rustc_front syntax
105+
DEPS_rustc_passes := syntax rustc core rustc_front rustc_const_eval
106+
DEPS_rustc_mir := rustc rustc_front syntax rustc_const_eval
107107
DEPS_rustc_resolve := arena rustc rustc_front log syntax
108108
DEPS_rustc_platform_intrinsics := rustc rustc_llvm
109109
DEPS_rustc_plugin := rustc rustc_metadata syntax
110110
DEPS_rustc_privacy := rustc rustc_front log syntax
111111
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
112112
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics \
113113
rustc_const_eval
114-
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics
115-
DEPS_rustc_const_eval := rustc rustc_front rustc_back syntax
114+
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics rustc_const_eval
115+
DEPS_rustc_const_eval := rustc rustc_front rustc_back syntax graphviz log
116116

117117
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
118-
test rustc_lint rustc_front
118+
test rustc_lint rustc_front rustc_const_eval
119119

120120

121121
TOOL_DEPS_compiletest := test getopts

src/librustc/diagnostics.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,16 +1139,6 @@ that the value provided is a positive integer between quotes, like so:
11391139
```
11401140
"##,
11411141

1142-
E0306: r##"
1143-
In an array literal `[x; N]`, `N` is the number of elements in the array. This
1144-
number cannot be negative.
1145-
"##,
1146-
1147-
E0307: r##"
1148-
The length of an array is part of its type. For this reason, this length must be
1149-
a compile-time constant.
1150-
"##,
1151-
11521142
E0308: r##"
11531143
This error occurs when the compiler was unable to infer the concrete type of a
11541144
variable. It can occur for several cases, the most common of which is a

0 commit comments

Comments
 (0)