error: internal compiler error: librustc/infer/canonical.rs:695: failed to lift
QueryResult { var_values: CanonicalVarValues { var_values: ['?0, '?1, '?2] }, region_constraints: [Binder(OutlivesPredicate('?0, '?0)), Binder(OutlivesPredicate('?0, '?0)), Binder(OutlivesPredicate('?0, '?0)), Binder(OutlivesPredicate('?0, '?0)), Binder(OutlivesPredicate(ReStatic, '?2))], certainty: Proven, value: NormalizationResult { normalized_ty: Input<'_> } }
, canonicalized fromQueryResult { var_values: CanonicalVarValues { var_values: ['_#0r, '_#1r, '_#2r] }, region_constraints: [Binder(OutlivesPredicate('_#0r, '_#3r)), Binder(OutlivesPredicate('_#0r, '_#4r)), Binder(OutlivesPredicate('_#3r, '_#0r)), Binder(OutlivesPredicate('_#4r, '_#0r)), Binder(OutlivesPredicate(ReStatic, '_#2r))], certainty: Proven, value: NormalizationResult { normalized_ty: Input<'_> } }
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time: 0.004; rss: 45MB parsing | |
time: 0.000; rss: 46MB garbage collect incremental cache directory | |
time: 0.000; rss: 46MB recursion limit | |
time: 0.000; rss: 46MB crate injection | |
time: 0.000; rss: 46MB plugin loading | |
time: 0.000; rss: 46MB plugin registration | |
time: 0.019; rss: 84MB background load prev dep-graph | |
time: 0.266; rss: 139MB expand crate | |
time: 0.000; rss: 139MB check unused macros | |
time: 0.266; rss: 139MB expansion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; SPIR-V | |
; Version: 1.0 | |
; Generator: Google rspirv; 0 | |
; Bound: 64 | |
; Schema: 0 | |
OpCapability Shader | |
%1 = OpExtInstImport "GLSL.std.450" | |
OpMemoryModel Logical GLSL450 | |
OpEntryPoint GLCompute %2 "compute" %12 | |
OpExecutionMode %2 LocalSize 1 1 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[spirv(runtime_array_get)] | |
fn runtime_array_get<T, R>(data: T, index: usize) -> R { | |
panic!() | |
} | |
impl<T> RuntimeArray<T> { | |
pub fn get(&self, index: usize) -> T { | |
runtime_array_get(self, index) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let Some(def_id) = ty.ty_to_def_id() { | |
println!("{:?}", ty); | |
let table = self.tcx.impl_trait_ref(def_id); | |
println!("{:?}", table); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub trait SpirvVector { | |
type Intrinsic: Intrinsic; | |
} | |
unsafe trait Intrinsic {} | |
// This type has the metainformation | |
#[spirv(Vector3)] | |
struct SpirvVec3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
class HelloWorld | |
{ | |
public static void main(String[] args) | |
{ | |
String input = "John;27;\nPeter;22;"; | |
System.out.println("Input:"); | |
System.out.println(input); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.Math; // headers MUST be above the first class | |
import java.util.ArrayList; | |
// one class needs to have a main() method | |
public class HelloWorld | |
{ | |
// arguments are passed using the text field below this editor | |
public static void main(String[] args) | |
{ | |
Persons p = new Persons("John;27;\nPeter;22;"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn as_start_named(&self, name: &str) -> Option<&Start> { | |
self.as_start() | |
.into_iter() | |
.filter(|start| start.name == name) | |
.next() | |
} |