rust/src
Ariel Ben-Yehuda c886815e94 Rollup merge of #40319 - eddyb:it's-"unsize"-not-"unsound", r=nikomatsakis
Disallow subtyping between T and U in T: Unsize<U>.

Because `&mut T` can be coerced to `&mut U`, `T` and `U` must be unified invariantly. Fixes #40288.
E.g. coercing `&mut [&'a X; N]` to `&mut [&'b X]` must require `'a` be equal to `'b`, otherwise you can convert between `&'a X` and `&'b X` (in either direction), potentially unsoundly lengthening lifetimes.

Subtyping here was introduced with `Unsize` in #24619 (landed in 1.1, original PR is #23785).
2017-03-11 21:57:42 +02:00
..
bootstrap Auto merge of #40199 - alexcrichton:doc-proc-macro, r=brson 2017-03-11 11:42:09 +00:00
build_helper rustbuild: Assert directory creation succeeds 2017-03-07 15:24:36 -08:00
ci Auto merge of #40199 - alexcrichton:doc-proc-macro, r=brson 2017-03-11 11:42:09 +00:00
compiler-rt@d30da544a8 sanitizer support 2017-02-08 18:51:43 -05:00
doc Rollup merge of #40222 - steveklabnik:extract-nomicon, r=alexcrichton 2017-03-08 20:53:50 +02:00
driver
etc Vec, LinkedList, VecDeque, String, and Option NatVis visualizations 2017-02-15 01:51:19 -08:00
grammar Fix typo 2017-02-15 15:13:31 +03:00
jemalloc@11bfb0dcf8 Update jemalloc to include various fixes for OSX 10.12 2017-01-19 09:01:52 +09:00
liballoc Box docs: no allocation is done for ZSTs. 2017-03-08 21:53:28 -05:00
liballoc_jemalloc Automate timestamp creation and build skipping for native libraries 2017-03-04 21:38:26 +03:00
liballoc_system
libarena
libbacktrace libbacktrace: Fix uninitialized variable 2017-02-04 01:18:10 +03:00
libcollections Rollup merge of #40423 - DirkyJerky:patch-2, r=BurntSushi 2017-03-10 20:05:06 -08:00
libcollectionstest Implement placement-in protocol for and VecDeque 2017-03-09 22:46:20 +08:00
libcompiler_builtins Rollup merge of #40254 - nagisa:compiler-builtin-no-panic, r=alexcrichton 2017-03-08 20:53:53 +02:00
libcore Rollup merge of #40299 - GuillaumeGomez:fmt-display-example, r=frewsxcv 2017-03-11 21:57:40 +02:00
libcoretest Improve fmt float 2017-02-07 20:58:34 +11:00
libflate Add/remove rerun-if-changed when necessary 2017-03-04 21:38:26 +03:00
libfmt_macros
libgetopts
libgraphviz
liblibc@64d954c6a7 Update name_bytes, scoop up latest libc 2017-02-22 09:28:02 -08:00
liblog
libpanic_abort
libpanic_unwind std: Remove cfg(cargobuild) annotations 2017-02-06 08:42:54 -08:00
libproc_macro rustbuild: Build documentation for proc_macro 2017-03-10 13:04:49 -08:00
libproc_macro_plugin Integrate TokenStream. 2017-03-03 02:15:37 +00:00
librand Remove specialization from Debug implementations 2017-01-20 13:10:36 +01:00
librustc Rollup merge of #40319 - eddyb:it's-"unsize"-not-"unsound", r=nikomatsakis 2017-03-11 21:57:42 +02:00
librustc_asan sanitizer runtime crates shouldn't be tested 2017-03-05 14:25:47 -05:00
librustc_back add solaris sparcv9 support 2017-02-16 21:40:14 -08:00
librustc_bitflags
librustc_borrowck isolate dep-graph tasks 2017-03-10 08:15:13 -08:00
librustc_const_eval Fix ICE: don't use struct_variant on enums 2017-03-06 00:13:14 -03:00
librustc_const_math rustc_const_eval: always demand typeck_tables for evaluating constants. 2017-02-25 18:35:26 +02:00
librustc_data_structures Add extra methods to IndexVec and implement TypeFoldable for it 2017-03-10 02:55:39 +02:00
librustc_driver Auto merge of #39648 - Aatch:mir-inlining-2, r=eddyb 2017-03-11 08:25:44 +00:00
librustc_errors Rollup merge of #40287 - estebank:label-overlap, r=nrc 2017-03-10 16:18:28 -08:00
librustc_incremental isolate dep-graph tasks 2017-03-10 08:15:13 -08:00
librustc_lint Point to enclosing block/fn on nested unsafe 2017-03-10 07:53:08 -08:00
librustc_llvm Add/remove rerun-if-changed when necessary 2017-03-04 21:38:26 +03:00
librustc_lsan sanitizer runtime crates shouldn't be tested 2017-03-05 14:25:47 -05:00
librustc_metadata rustc: Prefer loading crates in the sysroot 2017-03-09 07:00:13 -08:00
librustc_mir Auto merge of #40308 - nikomatsakis:incr-comp-isolate-task, r=mw 2017-03-11 15:50:33 +00:00
librustc_msan sanitizer runtime crates shouldn't be tested 2017-03-05 14:25:47 -05:00
librustc_passes Remove the TypedConstVal 2017-02-28 17:12:56 +02:00
librustc_platform_intrinsics Auto merge of #38561 - nagisa:rdrandseed, r=alexcrichton 2017-02-14 01:26:10 +00:00
librustc_plugin Remove ability for plugins to register a MIR pass 2017-03-10 08:09:29 -08:00
librustc_privacy rustc: store type parameter defaults outside of ty::Generics. 2017-02-25 17:07:59 +02:00
librustc_resolve Auto merge of #39713 - estebank:issue-39698, r=jonathandturner 2017-03-08 09:30:13 +00:00
librustc_save_analysis Rollup merge of #40311 - nrc:save-proc-macro-attr, r=jseyfried 2017-03-10 16:18:28 -08:00
librustc_trans Auto merge of #40308 - nikomatsakis:incr-comp-isolate-task, r=mw 2017-03-11 15:50:33 +00:00
librustc_tsan sanitizer runtime crates shouldn't be tested 2017-03-05 14:25:47 -05:00
librustc_typeck Rollup merge of #40319 - eddyb:it's-"unsize"-not-"unsound", r=nikomatsakis 2017-03-11 21:57:42 +02:00
librustdoc Clean up rustdoc css 2017-03-09 19:04:13 +01:00
libserialize Only SwitchInt over integers, not all consts 2017-02-10 19:42:41 +02:00
libstd Rollup merge of #40410 - clarcharr:os_string_shrink_to_fit, r=alexcrichton 2017-03-10 20:05:06 -08:00
libstd_unicode Remove std_unicode::str::is_utf16 2017-03-02 17:45:50 +01:00
libsyntax Expect macro defs in save-analysis and add expn info to spans for attr proc macros 2017-03-10 08:16:21 -08:00
libsyntax_ext Integrate TokenStream. 2017-03-03 02:15:37 +00:00
libsyntax_pos store typeck lints in the TypeckTables 2017-02-02 20:38:16 -05:00
libterm
libtest fix typo 2017-02-27 11:18:11 +08:00
libunwind Add/remove rerun-if-changed when necessary 2017-03-04 21:38:26 +03:00
llvm@50ab09fb43 LLVM: Update submodule to include x86-interrupt ABI patches 2017-03-02 11:29:12 +01:00
rt Set correct hoedown submodule branch 2017-02-03 11:08:20 +01:00
rtstartup
rust-installer@4f99485080
rustc test: Verify all sysroot crates are unstable 2017-02-21 11:38:17 -08:00
rustllvm LLVM: Update submodule to include x86-interrupt ABI patches 2017-03-02 11:29:12 +01:00
test Rollup merge of #40319 - eddyb:it's-"unsize"-not-"unsound", r=nikomatsakis 2017-03-11 21:57:42 +02:00
tools Rollup merge of #40297 - alexcrichton:fix-submodules, r=brson 2017-03-10 16:18:28 -08:00
Cargo.lock Don't put Cargo into the rustc workspace 2017-03-10 14:49:19 -08:00
Cargo.toml Don't put Cargo into the rustc workspace 2017-03-10 14:49:19 -08:00
stage0.txt rustbuild: Use copies instead of hard links 2017-03-09 07:00:13 -08:00