Comments (5)
env RUSTFLAGS="-Z treat-err-as-bug" RUST_BACKTRACE=1 cargo build
revealed that it is most likely the impl trait that causes this error. Sadly I use the impl trait feature pretty often.
from rlsl.
#0 [normalize_projection_ty] normalizing
Canonical { variables: Slice([CanonicalVarInfo { kind: Region }, CanonicalVarInfo { kind: Region }, CanonicalVarInfo { kind: Region }]), value: ParamEnvAnd { param_env: ParamEnv { caller_bounds: Slice([]), reveal: UserFacing }, value: ProjectionTy { substs: Slice([std::iter::FlatMap<std::slice::Iter<'_, EntryPoint<'_, '_>>, impl std::iter::Iterator, fn(&'_ EntryPoint<'_, '_>) -> impl std::iter::Iterator {EntryPoint<'_, '_>::input_iter}>]), item_def_id: DefId(2/0:1904 ~ core[fc79]::iter[0]::iterator[0]::Iterator[0]::Item[0]) } } }
#1 [mir_const] processing<Entry<'tcx, Input<'tcx>>>::input
#2 [mir_validated] processing<Entry<'tcx, Input<'tcx>>>::input
#3 [borrowck] processing<Entry<'tcx, Input<'tcx>>>::input
from rlsl.
After a long debugging session, I could reduce the error to the following lines
let set: HashSet<_> = entry_points
.iter()
.flat_map(EntryPoint::input_iter)
.collect();
Where input_iter
uses the impl trait
from rlsl.
Hm this seems to fix the error
let set: HashSet<_> = entry_points
.iter()
.flat_map(|entry| EntryPoint::input_iter(entry))
.collect();
from rlsl.
Fixed by eaf9edf
from rlsl.
Related Issues (20)
- Implement SwitchInt
- Generating storage buffers HOT 3
- Create a shim with rustup HOT 7
- build.rs should call rustc and not rlsl HOT 2
- Make compute shaders save
- Wrap spirv-val and spirv-opt
- Add support for proc macro
- Potentially implement a custom core library
- Map bool to u32 because OpTypeBool is abstract
- Support pointers in structs by expanding fields into separate variables HOT 2
- Some questions about future plans for RLSL HOT 1
- Collection of interesting examples that should be implemented with rlsl
- Extension mechanism? HOT 1
- Add SPIR-V extensions HOT 1
- Shader modules
- Entrypoint definition HOT 6
- Abstracting over arrays
- Installing a specific nightly version automatically
- Instructions for building rlsl from scratch
- Is this still alive? HOT 7
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 rlsl.