about summary refs log tree commit diff
path: root/src/test/ui/consts
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-22 10:59:09 +0000
committerbors <bors@rust-lang.org>2019-01-22 10:59:09 +0000
commit76c87a166fa8ca247855ea6c32465d627d1ead14 (patch)
treecbbcf9fa8edab3408c29fa3d816c7e397cca9269 /src/test/ui/consts
parent70015373b4980fbfa10130de4b0ce041f5b5da8b (diff)
parentf077990ed4e7fadd0197d00d65a198e02544ab07 (diff)
downloadrust-76c87a166fa8ca247855ea6c32465d627d1ead14.tar.gz
rust-76c87a166fa8ca247855ea6c32465d627d1ead14.zip
Auto merge of #56221 - estebank:remove-dummy-checks, r=varkor
Remove unnecessary dummy span checks

The emitter already verifies wether a given span note or span label
can be emitted to the output. If it can't, because it is a dummy
span, it will be either elided for labels or emitted as an unspanned
note/help when applicable.
Diffstat (limited to 'src/test/ui/consts')
-rw-r--r--src/test/ui/consts/const-size_of-cycle.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/consts/const-size_of-cycle.stderr b/src/test/ui/consts/const-size_of-cycle.stderr
index 8f9498e834d..8f8eb38e938 100644
--- a/src/test/ui/consts/const-size_of-cycle.stderr
+++ b/src/test/ui/consts/const-size_of-cycle.stderr
@@ -9,8 +9,8 @@ note: ...which requires const-evaluating `Foo::bytes::{{constant}}`...
    |
 LL |     intrinsics::size_of::<T>()
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
-note: ...which requires computing layout of `Foo`...
-note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All, def_id: None }, value: [u8; _] }`...
+   = note: ...which requires computing layout of `Foo`...
+   = note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All, def_id: None }, value: [u8; _] }`...
 note: ...which requires const-evaluating + checking `Foo::bytes::{{constant}}`...
   --> $DIR/const-size_of-cycle.rs:6:17
    |