Comments (5)
Hey, thanks for your report! This seems to be an incremental compilation bug.
Unfortunately I'm unable to reproduce this as is. Below are my exact steps.
If you are able to consistently reproduce this ICE when renaming the trait,
please tell us the reproduction steps in as much detail as possible. Thanks! :)
git clone https://github.com/tower120/hi_sparse_array.git
cd hi_sparse_array
git checkout 5910c9352d3494084514f68d6a0f684324dea83a
rustup install nightly-2024-05-07 --profile minimal
cargo +nightly-2024-05-07 build
sed -i 's/\bMaybeEmpty\b/Empty/g' **/*.rs
cargo +nightly-2024-05-07 build
from rust.
I also tried
\b(?<!\[)MaybeEmpty\b
→Empty
with VS Code search & replace, i.e., every occurrence except intra-doc links like[MaybeEmpty]
- rust-analyzer's rename
sed -i 's/\bMaybeEmpty\b/Empty/g' src/lib.rs
(crate root only)
to no avail
from rust.
I used RustRover for rename. And compiled with CTRL+F9. Also cargo test --tests
.
I get such ICE's from time to time, but not consistently. I also CONSTANTLY loose debug capabilities in random files of project. Both VSCode and RustRover says something like "debuggable file does not have debug info" or that it mismatch.
There is bench.bat
in project, It compiles and run project with target-cpu=native
. Maybe that is the reason? Maybe build system somehow mess with different build configs?
I also have several chains - nightly, stable, and some 1.7x. Project requires nightly mode (but not nightly chain), and I think I changed default chain previously...
from rust.
Maybe you could walk several revision back from master, and then incrementally one-by-one go forth and try to compile, bench and test at each revision. That rename is in master branch now.
from rust.
I couldn't reproduce it either, but I think #126409 might help to deal with that.
from rust.
Related Issues (20)
- ICE: `None` in `compiler/rustc_middle/src/ty/sty.rs` HOT 9
- Strictly proof not tainted by errors in `TypeckResults` HOT 5
- Tracking Issue for is_none_or HOT 4
- ICE: `unmatched arg and hir arg: found '?1 vs Type` HOT 1
- TAIT feature is broken HOT 6
- ICE: `inconsistent resolution for an import` HOT 3
- ICE: `could not find allocation for alloc3` HOT 4
- `./x fmt --all` is not idempotent HOT 2
- APITIT get treated as ordinary params in "not all trait impls implemented" error HOT 1
- `core::ptr::copy` unsafe precondition message is for `core::ptr::copy_nonoverlapping` instead
- Potential overflow in the calculation of complex trait bounds involving tuples HOT 1
- TAIT: type parameter `impl FnOnce()` is part of concrete type but not used in parameter list for the `impl Trait` type alias HOT 4
- Weird diagnostic for recursion in const fn HOT 1
- Struct update syntax doesn't reborrow mut references HOT 4
- panic during codegen/LLVM phase HOT 2
- ICE: `relating different kinds` HOT 3
- ICE: `Tried to make Ignore indirect` HOT 1
- Bad codegen using `u16::to/from_be_bytes` HOT 1
- eprintln prints to stdout in a test HOT 9
- `struct` documentation should include `Sized` in the listed auto trait implementations HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.