#92007 appears to break inference for previously compiling code #93821
Labels
C-bug
Category: This is a bug.
P-critical
Critical priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
PR #92007 e7cc3bd appears to break type inference in code that compiled on previous nightlies. This was found via a build failure in
tracing
's CI after updating to nightly-2022-02-08: https://github.com/tokio-rs/tracing/runs/5129006951?check_suite_focus=true#step:4:530Code
This test (https://github.com/tokio-rs/tracing/blob/0d4acb25b6162fc64c84dbaca9cac7145d394a2a/tracing-subscriber/tests/utils.rs#L6-L20), which builds a
tracing
subscriber and sets it as the default using an extension trait, now fails to compile:The definition of the extension trait looks like this (comments and non-relevant code elided):
The complete code can be found here: https://github.com/tokio-rs/tracing/blob/0d4acb25b6162fc64c84dbaca9cac7145d394a2a/tracing-subscriber/src/util.rs#L10-L93. But, I'm pretty sure that basically only the trait bounds are relevant.
I expected to see this happen: the code compiles.
Instead, this happened: compilation fails with this error
Version it worked on
It most recently worked on:
nightly-2022-02-07
(734368a)Version with regression
The regression was introduced in:
nightly-2022-02-07
(0c292c9)I ran
cargo-bisect-rustc
withcargo test --all
on a checkout of tokio-rs/tracing@0d4acb2. The regressed commit appears to be e7cc3bd (PR #92007).Complete `cargo-bisect-rustc` output:
@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
The text was updated successfully, but these errors were encountered: