diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-09-19 11:23:35 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-10-09 18:39:41 +0000 |
| commit | e9fa2ca6add1db7f77c90bdc06210be694ed2571 (patch) | |
| tree | 1d475d35e797bd22c88e0532b4f1dfe2f447426e /compiler/rustc_session/src/errors.rs | |
| parent | 3dfd9dfe7ce9bf4bcbb4d1d880cd2c75a85b310c (diff) | |
| download | rust-e9fa2ca6add1db7f77c90bdc06210be694ed2571.tar.gz rust-e9fa2ca6add1db7f77c90bdc06210be694ed2571.zip | |
Remove cgu_reuse_tracker from Session
This removes a bit of global mutable state
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
| -rw-r--r-- | compiler/rustc_session/src/errors.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/compiler/rustc_session/src/errors.rs b/compiler/rustc_session/src/errors.rs index 5f8bbfca890..31094e0d266 100644 --- a/compiler/rustc_session/src/errors.rs +++ b/compiler/rustc_session/src/errors.rs @@ -1,6 +1,5 @@ use std::num::NonZeroU32; -use crate::cgu_reuse_tracker::CguReuse; use crate::parse::ParseSess; use rustc_ast::token; use rustc_ast::util::literal::LitError; @@ -9,24 +8,6 @@ use rustc_macros::Diagnostic; use rustc_span::{BytePos, Span, Symbol}; use rustc_target::spec::{SplitDebuginfo, StackProtector, TargetTriple}; -#[derive(Diagnostic)] -#[diag(session_incorrect_cgu_reuse_type)] -pub struct IncorrectCguReuseType<'a> { - #[primary_span] - pub span: Span, - pub cgu_user_name: &'a str, - pub actual_reuse: CguReuse, - pub expected_reuse: CguReuse, - pub at_least: u8, -} - -#[derive(Diagnostic)] -#[diag(session_cgu_not_recorded)] -pub struct CguNotRecorded<'a> { - pub cgu_user_name: &'a str, - pub cgu_name: &'a str, -} - pub struct FeatureGateError { pub span: MultiSpan, pub explain: DiagnosticMessage, |
