about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-03-27Simplify `TypeVariableTable::vars_since_snapshot`varkor-13/+4
2019-03-27Simplify `RegionConstraintCollector::vars_since_snapshot`varkor-6/+1
2019-03-27Make `vars_since_snapshot` naming consistentvarkor-12/+10
2019-03-27Update enavarkor-1/+1
2019-03-27add negative test case in assignment-expected-boolMazdak Farrokhzad-2/+23
2019-03-27adjust assignment-in-if test accordingly.Mazdak Farrokhzad-6/+26
2019-03-27add test for assignment x = y where type bool is expected.Mazdak Farrokhzad-0/+164
2019-03-27generalize diagnostic for x = y where type bool is expected.Mazdak Farrokhzad-85/+111
2019-03-27Auto merge of #55780 - ogoffart:span_source_text, r=petrochenkovbors-2/+59
Introduce proc_macro::Span::source_text A function to extract the actual source behind a Span. Background: I would like to use `syn` in a `build.rs` script to parse the rust code, and extract part of the source code. However, `syn` only gives access to proc_macro2::Span, and i would like to get the source code behind that. I opened an issue on proc_macro2 bug tracker for this feature https://github.com/alexcrichton/proc-macro2/issues/110 and @alexcrichton said the feature should first go upstream in proc_macro. So there it is! Since most of the Span API is unstable anyway, this is guarded by the same `proc_macro_span` feature as everything else.
2019-03-27librustc_interface => 2018; rename rustc-rayon to rayon in Cargo.tomlMazdak Farrokhzad-1/+1
2019-03-27librustc_interface => 2018Mazdak Farrokhzad-38/+21
2019-03-27Make into itemized list and fix some wordingChris Gregory-7/+10
2019-03-27Minor rewordings and add `dyn` keywordChris Gregory-9/+9
2019-03-27Auto merge of #59447 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-126/+433
Rollup of 7 pull requests Successful merges: - #59004 ([rustdoc] Improve "in parameters" search and search more generally) - #59026 (Fix moving text in search tabs headers) - #59197 (Exclude old book redirect stubs from search engines) - #59330 (Improve the documentation for std::convert (From, Into, AsRef and AsMut)) - #59424 (Fix code block display in portability element in dark theme) - #59427 (Link to PhantomData in NonNull documentation) - #59432 (Improve some compiletest documentation) Failed merges: r? @ghost
2019-03-27Add documentation about `for` used as higher ranked trait boundsChris Gregory-5/+7
Resolves #55416
2019-03-27Give variant parts their own unique idPhilip Craig-17/+28
and bump llvm version in test
2019-03-27Use informational target machine for metadataSimonas Kazlauskas-18/+35
Since there is nothing to optimise there...
2019-03-27renames EvalContext to InterpretCx in docs and comments.kenta7777-2/+2
2019-03-27Auto merge of #59285 - cuviper:llvm-8.0.0, r=alexcrichtonbors-1/+1
Rebase LLVM to 8.0.0 final r? @alexcrichton
2019-03-27Update rustfmt to 1.2.0topecongiro-5/+5
2019-03-27Add `Default` to `std::alloc::System`Tim Diekmann-1/+1
2019-03-26Fix error index CSS file nameGuillaume Gomez-8/+13
2019-03-26fix: Make incremental artifact deletion more robustMarkus Westerlind-1/+4
Should fix the intermittent errors reported in #57958 cc #48614
2019-03-26Use consistent phrasing for all macro summariesNikhil Benesch-44/+46
2019-03-26impl TrustedLen for 128-bit ranges tooJosh Stone-2/+2
2019-03-26Handle RUSTDOC_RESOURCE_SUFFIX env variable for rustdoc buildGuillaume Gomez-0/+11
2019-03-26Add resource suffix for libtest and proc_macro as wellGuillaume Gomez-2/+2
2019-03-26Prevent cache issues on version updatesGuillaume Gomez-8/+7
2019-03-26Rollup merge of #59432 - phansch:compiletest_docs, r=alexcrichtonGuillaume Gomez-3/+20
Improve some compiletest documentation This adds some missing documentation for rustfix related things and adds a test for the `is_test` function.
2019-03-26Rollup merge of #59427 - czipperz:non_null_doc_links, r=Mark-SimulacrumGuillaume Gomez-2/+3
Link to PhantomData in NonNull documentation
2019-03-26Rollup merge of #59424 - GuillaumeGomez:fix-stability-css, r=QuietMisdreavusGuillaume Gomez-0/+8
Fix code block display in portability element in dark theme Fixes #59261. r? @QuietMisdreavus A little screenshot: <img width="521" alt="Screenshot 2019-03-26 at 00 37 49" src="https://user-images.githubusercontent.com/3050060/54961082-9a41c600-4f5f-11e9-8040-ae6f26d368ff.png">
2019-03-26Rollup merge of #59330 - DevQps:improve-std-convert-documentation, ↵Guillaume Gomez-78/+89
r=steveklabnik Improve the documentation for std::convert (From, Into, AsRef and AsMut) # Description In this PR I updated the documentation of From, Into, AsRef and AsMut, as well as the general std::convert module documentation. The discussion in #59163 provided information that was not yet present in the docs, or was not expressed clearly enough. I tried to clarify the examples that were already present in the docs as well as add more information about considered best-practices that came out of the discussion in #59163 @steveklabnik I hope I didn't change too much. This is an initial version! I will scan through everything tomorrow as well again to see if I made any typo's or errors, and maybe make some small changes here and there. All suggestions are welcome! closes #59163
2019-03-26Rollup merge of #59197 - kornelski:redir, r=steveklabnikGuillaume Gomez-2/+4
Exclude old book redirect stubs from search engines Adds `<meta name="robots" content="noindex,follow">` to the `<head>` of old stub pages pointing to the second edition of the book. This is continuation of https://github.com/rust-lang/book/pull/1788
2019-03-26Rollup merge of #59026 - GuillaumeGomez:search-tabs-header, r=QuietMisdreavusGuillaume Gomez-1/+1
Fix moving text in search tabs headers Fixes #59005. Now, the text in the search tabs headers isn't moving anymore. r? @QuietMisdreavus
2019-03-26Rollup merge of #59004 - GuillaumeGomez:generics-handling, r=QuietMisdreavusGuillaume Gomez-40/+308
[rustdoc] Improve "in parameters" search and search more generally Fixes #58230. r? @QuietMisdreavus
2019-03-26Make crate_variances a regular queryJohn Kåre Alsaker-1/+1
2019-03-26Combine input and eval_always query typesJohn Kåre Alsaker-84/+45
2019-03-27librustc_driver => 2018Taiki Endo-45/+23
2019-03-26Add specific message for tuple struct invoked with suffixed numeric field nameEsteban Küber-2/+21
2019-03-26Reword invalid suffixe errorsEsteban Küber-37/+36
2019-03-26Test the size_hint of empty ranges tooJosh Stone-0/+12
2019-03-26Auto merge of #59433 - Centril:rollup, r=Centrilbors-698/+1174
Rollup of 10 pull requests Successful merges: - #59150 (Expand suggestions for type ascription parse errors) - #59232 (Merge `Promoted` and `Static` in `mir::Place`) - #59267 (Provide suggestion when using field access instead of path) - #59315 (Add no_hash to query macro and move some queries over) - #59334 (Update build instructions in README.md) - #59362 (Demo `FromIterator` short-circuiting) - #59374 (Simplify checked_duration_since) - #59389 (replace redundant note in deprecation warning) - #59410 (Clarify `{Ord,f32,f64}::clamp` docs a little) - #59419 (Utilize `?` instead of `return None`.) Failed merges: r? @ghost
2019-03-26Use `expect_no_suffix` for errorEsteban Küber-15/+7
2019-03-26Implement useful steps_between for all integersJosh Stone-49/+57
We can use `usize::try_from` to convert steps from any size of integer. This enables a meaningful `size_hint()` for larger ranges, rather than always just `(0, None)`. Now they return the true `(len, Some(len))` when it fits, otherwise `(usize::MAX, None)` for overflow.
2019-03-26Exclude UnusedBrokenConst from module lintsJohn Kåre Alsaker-3/+5
2019-03-26Remove the block on natvis for lld-link.TheGoddessInari-12/+0
2019-03-26Life's too short not to use cfg_ifgnzlbg-23/+101
2019-03-26Document why the volatile read is usedgnzlbg-0/+1
2019-03-26Add exception for libcore/hint.rs to pal lint of tidy scriptgnzlbg-0/+4
2019-03-26Use fallback on emscripten targetsgnzlbg-2/+18