You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
I'm a bit puzzled about the second proposed function signature (for zip), as this doesn't allow the copy of v[i] and u[i] in vec::zip -- was your intention for zip to return a vector of pairs of references?
My thought was if zip owned its input, it would consume them when it put the elements in the new vector. something like:
pure fn zip<T, U>(+v: ~[const T], +u: ~[const U]) -> ~[(T, U)] {
let i = len(v);
assert i == len(u);
let w = ~[];
while i > 0 {
push(w, (pop(v),pop(u)));
}
reverse(w);
w
}
- Contracts cannot duplicate some attributes. I think we need a better
solution than just duplicate all attributes, but for now just filter the
ones we know are problematic.
- Do not make contract generated functions `const` when annotating
constant functions.
- I also moved the compilation of no_core up since it is much faster.
## Call-out
Need to add a test.
Resolvesrust-lang#3251Resolvesrust-lang#3254
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Currently we have:
Produces an "instantiating copy type parameter" warning when building stdtest.
We could instead have:
The text was updated successfully, but these errors were encountered: