-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE/Panic in clippy_lints::functions::Functions #3747
Comments
phansch
added
I-ICE
Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
T-macros
Type: Issues with macros and macro expansion
labels
Feb 6, 2019
Thanks for the report and testcase! |
Further reduced: macro_rules! a {
( $pub:tt $($attr:tt)* ) => {
$($attr)* $pub fn say_hello() {}
};
}
macro_rules! b {
() => { a! { pub } };
}
b! {} This crashes on the playground, but for some reason I couldn't reproduce locally. |
@jfirebaugh it does panic with nightly-2019-02-07:
|
This was referenced Feb 23, 2019
Merged
bors
added a commit
that referenced
this issue
Feb 25, 2019
Fix ICE #3747 I'm not sure if this was the correct approach. I don't know if I put tests/ui/crashses/ice-3747.rs in correct place because the test always passed when I ran it with `cargo test`, even without the fix applied. If I run that test with `env CLIPPY_TESTS=true cargo run --bin clippy-driver -- -L ./target/debug tests/ui/crashes/ice-3747.rs` then the test correctly fails without the fix applied fixes #3747
phansch
added a commit
to phansch/rust-clippy
that referenced
this issue
Apr 13, 2019
repo link: https://github.com/Marwes/combine `combine` uses a lot of macros internally, has been downloaded more than 200_000 times and is also a dependency of [`redis-rs`](https://crates.io/crates/redis). Clippy also previously ICEd on combine in rust-lang#3747 so I think it would be good to have this crate as an integration test.
bors
added a commit
that referenced
this issue
Apr 13, 2019
Add Marwes/combine to integration tests repo link: https://github.com/Marwes/combine `combine` uses a lot of macros internally, has been downloaded more than 200_000 times and is also a dependency of [`redis-rs`](https://crates.io/crates/redis). Clippy also previously ICEd on combine in #3747 so I think it would be good to have this crate as an integration test.
bors
added a commit
that referenced
this issue
Apr 14, 2019
Add Marwes/combine to integration tests repo link: https://github.com/Marwes/combine `combine` uses a lot of macros internally, has been downloaded more than 200_000 times and is also a dependency of [`redis-rs`](https://crates.io/crates/redis). Clippy also previously ICEd on combine in #3747 so I think it would be good to have this crate as an integration test.
bors
added a commit
that referenced
this issue
Apr 14, 2019
Add Marwes/combine to integration tests repo link: https://github.com/Marwes/combine `combine` uses a lot of macros internally, has been downloaded more than 200_000 times and is also a dependency of [`redis-rs`](https://crates.io/crates/redis). Clippy also previously ICEd on combine in #3747 so I think it would be good to have this crate as an integration test.
bors
added a commit
that referenced
this issue
Apr 14, 2019
Add Marwes/combine to integration tests repo link: https://github.com/Marwes/combine `combine` uses a lot of macros internally, has been downloaded more than 200_000 times and is also a dependency of [`redis-rs`](https://crates.io/crates/redis). Clippy also previously ICEd on combine in #3747 so I think it would be good to have this crate as an integration test.
Manishearth
pushed a commit
that referenced
this issue
Apr 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running
cargo clippy
on https://github.com/Marwes/combine commit: d102591Clippy fails with an error: "error: internal compiler error: unexpected panic"
rustc 1.34.0-nightly (4b1e39b 2019-02-05)
cargo 1.34.0-nightly (245818076 2019-01-27)
clippy 0.0.212 (3bda548 2019-02-03)
RUST_BACKTRACE=full cargo clippy --verbose
Test case
cargo run
RUST_BACKTRACE=full cargo clippy --verbose
The text was updated successfully, but these errors were encountered: