Skip to content

Commit 32ca987

Browse files
authored
Rollup merge of rust-lang#120693 - nnethercote:invert-diagnostic-lints, r=davidtwco
Invert diagnostic lints. That is, change `diagnostic_outside_of_impl` and `untranslatable_diagnostic` from `allow` to `deny`, because more than half of the compiler has been converted to use translated diagnostics. This commit removes more `deny` attributes than it adds `allow` attributes, which proves that this change is warranted. r? ``@davidtwco``
2 parents b34415c + 0ac1195 commit 32ca987

File tree

107 files changed

+89
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+89
-166
lines changed

compiler/rustc_arena/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
#![cfg_attr(test, feature(test))]
2323
#![feature(strict_provenance)]
2424
#![deny(unsafe_op_in_unsafe_fn)]
25-
#![deny(rustc::untranslatable_diagnostic)]
26-
#![deny(rustc::diagnostic_outside_of_impl)]
2725
#![allow(internal_features)]
2826
#![allow(clippy::mut_from_ref)] // Arena allocators are one of the places where this pattern is fine.
2927

compiler/rustc_ast/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#![feature(min_specialization)]
1919
#![feature(negative_impls)]
2020
#![feature(stmt_expr_attributes)]
21-
#![deny(rustc::untranslatable_diagnostic)]
22-
#![deny(rustc::diagnostic_outside_of_impl)]
2321

2422
#[macro_use]
2523
extern crate rustc_macros;

compiler/rustc_ast_lowering/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
#![feature(assert_matches)]
3737
#![feature(box_patterns)]
3838
#![feature(let_chains)]
39-
#![deny(rustc::untranslatable_diagnostic)]
40-
#![deny(rustc::diagnostic_outside_of_impl)]
4139

4240
#[macro_use]
4341
extern crate tracing;

compiler/rustc_ast_passes/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#![feature(if_let_guard)]
1212
#![feature(iter_is_partitioned)]
1313
#![feature(let_chains)]
14-
#![deny(rustc::untranslatable_diagnostic)]
15-
#![deny(rustc::diagnostic_outside_of_impl)]
1614

1715
pub mod ast_validation;
1816
mod errors;

compiler/rustc_ast_pretty/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![allow(internal_features)]
22
#![feature(rustdoc_internals)]
33
#![doc(rust_logo)]
4-
#![deny(rustc::untranslatable_diagnostic)]
5-
#![deny(rustc::diagnostic_outside_of_impl)]
64
#![feature(box_patterns)]
75

86
mod helpers;

compiler/rustc_attr/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#![feature(rustdoc_internals)]
99
#![doc(rust_logo)]
1010
#![feature(let_chains)]
11-
#![deny(rustc::untranslatable_diagnostic)]
12-
#![deny(rustc::diagnostic_outside_of_impl)]
1311

1412
#[macro_use]
1513
extern crate rustc_macros;

compiler/rustc_borrowck/src/borrow_set.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use crate::path_utils::allow_two_phase_borrow;
42
use crate::place_ext::PlaceExt;
53
use crate::BorrowIndex;

compiler/rustc_borrowck/src/borrowck_errors.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![allow(rustc::diagnostic_outside_of_impl)]
2+
#![allow(rustc::untranslatable_diagnostic)]
3+
14
use rustc_errors::{codes::*, struct_span_code_err, DiagCtxt, DiagnosticBuilder};
25
use rustc_middle::ty::{self, Ty, TyCtxt};
36
use rustc_span::Span;

compiler/rustc_borrowck/src/constraints/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
3-
41
use rustc_data_structures::graph::scc::Sccs;
52
use rustc_index::{IndexSlice, IndexVec};
63
use rustc_middle::mir::ConstraintCategory;

compiler/rustc_borrowck/src/consumers.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
//! This file provides API for compiler consumers.
42
53
use rustc_hir::def_id::LocalDefId;

compiler/rustc_borrowck/src/dataflow.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use rustc_data_structures::fx::FxIndexMap;
42
use rustc_data_structures::graph::WithSuccessors;
53
use rustc_index::bit_set::BitSet;

compiler/rustc_borrowck/src/def_use.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use rustc_middle::mir::visit::{
42
MutatingUseContext, NonMutatingUseContext, NonUseContext, PlaceContext,
53
};

compiler/rustc_borrowck/src/diagnostics/bound_region_errors.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
3-
41
use rustc_errors::DiagnosticBuilder;
52
use rustc_infer::infer::canonical::Canonical;
63
use rustc_infer::infer::error_reporting::nice_region_error::NiceRegionError;

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// ignore-tidy-filelength
22

3+
#![allow(rustc::diagnostic_outside_of_impl)]
4+
#![allow(rustc::untranslatable_diagnostic)]
5+
36
use either::Either;
47
use rustc_data_structures::captures::Captures;
58
use rustc_data_structures::fx::FxIndexSet;

compiler/rustc_borrowck/src/diagnostics/explain_borrow.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//! Print diagnostics to explain why values are borrowed.
22
3+
#![allow(rustc::diagnostic_outside_of_impl)]
4+
#![allow(rustc::untranslatable_diagnostic)]
5+
36
use rustc_errors::{Applicability, Diagnostic};
47
use rustc_hir as hir;
58
use rustc_hir::intravisit::Visitor;

compiler/rustc_borrowck/src/diagnostics/find_all_local_uses.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
3-
41
use std::collections::BTreeSet;
52

63
use rustc_middle::mir::visit::{PlaceContext, Visitor};

compiler/rustc_borrowck/src/diagnostics/find_use.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
3-
41
use std::collections::VecDeque;
52
use std::rc::Rc;
63

compiler/rustc_borrowck/src/diagnostics/move_errors.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![allow(rustc::diagnostic_outside_of_impl)]
2+
#![allow(rustc::untranslatable_diagnostic)]
3+
14
use rustc_errors::{Applicability, Diagnostic, DiagnosticBuilder};
25
use rustc_middle::mir::*;
36
use rustc_middle::ty::{self, Ty};

compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![allow(rustc::diagnostic_outside_of_impl)]
2+
#![allow(rustc::untranslatable_diagnostic)]
3+
14
use hir::ExprKind;
25
use rustc_errors::{Applicability, Diagnostic, DiagnosticBuilder};
36
use rustc_hir as hir;

compiler/rustc_borrowck/src/diagnostics/outlives_suggestion.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! Contains utilities for generating suggestions for borrowck errors related to unsatisfied
22
//! outlives constraints.
33
4+
#![allow(rustc::diagnostic_outside_of_impl)]
5+
#![allow(rustc::untranslatable_diagnostic)]
6+
47
use rustc_data_structures::fx::FxIndexSet;
58
use rustc_errors::Diagnostic;
69
use rustc_middle::ty::RegionVid;

compiler/rustc_borrowck/src/diagnostics/region_errors.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
//! Error reporting machinery for lifetime errors.
42
53
use rustc_data_structures::fx::FxIndexSet;

compiler/rustc_borrowck/src/diagnostics/region_name.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![allow(rustc::diagnostic_outside_of_impl)]
2+
#![allow(rustc::untranslatable_diagnostic)]
3+
14
use std::fmt::{self, Display};
25
use std::iter;
36

compiler/rustc_borrowck/src/diagnostics/var_name.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
3-
41
use crate::region_infer::RegionInferenceContext;
52
use rustc_index::IndexSlice;
63
use rustc_middle::mir::{Body, Local};

compiler/rustc_borrowck/src/facts.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use crate::location::{LocationIndex, LocationTable};
42
use crate::BorrowIndex;
53
use polonius_engine::AllFacts as PoloniusFacts;

compiler/rustc_borrowck/src/location.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use rustc_index::IndexVec;
42
use rustc_middle::mir::{BasicBlock, Body, Location};
53

compiler/rustc_borrowck/src/member_constraints.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use rustc_data_structures::captures::Captures;
42
use rustc_data_structures::fx::FxIndexMap;
53
use rustc_index::{IndexSlice, IndexVec};

compiler/rustc_borrowck/src/nll.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
//! The entry point of the NLL borrow checker.
42
53
use polonius_engine::{Algorithm, Output};

compiler/rustc_borrowck/src/path_utils.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use crate::borrow_set::{BorrowData, BorrowSet, TwoPhaseActivation};
42
use crate::places_conflict;
53
use crate::AccessDepth;

compiler/rustc_borrowck/src/place_ext.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use crate::borrow_set::LocalsStateAtExit;
42
use rustc_hir as hir;
53
use rustc_middle::mir::ProjectionElem;

compiler/rustc_borrowck/src/places_conflict.rs

-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
//! and either equal or disjoint.
5151
//! - If we did run out of access, the borrow can access a part of it.
5252
53-
#![deny(rustc::untranslatable_diagnostic)]
54-
#![deny(rustc::diagnostic_outside_of_impl)]
5553
use crate::ArtificialField;
5654
use crate::Overlap;
5755
use crate::{AccessDepth, Deep, Shallow};

compiler/rustc_borrowck/src/polonius/loan_invalidations.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use rustc_data_structures::graph::dominators::Dominators;
42
use rustc_middle::mir::visit::Visitor;
53
use rustc_middle::mir::{self, BasicBlock, Body, Location, NonDivergingIntrinsic, Place, Rvalue};

compiler/rustc_borrowck/src/polonius/loan_kills.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use rustc_middle::mir::visit::Visitor;
42
use rustc_middle::mir::{
53
Body, Local, Location, Place, PlaceRef, ProjectionElem, Rvalue, Statement, StatementKind,

compiler/rustc_borrowck/src/prefixes.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
//! From the NLL RFC: "The deep [aka 'supporting'] prefixes for an
42
//! place are formed by stripping away fields and derefs, except that
53
//! we stop when we reach the deref of a shared reference. [...] "

compiler/rustc_borrowck/src/region_infer/dump_mir.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
//! As part of generating the regions, if you enable `-Zdump-mir=nll`,
42
//! we will generate an annotated copy of the MIR that includes the
53
//! state of region inference. This code handles emitting the region

compiler/rustc_borrowck/src/region_infer/graphviz.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
//! This module provides linkage between RegionInferenceContext and
42
//! `rustc_graphviz` traits, specialized to attaching borrowck analysis
53
//! data to rendered labels.

compiler/rustc_borrowck/src/region_infer/opaque_types.rs

+2
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,8 @@ fn check_opaque_type_parameter_valid(
418418
.into_iter()
419419
.map(|i| tcx.def_span(opaque_generics.param_at(i, tcx).def_id))
420420
.collect();
421+
#[allow(rustc::diagnostic_outside_of_impl)]
422+
#[allow(rustc::untranslatable_diagnostic)]
421423
return Err(tcx
422424
.dcx()
423425
.struct_span_err(span, "non-defining opaque type use in defining scope")

compiler/rustc_borrowck/src/region_infer/reverse_sccs.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use crate::constraints::ConstraintSccIndex;
42
use crate::RegionInferenceContext;
53
use itertools::Itertools;

compiler/rustc_borrowck/src/region_infer/values.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use rustc_data_structures::fx::FxHashSet;
42
use rustc_data_structures::fx::FxIndexSet;
53
use rustc_index::bit_set::SparseBitMatrix;

compiler/rustc_borrowck/src/renumber.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use crate::BorrowckInferCtxt;
42
use rustc_index::IndexSlice;
53
use rustc_infer::infer::NllRegionVariableOrigin;

compiler/rustc_borrowck/src/type_check/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
//! This pass type-checks the MIR to ensure it is not broken.
42
53
use std::rc::Rc;

compiler/rustc_borrowck/src/universal_regions.rs

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
//! The code in this file doesn't *do anything* with those results; it
1313
//! just returns them for other code to use.
1414
15+
#![allow(rustc::diagnostic_outside_of_impl)]
16+
#![allow(rustc::untranslatable_diagnostic)]
17+
1518
use rustc_data_structures::fx::FxHashMap;
1619
use rustc_errors::Diagnostic;
1720
use rustc_hir::def_id::{DefId, LocalDefId};

compiler/rustc_borrowck/src/used_muts.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(rustc::untranslatable_diagnostic)]
2-
#![deny(rustc::diagnostic_outside_of_impl)]
31
use rustc_data_structures::fx::FxIndexSet;
42
use rustc_middle::mir::visit::{PlaceContext, Visitor};
53
use rustc_middle::mir::{

compiler/rustc_builtin_macros/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//! injecting code into the crate before it is lowered to HIR.
33
44
#![allow(internal_features)]
5+
#![allow(rustc::diagnostic_outside_of_impl)]
6+
#![allow(rustc::untranslatable_diagnostic)]
57
#![feature(rustdoc_internals)]
68
#![doc(rust_logo)]
79
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]

compiler/rustc_codegen_cranelift/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#![cfg_attr(doc, doc(rust_logo))]
44
#![feature(rustc_private)]
55
// Note: please avoid adding other feature gates where possible
6+
#![allow(rustc::diagnostic_outside_of_impl)]
7+
#![allow(rustc::untranslatable_diagnostic)]
68
#![warn(rust_2018_idioms)]
79
#![warn(unused_lifetimes)]
810
#![warn(unreachable_pub)]

compiler/rustc_codegen_gcc/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#![recursion_limit="256"]
2828
#![warn(rust_2018_idioms)]
2929
#![warn(unused_lifetimes)]
30-
#![deny(rustc::untranslatable_diagnostic)]
31-
#![deny(rustc::diagnostic_outside_of_impl)]
3230

3331
extern crate rustc_apfloat;
3432
extern crate rustc_ast;

compiler/rustc_codegen_llvm/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#![feature(let_chains)]
1616
#![feature(min_specialization)]
1717
#![feature(impl_trait_in_assoc_type)]
18-
#![deny(rustc::untranslatable_diagnostic)]
19-
#![deny(rustc::diagnostic_outside_of_impl)]
2018

2119
#[macro_use]
2220
extern crate rustc_macros;

compiler/rustc_codegen_ssa/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#![doc(rust_logo)]
33
#![feature(rustdoc_internals)]
44
#![allow(internal_features)]
5+
#![allow(rustc::diagnostic_outside_of_impl)]
6+
#![allow(rustc::untranslatable_diagnostic)]
57
#![feature(associated_type_bounds)]
68
#![feature(box_patterns)]
79
#![feature(if_let_guard)]

compiler/rustc_const_eval/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Rust MIR: a lowered representation of Rust.
55
*/
66

77
#![allow(internal_features)]
8+
#![allow(rustc::diagnostic_outside_of_impl)]
89
#![feature(rustdoc_internals)]
910
#![doc(rust_logo)]
10-
#![deny(rustc::untranslatable_diagnostic)]
1111
#![feature(assert_matches)]
1212
#![feature(box_patterns)]
1313
#![feature(decl_macro)]

compiler/rustc_data_structures/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#![allow(rustc::default_hash_types)]
1212
#![allow(rustc::potential_query_instability)]
1313
#![cfg_attr(not(parallel_compiler), feature(cell_leak))]
14-
#![deny(rustc::diagnostic_outside_of_impl)]
15-
#![deny(rustc::untranslatable_diagnostic)]
1614
#![deny(unsafe_op_in_unsafe_fn)]
1715
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1816
#![doc(rust_logo)]

compiler/rustc_driver_impl/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#![feature(let_chains)]
1313
#![feature(panic_update_hook)]
1414
#![feature(result_flattening)]
15-
#![deny(rustc::untranslatable_diagnostic)]
16-
#![deny(rustc::diagnostic_outside_of_impl)]
1715

1816
#[macro_use]
1917
extern crate tracing;

compiler/rustc_error_codes/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#![feature(rustdoc_internals)]
66
#![doc(rust_logo)]
77
#![deny(rustdoc::invalid_codeblock_attributes)]
8-
#![deny(rustc::untranslatable_diagnostic)]
9-
#![deny(rustc::diagnostic_outside_of_impl)]
108

119
// This higher-order macro defines the error codes that are in use. It is used
1210
// in the `rustc_errors` crate. Removed error codes are listed in the comment

compiler/rustc_error_messages/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#![feature(lazy_cell)]
44
#![feature(rustc_attrs)]
55
#![feature(type_alias_impl_trait)]
6-
#![deny(rustc::untranslatable_diagnostic)]
7-
#![deny(rustc::diagnostic_outside_of_impl)]
86
#![allow(internal_features)]
97

108
#[macro_use]

compiler/rustc_errors/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// tidy-alphabetical-start
66
#![allow(incomplete_features)]
77
#![allow(internal_features)]
8+
#![allow(rustc::diagnostic_outside_of_impl)]
9+
#![allow(rustc::untranslatable_diagnostic)]
810
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
911
#![doc(rust_logo)]
1012
#![feature(array_windows)]

0 commit comments

Comments
 (0)