This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
990039ec53
rust
/
tests
/
ui
/
issues
/
issue-3091.rs
8 lines
86 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
rustdoc: Replace no-pretty-expanded with pretty-expanded Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-22 13:13:15 -07:00
check-fast fallout from removing export, r=burningtree
2013-02-01 19:43:17 -08:00
pub
fn
main
(
)
{
Remove all `i` suffixes
2015-01-25 22:05:03 +01:00
let
x
=
1
;
let
y
=
1
;
Use assert_eq! rather than assert! where possible
2013-05-18 22:02:45 -04:00
assert_eq!
(
&
x
,
&
y
)
;
Make comparisons between region pointers work Region pointers were considered a scalar type, so compare_scalar_type would get called to compare region pointers in trans. This would fail, since compare_scalar_type has no case for region pointers. Changed type_is_scalar to return false for region pointers. This had the side effect of breaking casts to types of the form &T. To ameliorate that, I added library functions ptr::assimilate (taking a &T to a *T) and ptr::to_uint (taking a &T to a uint), both of which use reinterpret_cast. While I was at it, I removed ty::type_has_resources, which is dead code.
2012-08-02 14:23:04 -07:00
}
Copy permalink