Home
last modified time | relevance | path

Searched refs:SessionDiagnostic (Results 1 – 18 of 18) sorted by relevance

/dports/lang/rust/rustc-1.58.1-src/src/test/ui-fulldeps/
H A Dsession-derive-errors.rs28 #[derive(SessionDiagnostic)]
33 #[derive(SessionDiagnostic)]
41 #[derive(SessionDiagnostic)]
47 #[derive(SessionDiagnostic)]
55 #[derive(SessionDiagnostic)]
61 #[derive(SessionDiagnostic)]
67 #[derive(SessionDiagnostic)]
72 #[derive(SessionDiagnostic)]
90 #[derive(SessionDiagnostic)]
98 #[derive(SessionDiagnostic)]
[all …]
H A Dsession-derive-errors.stderr1 error: `#[derive(SessionDiagnostic)]` can only be used on structs
12 error: `#[label = ...]` is not a valid SessionDiagnostic struct attribute
18 error: `#[suggestion = ...]` is not a valid SessionDiagnostic field attribute
59 LL | #[derive(SessionDiagnostic)]
67 …= note: this error originates in the derive macro `SessionDiagnostic` (in Nightly builds, run with…
72 LL | #[derive(SessionDiagnostic)]
79 …= note: this error originates in the derive macro `SessionDiagnostic` (in Nightly builds, run with…
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/
H A Derrors.rs2 use rustc_macros::SessionDiagnostic;
5 #[derive(SessionDiagnostic)]
16 #[derive(SessionDiagnostic)]
25 #[derive(SessionDiagnostic)]
38 #[derive(SessionDiagnostic)]
47 #[derive(SessionDiagnostic)]
59 #[derive(SessionDiagnostic)]
67 #[derive(SessionDiagnostic)]
78 #[derive(SessionDiagnostic)]
87 #[derive(SessionDiagnostic)]
[all …]
/dports/lang/rust/rustc-1.58.1-src/src/doc/rustc-dev-guide/src/diagnostics/
H A Dsessiondiagnostic.md1 # Creating Errors With SessionDiagnostic
3 The SessionDiagnostic derive macro gives an alternate way to the DiagnosticBuilder API for defining
14 #[derive(SessionDiagnostic)]
32 We see that using `SessionDiagnostic` is relatively straight forward. The `#[error = "..."]`
39 impl SessionDiagnostic for FieldAlreadyDeclared {
67 Below is a listing of all the currently-available attributes that `#[derive(SessionDiagnostic)]`
89 #[derive(SessionDiagnostic)]
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_macros-718.0.0/src/
H A Dlib.rs42 [SessionDiagnostic, attributes(
H A Dsession_diagnostic.rs229 … gen impl<'__session_diagnostic_sess> rustc_session::SessionDiagnostic<'__session_diagnostic_sess> in into_tokens()
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_macros-722.0.0/src/
H A Dlib.rs42 [SessionDiagnostic, attributes(
H A Dsession_diagnostic.rs229 … gen impl<'__session_diagnostic_sess> rustc_session::SessionDiagnostic<'__session_diagnostic_sess> in into_tokens()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_macros/src/
H A Dlib.rs42 [SessionDiagnostic, attributes(
H A Dsession_diagnostic.rs229 … gen impl<'__session_diagnostic_sess> rustc_session::SessionDiagnostic<'__session_diagnostic_sess> in into_tokens()
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_macros/src/
H A Dlib.rs42 [SessionDiagnostic, attributes(
H A Dsession_diagnostic.rs229 … gen impl<'__session_diagnostic_sess> rustc_session::SessionDiagnostic<'__session_diagnostic_sess> in into_tokens()
/dports/lang/rust/rustc-1.58.1-src/src/doc/rustc-dev-guide/src/
H A DSUMMARY.md134 - [Creating Errors With SessionDiagnostic](./diagnostics/sessiondiagnostic.md)
H A Ddiagnostics.md362 Alternatively, for less-complex diagnostics, the `SessionDiagnostic` derive
363 macro can be used -- see [Creating Errors With SessionDiagnostic][sessiondiagnostic].
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_session/src/
H A Dsession.rs221 pub trait SessionDiagnostic<'a> { interface
399 pub fn emit_err<'a>(&'a self, err: impl SessionDiagnostic<'a>) { in emit_err()
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_session-722.0.0/src/
H A Dsession.rs249 pub trait SessionDiagnostic<'a> { interface
452 pub fn emit_err<'a>(&'a self, err: impl SessionDiagnostic<'a>) { in emit_err()
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_session-718.0.0/src/
H A Dsession.rs250 pub trait SessionDiagnostic<'a> { trait
453 pub fn emit_err<'a>(&'a self, err: impl SessionDiagnostic<'a>) { in emit_err()
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_session/src/
H A Dsession.rs249 pub trait SessionDiagnostic<'a> { interface
452 pub fn emit_err<'a>(&'a self, err: impl SessionDiagnostic<'a>) { in emit_err()