-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
crash ./ui/trivial-bounds/trivial-bounds-inconsistent.rs #3969
Comments
I'm not sure if that's a bug in Clippy. As far as I can tell, we do everything right when creating the MIR: fn check_fn(
&mut self,
cx: &LateContext<'a, 'tcx>,
_: FnKind<'tcx>,
_: &'tcx FnDecl,
body: &'tcx Body,
span: Span,
_: HirId,
) {
let def_id = cx.tcx.hir().body_owner_def_id(body.id());
let mir = cx.tcx.optimized_mir(def_id);
// crash here ^
} With the example code the crash happens in every place where we call I think this may related to rust-lang/rust#54114 and I bet it will also fail in rustc if cc @oli-obk |
Oh, maybe we should just use |
It's likely that won't work, as
I just checked the backtraces. This ICE is happening in |
Looks like this no longer crashes. |
add testcase that no longer ICEs Fixes #3969 changelog: none
…shearth add testcase that no longer ICEs Fixes rust-lang#3969 changelog: none
#3142
code from rust src/test/trivial-bounds/trivial-bounds-inconsistent.rs
clippy 0.0.212 (37f5c1e 2019-04-09)
The text was updated successfully, but these errors were encountered: