This website requires JavaScript.
Explore
Help
Sign in
mathieu
/
os-rust
Watch
1
Star
0
Fork
You've already forked os-rust
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
9fc6b43126
os-rust
/
tests
/
ui
/
borrowck
/
borrowck-init-op-equal.rs
9 lines
90 B
Rust
Raw
Normal View
History
Unescape
Escape
improve liveness so it reports unused vars / dead assignments doesn't warn about pattern bindings yet though
2012-05-23 20:53:49 -07:00
fn
test
(
)
{
Update compile fail tests to use isize.
2015-01-08 21:54:35 +11:00
let
v
:
isize
;
On partial uninit error point at where we need init When a binding is declared without a value, borrowck verifies that all codepaths have *one* assignment to them to initialize them fully. If there are any cases where a condition can be met that leaves the binding uninitialized or we attempt to initialize a field of an unitialized binding, we emit E0381. We now look at all the statements that initialize the binding, and use them to explore branching code paths that *don't* and point at them. If we find *no* potential places where an assignment to the binding might be missing, we display the spans of all the existing initializers to provide some context.
2022-06-21 11:57:45 -07:00
v
+
=
1
;
//~ ERROR E0381
librustc: Remove all uses of "copy".
2013-07-02 12:47:32 -07:00
v
.
clone
(
)
;
new liveness pass to supercede last_use / initedness
2012-05-19 05:52:01 -07:00
}
fn
main
(
)
{
}
Reference in a new issue
Copy permalink