Non-deterministic diagonstics output #106417
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-needs-bisection
Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: diesel-rs/diesel@49b39fc
Diesel has a larger amount of compile test to check whether some constructs are rejected at compile time and to check for specific error messages. These tests are implemented using trybuild. We pin specific compiler versions as the output obviously might change with newer compiler versions. From time to time an update of the pinned version is required. While doing such an update we noticed that newer versions of rustc do emit non-deterministic error messages. These sometimes include more or less information.
To reproduce this behaviour perform the following steps:
We do not observe this behaviour with
nightly-2022-08-12
. I've observed this behaviour at least sincenightly-2022-09-15
(that's the earliest nightly I've checked, so there might be earlier versions as well)Exemplary changes between two runs (obviously that changes as well):
The text was updated successfully, but these errors were encountered: