diff options
| author | Urgau <3616612+Urgau@users.noreply.github.com> | 2025-06-18 19:40:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-18 19:40:31 +0200 |
| commit | 7c465447c845cd2ccb44fb2a5100be4a6f7e611e (patch) | |
| tree | e306b5e367c6e558d0de55ea75caa38ddef95b47 /compiler/rustc_errors | |
| parent | 6e2a26eed9773239dfd6a3f966f72d75f0aff6b9 (diff) | |
| parent | a1a3bef6f0d5f5f45f0296133d7af745dc89d7bb (diff) | |
| download | rust-7c465447c845cd2ccb44fb2a5100be4a6f7e611e.tar.gz rust-7c465447c845cd2ccb44fb2a5100be4a6f7e611e.zip | |
Rollup merge of #141614 - rperier:lint_type-ir-to-type-middle, r=compiler-errors
lint direct use of rustc_type_ir cc rust-lang/rust#138449 As previously discussed with `@lcnr,` it is a lint to prevent direct use of rustc_type_ir, except for some internal crates (like next_trait_solver or rustc_middle for example).
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 9f72fc4705a..08e4f61e629 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -7,6 +7,7 @@ #![allow(internal_features)] #![allow(rustc::diagnostic_outside_of_impl)] #![allow(rustc::untranslatable_diagnostic)] +#![cfg_attr(not(bootstrap), allow(rustc::direct_use_of_rustc_type_ir))] #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")] #![doc(rust_logo)] #![feature(array_windows)] |
