-
https://godbolt.org/z/3bxKGWver
### Code
```rust
union MyUnion {
f1: u32,
}
fn f(u: MyUnion) -> i32 {
unsafe {
match u {
MyUnion { f1: 10 } => { 0 }
…
-
With the following directory structure
```
test.rs
foo/
mod.rs
bar.rs
```
and the following files:
```rust
// test.rs
pub mod foo;
use foo::bar::f;
fn main() {
f()
…
-
Hi.
This is a continuation of [this Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Infinite.20recursion.20in.20compiler-builtins) as it seems this mig…
-
target.json in question:
```
{
"arch": "mips64r5",
"data-layout": "e-m:m-p:64:32-i8:8:32-i16:16:32-i64:64-n32-S64",
"dynamic-linking": false,
"executables": true,
"linker": "mipsel…
-
Just for fun, I tried enabling GCC/Rust in my GCC/nvptx target testing (see ).
As you'd hope, it generally works.
One issue, however, is that in our hacked-up `printf` test cases, we use:
…
-
Given:
- A crates index where all crates are no_std compatible
- A crate we want to build for bare metal which uses a proc macro that depends on some other crate that needs std (e.g.: `prost-types…
ernoc updated
2 weeks ago
-
I tried to build gcc-14 with rust enabled, but It fails to build.
It needs some changes to build
1 -
```diff
--- a/gcc/rust/checks/errors/borrowck/rust-borrow-checker.cc
+++ b/gcc/rust/checks/…
-
I tried this code:
```rust
macro_rules! impl_foo {
() => { impl Foo }
}
pub trait Foo {}
pub trait Bar {
type Baz;
}
pub fn foo(_value: impl Bar) -> i32 {
15
}
pub f…
-
I can't load the Lmod module for `bat` (a cat(1) replacement, written in Rust, PR pending #10837).
I think that there's an inconsistency where Spack isn't seeing `llvm` as a compiler but the module…
-
ghost updated
4 years ago