Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBreaking Change - encode_utf8 destabilised #32460
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Note, discussion in the PR #32204 on the relevant lines. Appears that breakage was acknowledged and assumed to not have any impact. |
frewsxcv
referenced this issue
Mar 24, 2016
Merged
std: Change `encode_utf{8,16}` to return iterators #32204
bluss
added
the
regression-from-stable-to-nightly
label
Mar 24, 2016
This comment has been minimized.
This comment has been minimized.
|
It's a regression in the sense that it breaks / changes behavior of stable code (but this doesn't alone imply that, or imply that it not, needs to be fixed.) |
This comment has been minimized.
This comment has been minimized.
|
triage: I-nominated nominating for discussion in a libs triage meeting. @thepowersgang is this enough enough to work around for you? For example, do you have crates that build on stable which require this method? Ideally we could let this slide, but if the breakage is too much we'll just have to bite the bullet and revert. |
rust-highfive
added
the
I-nominated
label
Mar 24, 2016
alexcrichton
added
the
T-libs
label
Mar 24, 2016
This comment has been minimized.
This comment has been minimized.
|
The only breakage I had was on a nightly-only project, I just noted that I needed to add a feature flag to a crate that didn't need any originally (so no real problem at all). I just created this ticket to make sure that it was noticed and properly documented. |
This comment has been minimized.
This comment has been minimized.
|
Ok, thanks for the info and heads up! We'll discuss this at the next meeting and can decide what to do. |
This comment has been minimized.
This comment has been minimized.
|
Note - I am all for the new API, so if this change doesn't impact anyone else then probably just as good to keep it. |
This comment has been minimized.
This comment has been minimized.
|
The libs team discussed this regression during triage today and the decision was that this is acceptable for now. This is a clear case of fixing a bug. We'll do a crater run to analyze more crates and see what pops up, though. |
thepowersgang commentedMar 24, 2016
The change 2b3c5ac converted
char::encode_utf8from a stable method of an unstable trait to an unstable method.The trait
CharExtis imported as part of libcore's prelude, which can be done on the stable build (see https://play.rust-lang.org/?gist=7320c1273bdc3dde5450&version=stable).Under current nightly, the same code fails to compile due to this same API.
This is technically a regression, and may need a crater run to check if it breaks anything (unlikely), and may need closer scrutiny.