Skip to content

Commit 4fcba0d

Browse files
committed
remove panic ambiguity, release 0.0.1
1 parent 367c5a6 commit 4fcba0d

8 files changed

+9
-9
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "match_box"
3-
version = "0.0.0"
3+
version = "0.0.1"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "`box` and deref patterns in \"match\" for stable Rust. Now you can match through `Box`, `Rc`, etc."

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ fn match_box_impl(mut m: syn::ExprMatch) -> syn::ExprMatch {
173173
*arm.body = tower(
174174
&my_fold.binds,
175175
*arm.body,
176-
&syn::parse_quote_spanned! {span=> panic!("Two invocations of Deref::deref returned different outputs on same inputs") },
176+
&syn::parse_quote_spanned! {span=> ::core::panic!("Two invocations of Deref::deref returned different outputs on same inputs") },
177177
false,
178178
);
179179
}

src/snapshots/match_box__test__basic-2.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ fn main() {
1616
if let x = &**a0 {
1717
{}
1818
} else {
19-
panic!(
19+
::core::panic!(
2020
"Two invocations of Deref::deref returned different outputs on same inputs",
2121
)
2222
}
2323
} else {
24-
panic!(
24+
::core::panic!(
2525
"Two invocations of Deref::deref returned different outputs on same inputs",
2626
)
2727
}

src/snapshots/match_box__test__bindings.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
if let b @ () = &**a0 {
1111
{}
1212
} else {
13-
panic!(
13+
::core::panic!(
1414
"Two invocations of Deref::deref returned different outputs on same inputs",
1515
)
1616
}

src/snapshots/match_box__test__guards.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
if let x = &**a0 {
1111
()
1212
} else {
13-
panic!(
13+
::core::panic!(
1414
"Two invocations of Deref::deref returned different outputs on same inputs",
1515
)
1616
}

src/snapshots/match_box__test__other.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
if let x = &**a0 {
99
()
1010
} else {
11-
panic!(
11+
::core::panic!(
1212
"Two invocations of Deref::deref returned different outputs on same inputs",
1313
)
1414
}

src/snapshots/match_box__test__spelling.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
if let x = &**a0 {
99
()
1010
} else {
11-
panic!(
11+
::core::panic!(
1212
"Two invocations of Deref::deref returned different outputs on same inputs",
1313
)
1414
}

0 commit comments

Comments
 (0)