Remove all allows for diagnostic_outside_of_impl and untranslatable_diagnostic throughout the codebase

This PR was mostly made by search&replacing
This commit is contained in:
Jonathan Brouwer 2026-01-09 15:47:02 +01:00
parent d940e56841
commit 0ee7d96253
No known key found for this signature in database
GPG key ID: 13619B051B673C52
76 changed files with 23 additions and 254 deletions

View file

@ -8,8 +8,6 @@
// tidy-alphabetical-start
#![allow(internal_features)]
#![allow(rustc::diagnostic_outside_of_impl)]
#![allow(rustc::untranslatable_diagnostic)]
#![feature(arbitrary_self_types)]
#![feature(assert_matches)]
#![feature(box_patterns)]

View file

@ -1138,7 +1138,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
errors::OutOfScopeMacroCalls {
span: path.span,
path: pprust::path_to_string(path),
// FIXME: Make this translatable.
location,
},
);