rust/src
bors 5965b79014 Auto merge of #47503 - arielb1:check-size, r=eddyb
avoid double-unsizing arrays in bytestring match lowering

The match lowering code, when lowering matches against bytestrings,
works by coercing both the scrutinee and the pattern to `&[u8]` and
then comparing them using `<[u8] as Eq>::eq`.

If the scrutinee is already of type `&[u8]`, then unsizing it is both
unneccessary and a trait error caught by the new and updated MIR typeck,
so this PR changes lowering to avoid doing that (match lowering tried to
avoid that before, but that attempt was quite broken).

Fixes #46920.

r? @eddyb
2018-01-19 10:18:52 +00:00
..
binaryen@1c9bf65aa0
bootstrap Auto merge of #47494 - michaelwoerister:proc-macro-incremental, r=nikomatsakis 2018-01-19 04:45:22 +00:00
build_helper Revert "Add a file to trivially disable tool building or testing" 2017-12-27 00:00:45 +08:00
ci Only enable CloudABI builds for x86-64 for now. 2018-01-16 23:21:51 +01:00
dlmalloc@d3812c3acc
doc Reexport -> re-export in documentation section headings 2018-01-15 13:36:52 -05:00
etc Correct the return type for `x86_mm256_sad_epu8` 2017-12-21 22:58:03 +00:00
grammar
jemalloc@1f5a28755e
liballoc Reexport -> re-export in prose and documentation comments 2018-01-15 13:36:53 -05:00
liballoc_jemalloc Add CloudABI to the list of systems on which we stub out alloc_jemalloc. 2017-12-30 10:00:35 +01:00
liballoc_system Build the right platform module on CloudABI. 2017-12-31 13:21:46 +01:00
libarena Rollup merge of #47069 - Kagamihime:master, r=nrc 2018-01-13 02:26:23 +08:00
libbacktrace
libcompiler_builtins@0ba07e4926 Update compiler_builtins 2017-12-26 22:22:21 -02:00
libcore Rollup merge of #47497 - goffrie:patch-1, r=dtolnay 2018-01-18 01:57:28 +08:00
libfmt_macros
libgetopts
libgraphviz Fix docs for future pulldown migration 2018-01-01 14:44:12 +01:00
liblibc@2b4cd1016b Upgrade liblibc to latest upstream version. 2018-01-08 16:59:15 +01:00
libpanic_abort Let libpanic_abort call into libc's abort() on CloudABI. 2018-01-05 22:16:54 +01:00
libpanic_unwind Make libpanic_unwind build on CloudABI. 2018-01-04 17:55:44 +01:00
libproc_macro Auto merge of #46551 - jseyfried:improve_legacy_modern_macro_interaction, r=nrc 2018-01-12 10:00:09 +00:00
libprofiler_builtins
librustc Auto merge of #47494 - michaelwoerister:proc-macro-incremental, r=nikomatsakis 2018-01-19 04:45:22 +00:00
librustc_allocator
librustc_apfloat Fix docs for future pulldown migration 2018-01-01 14:44:12 +01:00
librustc_asan
librustc_back Document the mingw -lmsvcrt hack better 2018-01-17 01:18:04 +02:00
librustc_binaryen
librustc_borrowck Do not suggest to make `mut` binding external to `Fn` closure 2018-01-15 14:19:33 -08:00
librustc_const_eval Use delay_span_bug() over debug!() 2018-01-13 00:54:56 +09:00
librustc_const_math rustc: use {U,I}size instead of {U,I}s shorthands. 2018-01-04 03:12:04 +02:00
librustc_cratesio_shim
librustc_data_structures Shorten names of some compiler generated artifacts. 2018-01-08 12:30:52 +01:00
librustc_driver Add `-Z dep-info-omit-d-target` to control dep-info style 2018-01-15 13:19:46 -08:00
librustc_errors Rollup merge of #47407 - gaurikholkar:master, r=estebank 2018-01-18 01:57:16 +08:00
librustc_incremental Remove `impl Foo for ..` in favor of `auto trait Foo` 2018-01-13 18:48:00 +03:00
librustc_lint in which the private no-mangle lints receive a valued lesson in humility 2018-01-16 00:31:43 -08:00
librustc_llvm rustc_trans: remove unused `TargetDataRef` accessor. 2018-01-14 08:52:16 +02:00
librustc_lsan
librustc_metadata Auto merge of #47494 - michaelwoerister:proc-macro-incremental, r=nikomatsakis 2018-01-19 04:45:22 +00:00
librustc_mir Auto merge of #47503 - arielb1:check-size, r=eddyb 2018-01-19 10:18:52 +00:00
librustc_msan
librustc_passes Rollup merge of #47417 - petrochenkov:noasm, r=estebank 2018-01-15 18:49:38 +08:00
librustc_platform_intrinsics Correct the return type for `x86_mm256_sad_epu8` 2017-12-21 22:58:03 +00:00
librustc_plugin Don't include DefIndex in plugin- and proc-macro registrar fn symbol. 2018-01-16 17:30:11 +01:00
librustc_privacy Reexport -> re-export in prose and documentation comments 2018-01-15 13:36:53 -05:00
librustc_resolve Rollup merge of #47498 - dominikWin:missing-module-name, r=petrochenkov 2018-01-18 01:57:29 +08:00
librustc_save_analysis Remove `impl Foo for ..` in favor of `auto trait Foo` 2018-01-13 18:48:00 +03:00
librustc_trans Auto merge of #47494 - michaelwoerister:proc-macro-incremental, r=nikomatsakis 2018-01-19 04:45:22 +00:00
librustc_trans_utils Try to fix a perf regression by updating log 2018-01-07 16:54:05 +01:00
librustc_tsan
librustc_typeck syntax: Rewrite parsing of impls 2018-01-14 18:10:05 +03:00
librustdoc Rollup merge of #47398 - GuillaumeGomez:pulldown-warnings, r=QuietMisdreavus 2018-01-17 23:43:28 +01:00
libserialize [incremental] Specialize encoding and decoding of Fingerprints 2018-01-09 20:20:50 -05:00
libstd Rollup merge of #47520 - mbrubeck:fstat, r=Mark-Simulacrum 2018-01-17 23:43:31 +01:00
libstd_unicode Reexport -> re-export in prose and documentation comments 2018-01-15 13:36:53 -05:00
libsyntax Rollup merge of #47481 - estebank:unused-args, r=arielb1 2018-01-18 01:57:25 +08:00
libsyntax_ext Add secondary span pointing at the statement (error span) 2018-01-16 18:13:43 -08:00
libsyntax_pos Auto merge of #46551 - jseyfried:improve_legacy_modern_macro_interaction, r=nrc 2018-01-12 10:00:09 +00:00
libterm
libtest Make libtest build on CloudABI. 2018-01-11 11:42:33 +01:00
libunwind Link against -lunwind on CloudABI. 2017-12-26 23:32:42 +01:00
llvm@2717444753 Try to find a better pass manager order 2017-12-24 00:15:12 +02:00
rt
rtstartup Remove `impl Foo for ..` in favor of `auto trait Foo` 2018-01-13 18:48:00 +03:00
rustc
rustllvm rustc_trans: remove unused `TargetDataRef` accessor. 2018-01-14 08:52:16 +02:00
test Auto merge of #47503 - arielb1:check-size, r=eddyb 2018-01-19 10:18:52 +00:00
tools Auto merge of #47454 - topecongiro:update-rustfmt, r=nrc 2018-01-19 07:35:18 +00:00
Cargo.lock Update rustfmt to 0.3.6 2018-01-18 23:41:19 +09:00
Cargo.toml Update Cargo and its dependencies 2018-01-17 23:14:23 -08:00
stage0.txt Bump to 1.25.0 2018-01-04 07:21:22 -08:00