Philip Herron

Results 49 issues of Philip Herron

This is an interesting testcase thanks to @bjorn3 Related Bugs: - [ ] #1048 - [x] #1125 - [ ] #1126 - [ ] #1127 - [x] #1237 - [...

There is a rust project here: https://github.com/BLAKE3-team/BLAKE3/blob/master/reference_impl/reference_impl.rs Which is a nice simple test case of rust which does not require much of the stdlib and no macros or attributes. This...

plan
Rust Integrations
important

I tried this code: ```rust fn test() { for i in 0..10 { } } ``` I expected to see this happen: compile without error Instead, this happened: ``` :2:3:...

bug

These declarations don't have any meaning in the HIR as these statements are used during name resolution which contain AST::SimplePaths which can be fully resolved at that stage.

cleanup

### Code https://github.com/rust-lang/rust/blob/2595d038273a4c7746320efd06200764f99bd760/src/test/ui/qualified/qualified-path-params-2.rs ```rust struct S; trait Tr { type A; } impl Tr for S { type A = S; } impl S { fn f() {} } type...

bug

I tried this code: ```rust pub enum Result { #[lang = "Ok"] Ok(T), #[lang = "Err"] Err(E), } fn main() { let result = Ok(123); let err = Err(false); }...

I tried this code: ```rust extern "C" { fn printf(s: *const i8, ...); } struct Foo(i32); trait Bar { fn baz(&self); } trait Baz : Bar { fn qux(&self); }...

bug

GCC has plenty of builtin_overflow functions ADA has overflow traps akin to rust so we should be able to port this function: https://github.com/Rust-GCC/gccrs/blob/c7275a7fb89f324e7cd7881d12a49287a89f1c74/gcc/ada/gcc-interface/trans.cc#L9531-L9726

enhancement

I tried this code: ```rust union B { a: A, b: f32 } struct A { data: i32, len: usize, } ``` I expected to see this happen: compile without...

bug

https://github.com/rust-lang/rust/blob/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/core/src/ptr/const_ptr.rs#L888 It works if we write it as: ``` pub const fn len(self) -> usize { // SAFETY: this is safe because `*const [T]` and `FatPtr` have the same layout....

bug
parser