forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#101928 - notriddle:rollup-pexhhxe, r=notriddle
Rollup of 8 pull requests Successful merges: - rust-lang#101340 (Adding Fuchsia zxdb debugging walkthrough to docs) - rust-lang#101741 (Adding needs-unwind arg to applicable compiler ui tests) - rust-lang#101782 (Update `symbol_mangling` diagnostics migration) - rust-lang#101878 (More simple formatting) - rust-lang#101898 (Remove some unused CSS rules) - rust-lang#101911 (rustdoc: remove no-op CSS on `.source .content`) - rust-lang#101914 (rustdoc-json-types: Document that ResolvedPath can also be a union) - rust-lang#101921 (Pass --cfg=bootstrap for rustdoc for proc_macro crates) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
34 changed files
with
307 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 1 addition & 7 deletions
8
compiler/rustc_error_messages/locales/en-US/symbol_mangling.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
symbol_mangling_invalid_symbol_name = symbol-name({$mangled_formatted}) | ||
symbol_mangling_invalid_trait_item = demangling({$demangling_formatted}) | ||
symbol_mangling_alt_invalid_trait_item = demangling-alt({$alt_demangling_formatted}) | ||
symbol_mangling_invalid_def_path = def-path({$def_path}) | ||
symbol_mangling_test_output = {$kind}({$content}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,34 @@ | ||
//! Errors emitted by symbol_mangling. | ||
|
||
use rustc_errors::{DiagnosticArgValue, IntoDiagnosticArg}; | ||
use rustc_macros::SessionDiagnostic; | ||
use rustc_span::Span; | ||
|
||
#[derive(SessionDiagnostic)] | ||
#[diag(symbol_mangling::invalid_symbol_name)] | ||
pub struct InvalidSymbolName { | ||
#[diag(symbol_mangling::test_output)] | ||
pub struct TestOutput { | ||
#[primary_span] | ||
pub span: Span, | ||
pub mangled_formatted: String, | ||
pub kind: Kind, | ||
pub content: String, | ||
} | ||
|
||
#[derive(SessionDiagnostic)] | ||
#[diag(symbol_mangling::invalid_trait_item)] | ||
pub struct InvalidTraitItem { | ||
#[primary_span] | ||
pub span: Span, | ||
pub demangling_formatted: String, | ||
pub enum Kind { | ||
SymbolName, | ||
Demangling, | ||
DemanglingAlt, | ||
DefPath, | ||
} | ||
|
||
#[derive(SessionDiagnostic)] | ||
#[diag(symbol_mangling::alt_invalid_trait_item)] | ||
pub struct AltInvalidTraitItem { | ||
#[primary_span] | ||
pub span: Span, | ||
pub alt_demangling_formatted: String, | ||
} | ||
|
||
#[derive(SessionDiagnostic)] | ||
#[diag(symbol_mangling::invalid_def_path)] | ||
pub struct InvalidDefPath { | ||
#[primary_span] | ||
pub span: Span, | ||
pub def_path: String, | ||
impl IntoDiagnosticArg for Kind { | ||
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> { | ||
let kind = match self { | ||
Kind::SymbolName => "symbol-name", | ||
Kind::Demangling => "demangling", | ||
Kind::DemanglingAlt => "demangling-alt", | ||
Kind::DefPath => "def-path", | ||
} | ||
.into(); | ||
DiagnosticArgValue::Str(kind) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.