about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-02-10Rollup merge of #58350 - petrochenkov:embed, r=frewsxcvGuillaume Gomez-0/+0
Fix failing tidy (line endings on Windows) Updates to `embedded-book` including https://github.com/rust-embedded/book/pull/127.
2019-02-10Rollup merge of #58346 - RalfJung:rpath-pop, r=Mark-SimulacrumGuillaume Gomez-2/+2
rpath computation: explain why we pop() I was quite confused by this code until I got a debug log of what is going on.
2019-02-10Rollup merge of #58345 - RalfJung:2nd-filename, r=matthewjasperGuillaume Gomez-1/+9
When there are multiple filenames, print what got interpreted as filenames I have written code that crafts command lines for rustc, and when I get "multiple input filenames provided" it can be quite hard to figure out where in this long list of arguments the mistake is hiding. Probably I passed an argument to a flag that does not expect an argument, but which flag would that be? This changes the error message to print the first two filenames, to make it easier to debug what is going on.
2019-02-10Rollup merge of #58332 - RalfJung:miri-copy-nonoverlapping, r=oli-obkGuillaume Gomez-1/+4
operand-to-place copies should never be overlapping This seems to just work (verified with the Miri test suite). r? @oli-obk
2019-02-10Rollup merge of #58324 - RalfJung:fn-ptr-eq, r=oli-obkGuillaume Gomez-8/+23
miri: give non-generic functions a stable address This makes Miri correctly handle format string parameters despite https://github.com/rust-lang/rust/issues/58320. Matching Miri PR: https://github.com/solson/miri/pull/626 r? @oli-obk
2019-02-10Rollup merge of #58317 - hayekr:patch-1, r=frewsxcvGuillaume Gomez-4/+3
Some writing improvement, conciseness of intro Made unstable-features doc more concise in the introduction paragraph
2019-02-10Rollup merge of #58297 - GuillaumeGomez:cleanup-js, r=QuietMisdreavusGuillaume Gomez-8/+6
Cleanup JS a bit r? @QuietMisdreavus
2019-02-10Rollup merge of #58295 - RalfJung:stdio, r=alexcrichtonGuillaume Gomez-3/+3
std::sys::unix::stdio: explain why we do into_raw I was quite puzzled why someone would call `into_raw` and then ignore the result.
2019-02-10Rollup merge of #58262 - taiki-e:must_use, r=estebankGuillaume Gomez-3/+3
Add #[must_use] message to Fn* traits This PR adds `#[must_use]` message to `Fn*` traits. Related: #57549 r? @estebank
2019-02-10Rollup merge of #58243 - GuillaumeGomez:trait-alias-docs, r=ManishearthGuillaume Gomez-47/+153
Add trait alias support in rustdoc Fixes #57595. r? @QuietMisdreavus
2019-02-10Rollup merge of #58203 - euclio:rustdoc-async, r=GuillaumeGomezGuillaume Gomez-17/+88
rustdoc: display sugared return types for async functions Fixes #58027.
2019-02-10Rollup merge of #57926 - icefoxen:test-doc-pr, r=frewsxcvGuillaume Gomez-1/+4
Tiny expansion to docs for `core::convert`. This is not really significant, accept or reject as you wish. I just want to make sure I understand how the PR process works and that I'm doing it right before doing a bigger one for #33417.
2019-02-10Rollup merge of #57740 - JakubOnderka:ipv4addr-to_ne_bytes, r=scottmcmGuillaume Gomez-2/+1
Use `to_ne_bytes` for converting IPv4Addr to octets It is easier and it should be also faster, because [`to_ne_bytes`](https://doc.rust-lang.org/std/primitive.u32.html#method.to_ne_bytes) just calls `mem::transmute`.
2019-02-10Rollup merge of #57259 - king6cong:master, r=alexcrichtonGuillaume Gomez-1/+1
Update reference of rlibc crate to compiler-builtins crate None
2019-02-10Auto merge of #58129 - RalfJung:maybe-uninit, r=cramertjbors-16/+65
MaybeUninit: some docs, rename into_inner -> into_initialized, return &mut from set
2019-02-10fix SGX build failuresRalf Jung-2/+2
2019-02-10bump cargo submodulePietro Albini-0/+0
2019-02-11librustc_mir: use ? in impl_snapshot_for! macroTaiki Endo-8/+6
2019-02-10Add test for MIR printing changesMatthew Jasper-0/+66
2019-02-10Remove spotlight for trait aliases and fix nitsGuillaume Gomez-6/+3
2019-02-10Fix ICE and invalid filenames in MIR printing codeMatthew Jasper-2/+3
2019-02-10it is okay not to use into_innerRalf Jung-0/+1
2019-02-10Auto merge of #58151 - ljedrz:HirIdify_rustc, r=Zoxcbors-33/+30
Partially HirId-ify rustc Another step towards https://github.com/rust-lang/rust/pull/57578.
2019-02-10miri value visitor: use in macroRalf Jung-3/+3
2019-02-10Add trait aliases to js typesGuillaume Gomez-1/+3
2019-02-10Add style for trait aliasesGuillaume Gomez-0/+4
2019-02-10Add trait alias support in rustdocGuillaume Gomez-46/+149
2019-02-10Fix failing tidy (line endings on Windows)Vadim Petrochenkov-0/+0
2019-02-10rpath computation: explain why we pop()Ralf Jung-2/+2
2019-02-10when there are multiple filenames, print what got interpreted as 2nd filenameRalf Jung-1/+9
2019-02-10Auto merge of #58085 - wesleywiser:profiler_2, r=wesleywiserbors-182/+363
Implement more detailed self profiling Timing data and cache hits/misses are now recorded at the query level. This allows us to show detailed per query information such as total time for each query. To see detailed query information in the summary pass the `-Z verbose` flag. For example: ``` rustc -Z self-profile -Z verbose hello_world.rs ``` results in something like: ```md Self profiling results: | Phase | Time (ms) | Time (%) | Queries | Hits (%) | ----------------------------------------- | -------------- | -------- | -------------- | -------- | Other | 177 | 54.97 | 8094 | 45.47 | - {time spent not running queries} | 113 | 35.09 | 0 | 0.00 | - const_eval | 16 | 4.97 | 26 | 11.54 | - type_of | 9 | 2.80 | 627 | 27.75 | - const_eval_raw | 8 | 2.48 | 22 | 0.00 | - adt_def | 7 | 2.17 | 381 | 11.55 | - visible_parent_map | 7 | 2.17 | 99 | 98.99 | - item_attrs | 6 | 1.86 | 698 | 50.14 | - item_children | 5 | 1.55 | 2815 | 0.00 | - adt_dtorck_constraint | 4 | 1.24 | 2 | 0.00 | - adt_destructor | 2 | 0.62 | 15 | 86.67 | TypeChecking | 53 | 16.46 | 2834 | 79.89 | - trait_impls_of | 9 | 2.80 | 65 | 86.15 | - evaluate_obligation | 7 | 2.17 | 80 | 2.50 | - const_is_rvalue_promotable_to_static | 6 | 1.86 | 1 | 0.00 | - is_copy_raw | 6 | 1.86 | 29 | 58.62 | - rvalue_promotable_map | 6 | 1.86 | 2 | 50.00 | - {time spent not running queries} | 6 | 1.86 | 0 | 0.00 | - typeck_item_bodies | 5 | 1.55 | 1 | 0.00 | - typeck_tables_of | 5 | 1.55 | 19 | 94.74 | - dropck_outlives | 2 | 0.62 | 1 | 0.00 | - layout_raw | 1 | 0.31 | 668 | 87.87 | Linking | 48 | 14.91 | 43 | 46.51 | - {time spent not running queries} | 48 | 14.91 | 0 | 0.00 | Codegen | 29 | 9.01 | 420 | 61.90 | - {time spent not running queries} | 16 | 4.97 | 0 | 0.00 | - collect_and_partition_mono_items | 11 | 3.42 | 13 | 92.31 | - mir_const | 1 | 0.31 | 1 | 0.00 | - mir_validated | 1 | 0.31 | 3 | 66.67 | Expansion | 14 | 4.35 | 0 | 0.00 | - {time spent not running queries} | 14 | 4.35 | 0 | 0.00 | BorrowChecking | 1 | 0.31 | 12 | 41.67 | - borrowck | 1 | 0.31 | 2 | 50.00 | Parsing | 0 | 0.00 | 0 | 0.00 Optimization level: No Incremental: off ``` <details> <summary>Rendered</summary> Self profiling results: | Phase | Time (ms) | Time (%) | Queries | Hits (%) | ----------------------------------------- | -------------- | -------- | -------------- | -------- | **Other** | **177** | **54.97** | **8094** | **45.47** | - {time spent not running queries} | 113 | 35.09 | 0 | 0.00 | - const_eval | 16 | 4.97 | 26 | 11.54 | - type_of | 9 | 2.80 | 627 | 27.75 | - const_eval_raw | 8 | 2.48 | 22 | 0.00 | - adt_def | 7 | 2.17 | 381 | 11.55 | - visible_parent_map | 7 | 2.17 | 99 | 98.99 | - item_attrs | 6 | 1.86 | 698 | 50.14 | - item_children | 5 | 1.55 | 2815 | 0.00 | - adt_dtorck_constraint | 4 | 1.24 | 2 | 0.00 | - adt_destructor | 2 | 0.62 | 15 | 86.67 | TypeChecking | 53 | 16.46 | 2834 | 79.89 | - trait_impls_of | 9 | 2.80 | 65 | 86.15 | - evaluate_obligation | 7 | 2.17 | 80 | 2.50 | - const_is_rvalue_promotable_to_static | 6 | 1.86 | 1 | 0.00 | - is_copy_raw | 6 | 1.86 | 29 | 58.62 | - rvalue_promotable_map | 6 | 1.86 | 2 | 50.00 | - {time spent not running queries} | 6 | 1.86 | 0 | 0.00 | - typeck_item_bodies | 5 | 1.55 | 1 | 0.00 | - typeck_tables_of | 5 | 1.55 | 19 | 94.74 | - dropck_outlives | 2 | 0.62 | 1 | 0.00 | - layout_raw | 1 | 0.31 | 668 | 87.87 | Linking | 48 | 14.91 | 43 | 46.51 | - {time spent not running queries} | 48 | 14.91 | 0 | 0.00 | Codegen | 29 | 9.01 | 420 | 61.90 | - {time spent not running queries} | 16 | 4.97 | 0 | 0.00 | - collect_and_partition_mono_items | 11 | 3.42 | 13 | 92.31 | - mir_const | 1 | 0.31 | 1 | 0.00 | - mir_validated | 1 | 0.31 | 3 | 66.67 | Expansion | 14 | 4.35 | 0 | 0.00 | - {time spent not running queries} | 14 | 4.35 | 0 | 0.00 | BorrowChecking | 1 | 0.31 | 12 | 41.67 | - borrowck | 1 | 0.31 | 2 | 50.00 | Parsing | 0 | 0.00 | 0 | 0.00 Optimization level: No Incremental: off </details> cc @nikomatsakis @michaelwoerister @Zoxc Fixes #54141
2019-02-10Auto merge of #58103 - RalfJung:mir-shim-dump, r=eddybbors-130/+173
Make -Zdump-mir dump shims Fixes https://github.com/rust-lang/rust/issues/53532 by (a) making the MIR shim generation use the MIR pass infrastructure, and (b) fixing said infrastructure to handle the fallout. Cc @eddyb @oli-obk
2019-02-10Revert removed #![feature(nll)]Taiki Endo-0/+21
2019-02-10Auto merge of #58339 - Mark-Simulacrum:embedded-book, r=Mark-Simulacrumbors-0/+1
Add EmbeddedBook to test list in bootstrap r? @alexcrichton
2019-02-09Add EmbeddedBook to test list in bootstrapMark Rousskov-0/+1
2019-02-10Auto merge of #57770 - Zoxc:no-hash-query, r=michaelwoeristerbors-215/+260
Add a query type which is always marked as red if it runs This is useful for queries which produce results which are very likely to change if their inputs do. I also expect this to be useful for end to end queries because 1) we don't need `HashStable` impls and 2) we avoid the overhead of hashing the result of large results like the AST or the HIR map. r? @michaelwoerister
2019-02-10Fix search results interactionsGuillaume Gomez-2/+2
2019-02-09Auto merge of #58065 - alexreg:refactor-smart_resolve_path_fragment, ↵bors-389/+423
r=petrochenkov Factor out error reporting from `smart_resolve_path_fragment` fn This function was ridiculously monolithic before. We now have three rather-less-monolithic-and-horrifying functions. r? @centril
2019-02-09operand-to-place copies should never be overlappingRalf Jung-1/+4
2019-02-09Auto merge of #57944 - estebank:unclosed-delim-the-quickening, r=oli-obkbors-157/+332
Deduplicate mismatched delimiter errors Delay unmatched delimiter errors until after the parser has run to deduplicate them when parsing and attempt recovering intelligently. Second attempt at #54029, follow up to #53949. Fix #31528.
2019-02-09Remove rustdoc test which referenced unstable APIMatthias Einwag-10/+0
2019-02-09Fix exhaustion of inclusive range try_fold and try_rfoldMatthieu M-5/+33
2019-02-09Use ? in librustc macrosMatthew Jasper-260/+246
2019-02-09cleanup: remove hir_path_strljedrz-5/+0
2019-02-09cleanup: rename node_id_to_type(_opt)ljedrz-56/+52
2019-02-09Auto merge of #57885 - arielb1:xform-probe, r=nikomatsakisbors-7/+402
Avoid committing to autoderef in object method probing This fixes the "leak" introduced in #57835 (see test for details, also apparently #54252 had no tests for the "leaks" that were fixed in it, so go ahead and add one). Maybe beta-nominating because regression, but I'm against landing things on beta we don't have to. r? @nikomatsakis
2019-02-09impl iter_sources() and iter_chain() for dyn ErrorHarald Hoyer-0/+152
Examples: ```rust let next_error_type_a = err .iter_chain() .filter_map(Error::downcast_ref::<ErrorTypeA>) .next(); ``` ```rust let source_root_error = err.iter_chain().last(); ``` Credit for the ErrorIter goes to Tim Diekmann https://www.reddit.com/r/rust/comments/aj3lpg/is_an_iterator_impl_over_errorsource_possible/
2019-02-09miri: give non-generic functions a stable addressRalf Jung-8/+23
2019-02-09librustc_codegen_ssa => 2018Taiki Endo-91/+75
2019-02-09put back macro redirectGuillaume Gomez-1/+10