Skip to content

Commit 7515ad3

Browse files
author
Lukas Markeffsky
committed
remove dead inferred outlives testing code
1 parent c03d978 commit 7515ad3

File tree

5 files changed

+2
-30
lines changed

5 files changed

+2
-30
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
#### This error code is internal to the compiler and will not be emitted with normal Rust code.
2+
#### Note: this error code is no longer emitted by the compiler.

compiler/rustc_hir_analysis/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,6 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorGuaranteed> {
173173
});
174174
})?;
175175

176-
if tcx.features().rustc_attrs {
177-
tcx.sess.track_errors(|| {
178-
tcx.sess.time("outlives_testing", || outlives::test::test_inferred_outlives(tcx));
179-
})?;
180-
}
181-
182176
tcx.sess.track_errors(|| {
183177
tcx.sess.time("coherence_checking", || {
184178
// Check impls constrain their parameters

compiler/rustc_hir_analysis/src/outlives/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ use rustc_span::Span;
99

1010
mod explicit;
1111
mod implicit_infer;
12-
/// Code to write unit test for outlives.
13-
pub mod test;
1412
mod utils;
1513

1614
pub fn provide(providers: &mut Providers) {

compiler/rustc_hir_analysis/src/outlives/test.rs

-21
This file was deleted.

src/tools/tidy/src/error_codes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const ERROR_DOCS_PATH: &str = "compiler/rustc_error_codes/src/error_codes/";
2727
const ERROR_TESTS_PATH: &str = "tests/ui/error-codes/";
2828

2929
// Error codes that (for some reason) can't have a doctest in their explanation. Error codes are still expected to provide a code example, even if untested.
30-
const IGNORE_DOCTEST_CHECK: &[&str] = &["E0464", "E0570", "E0601", "E0602", "E0640", "E0717"];
30+
const IGNORE_DOCTEST_CHECK: &[&str] = &["E0464", "E0570", "E0601", "E0602", "E0717"];
3131

3232
// Error codes that don't yet have a UI test. This list will eventually be removed.
3333
const IGNORE_UI_TEST_CHECK: &[&str] =

0 commit comments

Comments
 (0)