Bug 1494651 - Update encoding_rs to 0.8.7. r=m_kato

MozReview-Commit-ID: EB0wO4BxFAb

Differential Revision: https://phabricator.services.mozilla.com/D7087

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Henri Sivonen 2018-10-01 01:11:59 +00:00
Родитель 5446d62a9f
Коммит b779d7751c
8 изменённых файлов: 21 добавлений и 9 удалений

10
Cargo.lock сгенерированный
Просмотреть файл

@ -726,21 +726,21 @@ name = "encoding_c"
version = "0.9.0" version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [ dependencies = [
"encoding_rs 0.8.6 (registry+https://github.com/rust-lang/crates.io-index)", "encoding_rs 0.8.7 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]] [[package]]
name = "encoding_glue" name = "encoding_glue"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"encoding_rs 0.8.6 (registry+https://github.com/rust-lang/crates.io-index)", "encoding_rs 0.8.7 (registry+https://github.com/rust-lang/crates.io-index)",
"nserror 0.1.0", "nserror 0.1.0",
"nsstring 0.1.0", "nsstring 0.1.0",
] ]
[[package]] [[package]]
name = "encoding_rs" name = "encoding_rs"
version = "0.8.6" version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [ dependencies = [
"cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1584,7 +1584,7 @@ name = "nsstring"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
"encoding_rs 0.8.6 (registry+https://github.com/rust-lang/crates.io-index)", "encoding_rs 0.8.7 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]] [[package]]
@ -2980,7 +2980,7 @@ dependencies = [
"checksum either 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "18785c1ba806c258137c937e44ada9ee7e69a37e3c72077542cd2f069d78562a" "checksum either 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "18785c1ba806c258137c937e44ada9ee7e69a37e3c72077542cd2f069d78562a"
"checksum ena 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cabe5a5078ac8c506d3e4430763b1ba9b609b1286913e7d08e581d1c2de9b7e5" "checksum ena 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cabe5a5078ac8c506d3e4430763b1ba9b609b1286913e7d08e581d1c2de9b7e5"
"checksum encoding_c 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "769ecb8b33323998e482b218c0d13cd64c267609023b4b7ec3ee740714c318ee" "checksum encoding_c 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "769ecb8b33323998e482b218c0d13cd64c267609023b4b7ec3ee740714c318ee"
"checksum encoding_rs 0.8.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2a91912d6f37c6a8fef8a2316a862542d036f13c923ad518b5aca7bcaac7544c" "checksum encoding_rs 0.8.7 (registry+https://github.com/rust-lang/crates.io-index)" = "21a550ec129ca2f8593227888625c7c5331c6ad878e2cee6b7ac25e1c7d05746"
"checksum env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0561146661ae44c579e993456bc76d11ce1e0c7d745e57b2fa7146b6e49fa2ad" "checksum env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0561146661ae44c579e993456bc76d11ce1e0c7d745e57b2fa7146b6e49fa2ad"
"checksum error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff511d5dc435d703f4971bc399647c9bc38e20cb41452e3b9feb4765419ed3f3" "checksum error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff511d5dc435d703f4971bc399647c9bc38e20cb41452e3b9feb4765419ed3f3"
"checksum euclid 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)" = "70a2ebdf55fb9d6329046e026329a55ef8fbaae5ea833f56e170beb3125a8a5f" "checksum euclid 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)" = "70a2ebdf55fb9d6329046e026329a55ef8fbaae5ea833f56e170beb3125a8a5f"

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

5
third_party/rust/encoding_rs/.cargo_vcs_info.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,5 @@
{
"git": {
"sha1": "b67c60025bfebbf186e8b22f03edc9b6dc96df59"
}
}

2
third_party/rust/encoding_rs/Cargo.toml поставляемый
Просмотреть файл

@ -12,7 +12,7 @@
[package] [package]
name = "encoding_rs" name = "encoding_rs"
version = "0.8.6" version = "0.8.7"
authors = ["Henri Sivonen <hsivonen@hsivonen.fi>"] authors = ["Henri Sivonen <hsivonen@hsivonen.fi>"]
description = "A Gecko-oriented implementation of the Encoding Standard" description = "A Gecko-oriented implementation of the Encoding Standard"
homepage = "https://docs.rs/encoding_rs/" homepage = "https://docs.rs/encoding_rs/"

4
third_party/rust/encoding_rs/README.md поставляемый
Просмотреть файл

@ -244,6 +244,10 @@ used in Firefox.
## Release Notes ## Release Notes
### 0.8.7
* Fixed a panic in the UTF-16LE/UTF-16BE decoder when decoding to UTF-8.
### 0.8.6 ### 0.8.6
* Temporarily removed the debug assertion added in version 0.8.5 from * Temporarily removed the debug assertion added in version 0.8.5 from

3
third_party/rust/encoding_rs/src/handles.rs поставляемый
Просмотреть файл

@ -271,6 +271,9 @@ fn convert_unaligned_utf16_to_utf8<E: Endian>(
src: UnalignedU16Slice, src: UnalignedU16Slice,
dst: &mut [u8], dst: &mut [u8],
) -> (usize, usize, bool) { ) -> (usize, usize, bool) {
if dst.len() < 4 {
return (0, 0, false);
}
let mut src_pos = 0usize; let mut src_pos = 0usize;
let mut dst_pos = 0usize; let mut dst_pos = 0usize;
let src_len = src.len(); let src_len = src.len();

2
third_party/rust/encoding_rs/src/lib.rs поставляемый
Просмотреть файл

@ -8,7 +8,7 @@
// except according to those terms. // except according to those terms.
#![cfg_attr(feature = "cargo-clippy", allow(doc_markdown, inline_always, new_ret_no_self))] #![cfg_attr(feature = "cargo-clippy", allow(doc_markdown, inline_always, new_ret_no_self))]
#![doc(html_root_url = "https://docs.rs/encoding_rs/0.8.6")] #![doc(html_root_url = "https://docs.rs/encoding_rs/0.8.7")]
//! encoding_rs is a Gecko-oriented Free Software / Open Source implementation //! encoding_rs is a Gecko-oriented Free Software / Open Source implementation
//! of the [Encoding Standard](https://encoding.spec.whatwg.org/) in Rust. //! of the [Encoding Standard](https://encoding.spec.whatwg.org/) in Rust.

2
third_party/rust/encoding_rs/src/mem.rs поставляемый
Просмотреть файл

@ -1238,7 +1238,7 @@ pub fn is_str_bidi(buffer: &str) -> bool {
/// ///
/// Returns `true` if the input contains an RTL character or an unpaired /// Returns `true` if the input contains an RTL character or an unpaired
/// high surrogate that could be the high half of an RTL character. /// high surrogate that could be the high half of an RTL character.
/// Returns `false` if teh input contains neither RTL characters nor /// Returns `false` if the input contains neither RTL characters nor
/// unpaired high surrogates that could be higher halves of RTL characters. /// unpaired high surrogates that could be higher halves of RTL characters.
#[inline] #[inline]
pub fn is_utf16_bidi(buffer: &[u16]) -> bool { pub fn is_utf16_bidi(buffer: &[u16]) -> bool {