-
Currently, the ADT field analysis, which finds pointers within ADTs that may require lifetime parameters, runs multiple times, even though (as I understand it) the inputs and outputs are identical eac…
-
# Implementation of the Counting Immutable Beans (CIB) for the GRIN compiler.
# Summary
CIB uses instrumentation of the original program. There are four new instructions in the syntax
that are in…
-
### Code
```Rust
#![feature(coerce_unsized)]
use std::ops;
trait Trait3 {}
impl ops::CoerceUnsized for A where A: ?Sized {}
fn main() {
println!("Hello, world!");
}
```
Command: `rustc ./03FC…
-
snippet:
````rust
use std::fmt::Debug;
static STATIC_1: dyn Debug + Sync = *();
fn main() {
println!("{:?}", &STATIC_1);
}
````
Version information
````
rustc 1.78.0-dev
b…
-
`analysis/test` contains many int-to-ptr casts for null pointers, like `0 as *const _` and `0 as *mut _`. These use `ptr::from_exposed_addr` as part of strict provenance. Since we don't actually nee…
-
We need to resolve the open question on:
- https://github.com/rust-lang/rfcs/pull/3621
...regarding what name to use for the thing formerly known an `#[derive(SmartPtr)]` or `#[derive(SmartPointer)]…
-
## Summary
Add an experimental compiler feature / flag to add call graph information, in
the form of LLVM metadata, to the LLVM IR (`.ll`) files produced by the
compiler.
## Motivation
(Th…
-
References to constants are not guaranteed to have unique addresses:
```rust
assert!(&2 as *const i32 != &2 as *const i32); // fails
```
Since `const`s are just aliases, the same holds for those:
…
comex updated
2 weeks ago
-
Right now, Corrode translates C pointer types to `*const T` or `*mut T` (the raw pointer types) or `unsafe extern fn(...)` (for function pointers). This has some issues around null pointers.
Rust's r…
-
auto-reduced (treereduce-rust):
````rust
#![feature(generic_const_exprs, unsized_const_params, adt_const_params)]
fn function() -> u32 {
17
}
struct Wrapper u32>;
imp…