Home
last modified time | relevance | path

Searched refs:with_message (Results 1 – 9 of 9) sorted by relevance

/third_party/rust/crates/codespan/codespan-reporting/tests/
Dterm.rs136 .with_message("cannot borrow `v` as mutable more than once at a time")
139 .with_message("second mutable borrow occurs here"),
141 .with_message("first borrow later used by call"),
143 .with_message("first mutable borrow occurs here"),
146 .with_message("aborting due to previous error")
244 .with_message("nested `impl Trait` is not allowed")
247 .with_message("nested `impl Trait` here"),
249 .with_message("outer `impl Trait`"),
253 … .with_message("the type placeholder `_` is not allowed within types on item signatures")
256 .with_message("not allowed in type signatures"),
[all …]
/third_party/rust/crates/codespan/codespan-reporting/examples/
Dterm.rs97 .with_message("unknown builtin: `NATRAL`") in main()
99 Label::primary(file_id1, 96..102).with_message("unknown builtin") in main()
106 .with_message("unused parameter pattern: `n₂`") in main()
108 Label::primary(file_id1, 285..289).with_message("unused parameter") in main()
113 .with_message("unexpected type in application of `_+_`") in main()
116 Label::primary(file_id2, 37..44).with_message("expected `Nat`, found `String`"), in main()
118 .with_message("based on the definition of `_+_`"), in main()
128 .with_message("`case` clauses have incompatible types") in main()
131 Label::primary(file_id3, 163..166).with_message("expected `String`, found `Nat`"), in main()
133 .with_message("`case` clauses have incompatible types"), in main()
[all …]
Dreusable_diagnostic.rs62 .with_message("mismatch types") in report()
64 Label::primary((), right.range.clone()).with_message(format!( in report()
68 Label::secondary((), left.range.clone()).with_message("expected due to this"), in report()
72 .with_message(format!( in report()
77 Label::secondary((), original.range.clone()).with_message(unindent::unindent( in report()
87 .with_message("cannot assign twice to immutable variable"), in report()
Dreadme_preview.rs62 .with_message("`case` clauses have incompatible types") in main()
65 Label::primary((), 328..331).with_message("expected `String`, found `Nat`"), in main()
66 Label::secondary((), 211..331).with_message("`case` clauses have incompatible types"), in main()
67 Label::secondary((), 258..268).with_message("this is found to be of type `String`"), in main()
68 Label::secondary((), 284..290).with_message("this is found to be of type `String`"), in main()
69 Label::secondary((), 306..312).with_message("this is found to be of type `String`"), in main()
70 Label::secondary((), 186..192).with_message("expected type `String` found here"), in main()
Dcustom_files.rs171 .with_message("greetings are not allowed") in to_diagnostic()
176 Label::primary(*file_id, range.clone()).with_message("a greeting") in to_diagnostic()
185 .with_message("over-the-top exclamations") in to_diagnostic()
190 Label::primary(*file_id, range.clone()).with_message("an exclamation") in to_diagnostic()
Dpeg_calculator.rs58 .with_message("parse error") in main()
60 Label::primary((), start..start).with_message("parse error") in main()
/third_party/rust/crates/codespan/
DREADME.md73 .with_message("`case` clauses have incompatible types")
76 Label::primary(file_id, 328..331).with_message("expected `String`, found `Nat`"),
77 Label::secondary(file_id, 211..331).with_message("`case` clauses have incompatible types"),
78 Label::secondary(file_id, 258..268).with_message("this is found to be of type `String`"),
79 Label::secondary(file_id, 284..290).with_message("this is found to be of type `String`"),
80 Label::secondary(file_id, 306..312).with_message("this is found to be of type `String`"),
81 Label::secondary(file_id, 186..192).with_message("expected type `String` found here"),
/third_party/rust/crates/codespan/codespan-reporting/src/
Ddiagnostic.rs107 pub fn with_message(mut self, message: impl Into<String>) -> Label<FileId> { in with_message() method
193 pub fn with_message(mut self, message: impl Into<String>) -> Diagnostic<FileId> { in with_message() method
/third_party/rust/crates/cxx/gen/src/
Derror.rs163 let mut diagnostic = Diagnostic::error().with_message(&message); in diagnose()