This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
10055fb03a
rust
/
tests
/
ui
/
cancel-clean-via-immediate-rvalue-ref.rs
10 lines
110 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
librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, except for `~str`/`~[]`. Note that `~self` still remains, since I forgot to add support for `Box<self>` before the snapshot. How to update your code: * Instead of `~EXPR`, you should write `box EXPR`. * Instead of `~TYPE`, you should write `Box<Type>`. * Instead of `~PATTERN`, you should write `box PATTERN`. [breaking-change]
2014-05-05 18:56:44 -07:00
fn
foo
(
x
:
&
mut
Box
<
u8
>
)
{
Remove box syntax from most places in src/test outside of the issues dir
2021-08-25 02:39:40 +02:00
*
x
=
Box
::
new
(
5
)
;
partially fix immediate rvalues The code generation previously assumed a reference could not alter the value in a way the destructor would notice. This is an incorrect assumption for `&mut`, and is also incorrect for an `&` pointer to a non-`Freeze` type. Closes #7972
2013-10-17 03:43:22 -04:00
}
pub
fn
main
(
)
{
Remove box syntax from most places in src/test outside of the issues dir
2021-08-25 02:39:40 +02:00
foo
(
&
mut
Box
::
new
(
4
)
)
;
partially fix immediate rvalues The code generation previously assumed a reference could not alter the value in a way the destructor would notice. This is an incorrect assumption for `&mut`, and is also incorrect for an `&` pointer to a non-`Freeze` type. Closes #7972
2013-10-17 03:43:22 -04:00
}
Copy permalink