about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-06-11rustc_target: deny(unused_lifetimes).Eduard-Mihai Burtescu-1/+2
2019-06-11Auto merge of #60463 - mjbshaw:transparent, r=varkor,rkruppebors-208/+730
Implement RFC 2645 (transparent enums and unions) Tracking issue: #60405
2019-06-11Migrate rust-by-example to MdBook2Mateusz Mikuła-1/+1
2019-06-11Auto merge of #61673 - RalfJung:miri-no-hard-float, r=eddyb,oli-obkbors-124/+154
Miri: convert to/from apfloat instead of host floats Cc @oli-obk @eddyb
2019-06-11Auto merge of #61492 - RalfJung:const-qualif-comments, r=eddybbors-43/+81
Const qualification comments I extracted some const-qualif knowledge from @eddyb. This is my attempt to turn that into comments. Cc @oli-obk @eddyb
2019-06-10Implement RFC 2645 (transparent enums and unions)Michael Bradshaw-208/+730
Tracking issue: #60405
2019-06-11Auto merge of #61052 - jsgf:emit-save-analysis-notifications, r=alexcrichtonbors-8/+26
Emit save analysis notifications Addresses issue https://github.com/rust-lang/rust/issues/61047
2019-06-10Auto merge of #60793 - Xanewok:raw-string-cleanup, r=petrochenkovbors-135/+180
lexer: Disallow bare CR in raw byte strings Handles bare CR ~but doesn't translate `\r\n` to `\n` yet in raw strings yet~ and translates CRLF to LF in raw strings. As a side-note I think it'd be good to change the `unescape_` to return plain iterators to reduce some boilerplate (e.g. `has_error` could benefit from collecting `Result<T>` and aborting early on errors) but will do that separately, unless I missed something here that prevents it. @matklad @petrochenkov thoughts?
2019-06-10Extract generator_layout as a methodTyler Mandry-254/+271
2019-06-10Extract univariant_uninterned as methodTyler Mandry-224/+234
2019-06-10Use DataflowResultsConsumer and remove dataflow::for_each_locationTyler Mandry-93/+94
2019-06-10Use BitMatrix for storage conflictsTyler Mandry-29/+32
2019-06-10Add more functionality to BitMatrixTyler Mandry-1/+93
2019-06-10Small review fixesTyler Mandry-67/+92
2019-06-10Add test suiteTyler Mandry-0/+133
2019-06-10Only include generator saved locals in the variants that need themTyler Mandry-34/+48
2019-06-10Overlap locals that never have storage live at the same timeTyler Mandry-13/+201
...and are only included in a single variant.
2019-06-10Collect conflict information in GeneratorLayoutTyler Mandry-4/+179
2019-06-10Use `for_each` in `Iterator::partition`Josh Stone-2/+2
We already use this for `unzip`, but `partition` is not much different.
2019-06-10syntax: Rename variants of `SyntaxExtension` for consistencyVadim Petrochenkov-70/+65
2019-06-10syntax: Improve documentation of `SyntaxExtension`Vadim Petrochenkov-36/+54
2019-06-10syntax: Remove `SyntaxExtension::DeclMacro`Vadim Petrochenkov-104/+79
It's a less powerful duplicate of `SyntaxExtension::NormalTT`
2019-06-10syntax: Use `MultiItemModifier` for built-in derivesVadim Petrochenkov-29/+42
2019-06-10syntax: Remove `SyntaxExtension::MultiDecorator` and `MultiItemDecorator`Vadim Petrochenkov-410/+1
2019-06-10Auto merge of #61694 - Xanewok:update-rls, r=kennytmbors-1/+1
Update RLS This includes https://github.com/rust-lang/rls/pull/1482 which should finally fix the spurious tests RLS in Rust CI (test-pass -> test-fail). r? @oli-obk cc @ehuss
2019-06-10syntax: Remove `SyntaxExtension::IdentTT` and `IdentMacroExpander`Vadim Petrochenkov-64/+1
2019-06-10core: use memcmp optimization for 128 bit integer slicesAndrew Champion-1/+1
2019-06-10Emit artifact notifications for save-analysis outputJeremy Fitzhardinge-8/+26
Issue: https://github.com/rust-lang/rust/issues/61047
2019-06-10typeck: Fix const generic in repeat param ICE.David Wood-25/+104
This commit fixes an ICE that occured when a const generic was used in a repeat expression. This was due to the code expecting the length of the repeat expression to be const evaluatable to a constant, but a const generic parameter is not (however, it can be made into a constant).
2019-06-10Don't suggest using \r in raw stringsIgor Matuszewski-5/+11
2019-06-10Auto merge of #61716 - Centril:rollup-nxwf5ol, r=Centrilbors-132/+237
Rollup of 5 pull requests Successful merges: - #59600 (Replaced linear token counting macros with optimized implementation) - #61501 (get rid of real_intrinsics module) - #61570 (Fix issues with const argument inference) - #61683 (Haiku: the maximum stack size is 16 MB) - #61697 (submodules: update clippy from 71be6f62 to c0dbd34b) Failed merges: r? @ghost
2019-06-10Rollup merge of #61697 - matthiaskrgr:submodule_upd, r=ManishearthMazdak Farrokhzad-7/+7
submodules: update clippy from 71be6f62 to c0dbd34b Changes: ```` travis: disable rls integration test. rustup https://github.com/rust-lang/rust/pull/61669/ Add OUTER_EXPN_INFO lint ```` Should fix clippy toolstate
2019-06-10Rollup merge of #61683 - nielx:haiku-stack-limit, r=nagisaMazdak Farrokhzad-2/+6
Haiku: the maximum stack size is 16 MB This keeps the compiler from crashing every time it is invoked. No functional change on other platforms. This patch is similar to the limitation that is in the [librustdoc/lib.rs](https://github.com/rust-lang/rust/blob/57e13e0325c1d41161a31de1f8520538ec2c575c/src/librustdoc/lib.rs#L89).
2019-06-10Rollup merge of #61570 - varkor:infer-const-arg, r=eddybMazdak Farrokhzad-89/+186
Fix issues with const argument inference Fixes https://github.com/rust-lang/rust/issues/60724. Fixes https://github.com/rust-lang/rust/issues/61346. r? @eddyb
2019-06-10Rollup merge of #61501 - RalfJung:intrinsics, r=rkruppeMazdak Farrokhzad-27/+16
get rid of real_intrinsics module instead import intrinsics locally in their wrapper functions. (These functions are wrapper functions as a preparation to fixing https://github.com/rust-lang/rust/issues/53871.)
2019-06-10Rollup merge of #59600 - tobia:master, r=pnkfelixMazdak Farrokhzad-7/+22
Replaced linear token counting macros with optimized implementation There are currently two distinct token-counting macros in the source. Both implement the trivial algorithm, with linear complexity. They may or may not be adequate for their use case, but considering that other people are probably going to copy and paste them whenever they need a token-counting macro, I replaced them with an optimized implementation with logarithmic complexity.
2019-06-10commentsRalf Jung-3/+3
2019-06-10const-correctness might be confusing for C++ peopleRalf Jung-1/+1
2019-06-10avoid 'const-context' terminologyRalf Jung-3/+2
2019-06-10replace some mode comparisons by more readable function call, rename some ↵Ralf Jung-46/+72
Mode, and more comments
2019-06-10some more comments for const_qualifRalf Jung-15/+28
2019-06-10make sure to_ascii_lowercase actually leaves upper-case non-ASCII characters ↵Ralf Jung-2/+2
alone
2019-06-10Address review commentsPhilipp Hansch-4/+5
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-06-10librustc_errors: Add some more documentationPhilipp Hansch-3/+20
2019-06-10Auto merge of #61506 - imbrem:mir_body_renaming, r=eddybbors-1319/+1323
Changed usages of `mir` in librustc::mir and librustc_mir to `body` Work on part 2 of #60229
2019-06-10Haiku: the maximum stack size is 16 MBNiels Sascha Reedijk-2/+6
When one tries to create a thread with a requested stack size larger than 16 MB, the call will fail and the compiler will bail out. Therefore we should limit the size of the thread stack to 16 MB on Haiku.
2019-06-10Auto merge of #61608 - Aaron1011:feature/weird-expr-yield, r=Centrilbors-0/+9
Add nested 'yield' expression to weird expressions test
2019-06-10Add an exampleYuki Okushi-0/+10
2019-06-10Auto merge of #61706 - petrhosek:bootstrap-cp-r, r=Mark-Simulacrumbors-2/+1
Use Build::read_dir instead of fs::read_dir in Build::cp_r Build::read_dir does better error handling when the directory doesn't exist; it actually prints the name of the directory rather than just printing the underlying error "No such file or directory" which on its own isn't very useful.
2019-06-09Reword const fn conditional and loop error textChris Gregory-14/+14