You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like debated recently with the (not official) doc team and @brson. I'm going to add the possibility to set an expected error code in block code flags for rustdoc check. The main purpose is to avoid that if an error code isn't throw anymore for a same code, it'll be updated in error code explanation as well.
So actually we have for example:
```compile_fail
// the failing code
With this change, it'll be possible to do:
```compile_fail,E0500
// the failing code
And if the E0500 error code isn't thrown at least once, then it'll fail.
It'll be gated of course. I'll start working on it in the next days.
Implementation of #34168
r? @brson
cc @alexcrichton
cc @steveklabnik
cc @jonathandturner
I only updated `librustc_privacy/diagnostics.rs`, and I already found a case where the code doesn't throw the expected error code (E0448).
Fixes#34168.
Like debated recently with the (not official) doc team and @brson. I'm going to add the possibility to set an expected error code in block code flags for rustdoc check. The main purpose is to avoid that if an error code isn't throw anymore for a same code, it'll be updated in error code explanation as well.
So actually we have for example:
With this change, it'll be possible to do:
And if the E0500 error code isn't thrown at least once, then it'll fail.
It'll be gated of course. I'll start working on it in the next days.
cc @alexcrichton
The text was updated successfully, but these errors were encountered: