Skip to content

Commit 5a98796

Browse files
Update error messages
1 parent 9345818 commit 5a98796

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

hax-types/src/diagnostics/mod.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,13 @@ pub struct Diagnostics {
1616
impl std::fmt::Display for Diagnostics {
1717
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1818
match &self.kind {
19-
Kind::Unimplemented { issue_id, details } => write!(
19+
Kind::Unimplemented { issue_id:_, details } => write!(
2020
f,
21-
"something is not implemented yet.{}{}",
22-
match issue_id {
23-
Some(id) => format!("This is discussed in issue https://github.com/hacspec/hax/issues/{id}.\nPlease upvote or comment this issue if you see this error message."),
24-
_ => "".to_string(),
25-
},
21+
"something is not implemented yet.{}",
2622
match details {
2723
Some(details) => format!("\n{}", details),
2824
_ => "".to_string(),
29-
}
25+
},
3026
),
3127
Kind::UnsupportedMacro { id } => write!(
3228
f,

rust-engine/src/printer/pretty_ast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ impl<'a, 'b, A: 'a + Clone, P: PrettyAst<'a, 'b, A>, T: 'b + serde::Serialize> P
114114
/// ## Examples:
115115
/// - `todo_document!(allocator)`
116116
/// - `todo_document!(allocator, "This is a todo")`
117-
/// - `todo_document!(allocator, issue #42)`
118-
/// - `todo_document!(allocator, issue #42, "This is a todo")`
117+
/// - `todo_document!(allocator, issue 42)`
118+
/// - `todo_document!(allocator, issue 42, "This is a todo")`
119119
macro_rules! todo_document {
120120
($allocator:ident, issue $issue:literal) => {
121121
{return $allocator.todo_document(&format!("TODO_LINE_{}", std::line!()), Some($issue));}

0 commit comments

Comments
 (0)