Skip to content

Commit 4ea9fde

Browse files
---
yaml --- r: 218858 b: refs/heads/snap-stage3 c: dbfc8c5 h: refs/heads/master v: v3
1 parent 5b45733 commit 4ea9fde

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: c044791d80ea0dc5c4b57b6030a67b69f8510239
3-
refs/heads/snap-stage3: 42c5c982c4589d4e1f480407d29769f176f4e104
3+
refs/heads/snap-stage3: dbfc8c5a0711a0746d0af8fdf798f3fc631c83b6
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/snap-stage3/src/librustc/diagnostics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ the heap at runtime, and therefore cannot be done at compile time.
177177
"##,
178178

179179
E0011: r##"
180-
Using a user-defined operator on const/static variable is restricted to what
181-
can be evaluated at compile-time. Using an user-defined operator could call a
182-
user-defined function, which is not allowed.
180+
Initializers for constants and statics are evaluated at compile time.
181+
User-defined operators rely on user-defined functions, which cannot be evaluated
182+
at compile time.
183183
184184
Bad example:
185185

0 commit comments

Comments
 (0)