diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-07-31 13:27:54 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-09-19 10:36:36 +0200 |
| commit | 2d7ac728e4ce2aa1a77068e1f668be71d10116a0 (patch) | |
| tree | a6896d2d98b21cfb58038d8ef1dbc8f172c9c0c2 /src/test/ui/recursion/recursive-static-definition.stderr | |
| parent | 083f1d7a37a5b439c1b9325e7860ef4fd880d418 (diff) | |
| download | rust-2d7ac728e4ce2aa1a77068e1f668be71d10116a0.tar.gz rust-2d7ac728e4ce2aa1a77068e1f668be71d10116a0.zip | |
Stop using the `const_eval` query for initializers of statics
As a side effect, we now represent most promoteds as `ConstValue::Scalar` again. This is useful because all implict promoteds are just references anyway and most explicit promoteds are numeric arguments to `asm!` or SIMD instructions.
Diffstat (limited to 'src/test/ui/recursion/recursive-static-definition.stderr')
| -rw-r--r-- | src/test/ui/recursion/recursive-static-definition.stderr | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/test/ui/recursion/recursive-static-definition.stderr b/src/test/ui/recursion/recursive-static-definition.stderr index 093606e100c..97e42a1f126 100644 --- a/src/test/ui/recursion/recursive-static-definition.stderr +++ b/src/test/ui/recursion/recursive-static-definition.stderr @@ -10,11 +10,7 @@ note: ...which requires const-evaluating `FOO`... LL | pub static FOO: u32 = FOO; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: ...which again requires const-evaluating `FOO`, completing the cycle -note: cycle used when const-evaluating + checking `FOO` - --> $DIR/recursive-static-definition.rs:1:1 - | -LL | pub static FOO: u32 = FOO; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + = note: cycle used when running analysis passes on this crate error: aborting due to previous error |
