Skip to content
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

Unexpected panic with cgmath #48551

Closed
ghost opened this issue Feb 26, 2018 · 2 comments
Closed

Unexpected panic with cgmath #48551

ghost opened this issue Feb 26, 2018 · 2 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@ghost
Copy link

ghost commented Feb 26, 2018

The command: cargo build
The version: rustc 1.26.0-nightly (322d7f7 2018-02-25)
The error:

   Compiling cgmath v0.16.0
   Compiling rusqlite v0.13.0
   Compiling target_build_utils v0.3.1
thread 'rustc' panicked at 'assertion failed: `(left != right)`
  left: `ParamEnv(Binder(ProjectionPredicate(ProjectionTy { substs: Slice([S, S]), item_def_id: DefId(2/0:885 ~ core[ffe9]::ops[0]::arith[0]::Add[0]::Output[0]) }, S)))`,
 right: `ParamEnv(Binder(ProjectionPredicate(ProjectionTy { substs: Slice([S, S]), item_def_id: DefId(2/0:885 ~ core[ffe9]::ops[0]::arith[0]::Add[0]::Output[0]) }, S)))`', librustc/traits/project.rs:146:17
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at libstd/sys_common/backtrace.rs:59
             at libstd/panicking.rs:206
   3: std::panicking::default_hook
             at libstd/panicking.rs:222
   4: core::ops::function::Fn::call
   5: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:401
   6: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:347
   7: rustc::traits::project::ProjectionTyCandidateSet::push_candidate
   8: rustc::traits::project::opt_normalize_projection_type
   9: rustc::traits::project::poly_project_and_unify_type::{{closure}}
  10: rustc::traits::project::poly_project_and_unify_type
  11: <rustc::traits::fulfill::FulfillProcessor<'a, 'b, 'gcx, 'tcx> as rustc_data_structures::obligation_forest::ObligationProcessor>::process_obligation
  12: rustc::traits::fulfill::FulfillmentContext::select
  13: rustc::traits::fulfill::FulfillmentContext::select_all_or_error
  14: rustc_typeck::check::compare_method::compare_predicate_entailment
  15: rustc_typeck::check::check_impl_items_against_trait
  16: rustc_typeck::check::check_item_type
  17: rustc_typeck::check_crate::{{closure}}
  18: rustc_typeck::check_crate
  19: rustc::ty::context::TyCtxt::create_and_enter
  20: rustc_driver::driver::compile_input
  21: rustc_driver::run_compiler

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.26.0-nightly (322d7f7b9 2018-02-25) running on x86_64-unknown-linux-gnu

error: Could not compile `cgmath`.
warning: build failed, waiting for other jobs to finish...
error: build failed
@Xaeroxe
Copy link
Contributor

Xaeroxe commented Feb 26, 2018

Can confirm, amethyst is seeing this in our builds too.

@ishitatsuyuki
Copy link
Contributor

Regression in #48296. I will investigate.

@frewsxcv frewsxcv added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Feb 27, 2018
bors added a commit that referenced this issue Feb 27, 2018
ishitatsuyuki added a commit to ishitatsuyuki/rust that referenced this issue Feb 28, 2018
Manishearth added a commit to Manishearth/rust that referenced this issue Mar 1, 2018
bors added a commit to rust-lang-ci/rust that referenced this issue Jan 17, 2021
…enkov

Move some tests to more reasonable directories - 2

All tests with a score equal or greater than 1.0 were moved to their respective directories by issuing

```bash
cat FILE | tr -s " " | tr -d '():' | sort -k3 | awk '$3 >= 1' | cut -d " " -f1-2 | sed 's;\\;/;g' | xargs -n2 git mv
```
**Observation**: The first column values is the only column with results greater zero

To attest the confidentiality of the model, some manual revision of at least of tests is needed and this process will be tracked in the following list:

* `src/test/ui/abi/issue-28676.rs` OK rust-lang#28676
* `src/test/ui/array-slice-vec/issue-15730.rs` OK
* `src/test/ui/associated-types/issue-24338.rs` OK rust-lang#54823
* `src/test/ui/associated-types/issue-48551.rs` Looks OK rust-lang#48551
* `src/test/ui/associated-types/issue-50301.rs` Looks OK rust-lang#63577

...

cc rust-lang#73494
r? `@petrochenkov`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants