summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-07-02HashMap is UnwindSafeSimon Sapin-0/+12
Fixes https://github.com/rust-lang/rust/issues/62301, a regression in 1.36.0 which was caused by hashbrown using `NonZero<T>` where the older hashmap used `Unique<T>`.
2019-06-29Auto merge of #62209 - ↵bors-33/+254
nikomatsakis:arbitrary_self_types-lifetime-elision-2-beta, r=Centril Emergency backport of "arbitrary self types lifetime elision 2" this is a backport of #61207 per the discussion in [compiler steering meeting](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/steering.20meeting.202019-06-28) r? @Centril
2019-06-28arbitrary_self_types lifetime elision: --bless --compare-mode=nll.Mazdak Farrokhzad-0/+42
2019-06-28Use Set1<Region> instead of Option<Region>Taiki Endo-5/+6
2019-06-28Make is_self_ty a method on SelfVisitorTaiki Endo-32/+35
2019-06-28Remove query for `.pin_type()`Taiki Endo-36/+47
2019-06-28Allow lifetime elision in `Pin<&(mut) Self>`Taiki Endo-1/+165
2019-06-26Switch to stable from betaMark Rousskov-1/+1
2019-06-26Beta backport of: Auto merge of #61754 - nikomatsakis:trait-caching-perf-3, ↵Niko Matsakis-83/+407
r=pnkfelix create a "provisional cache" to restore performance in the case of cycles Introduce a "provisional cache" that caches the results of auto trait resolutions but keeps them from entering the *main* cache until everything is ready. This turned out a bit more complex than I hoped, but I don't see another short term fix -- happy to take suggestions! In the meantime, it's very clear we need to rework the trait solver. This resolves the extreme performance slowdown experienced in #60846 -- I plan to add a perf.rust-lang.org regression test to track this. Caveat: I've not run `x.py test` in full yet. r? @pnkfelix cc @arielb1 Fixes #60846
2019-06-26Revert "Set test flag when rustdoc is running with --test option"Oliver Middleton-12/+12
This reverts commit 8ed2292dbe75b9b65e9fe1a079428d1e1e3b610f. It caused doctests in this repository to no longer be tested including all of the core crate.
2019-06-26rustc_typeck: correctly compute `Substs` for `Res::SelfCtor`.Eduard-Mihai Burtescu-53/+109
2019-06-26bless ui testsPietro Albini-8/+1
2019-06-26review commentEsteban Küber-1/+1
2019-06-26Fix ICE involving mut referencesEsteban Küber-1/+34
2019-06-26Hygienize macros in the standard libraryVadim Petrochenkov-47/+26
2019-06-26Handle index out of bound errors during const eval without panicEsteban Küber-2/+36
2019-06-26Fix cfg(test) build for x86_64-fortanix-unknown-sgxJethro Beekman-1/+2
2019-06-26Regression test for issue #60654.Felix S. Klock II-0/+26
2019-06-26Delay ICE in early_free_scope so feature gate has chance to stop compilation ↵Felix S. Klock II-6/+9
cleanly.
2019-06-26Delay ICE in fold_region so feature gate has chance to stop compilation cleanly.Felix S. Klock II-4/+5
2019-06-23Solaris CI: Build with dilos2 stablebgermann-1/+1
dilos2-testing has problems since the last repository update, so get the packages from dilos2 stable. Fixes #61022.
2019-06-09Comment out dev keyMark Rousskov-2/+2
2019-06-07bump clippyPietro Albini-14/+5
2019-06-06Rollup merge of #61569 - cuviper:beta-1.36-no-unwind-abort, r=Mark-SimulacrumPietro Albini-3/+11
2019-06-06upgrade rustdoc's `pulldown-cmark` to 0.5.2Andy Russell-6/+15
Fixes #60482.
2019-06-06Add test for denying overflowing literal in loopvarkor-1/+10
2019-06-06Update unreachable loop patterns testvarkor-1/+8
2019-06-06Fix missing overflowing literal lint in for loopvarkor-15/+16
2019-06-06Revert edition-guide toolstate overrideEric Huss-3/+1
2019-06-06Turn ICE on type arguments on variables into an errorOliver Scherer-34/+66
2019-06-06Bump hashbrown to 0.4.0Amanieu d'Antras-1/+1
Fixes #61357
2019-06-06Add regression testEsteban Küber-0/+15
2019-06-06Fix regression #61475Esteban Küber-7/+11
2019-06-05Force #[unwind(aborts)] in test/codegen/c-variadic.rsJosh Stone-0/+6
2019-06-05Revert "Allow a dirty MirBuilt for make_extern and make_method_extern"Josh Stone-2/+2
This reverts commit b4a6f597934f16f89e27058a32a514c9572f148f.
2019-06-05Permit unwinding through FFI by defaultMark Rousskov-1/+3
See #58794 for context.
2019-05-28debuginfo: Revert to old/more verbose behavior for -Cdebuginfo=1.Michael Woerister-2/+21
https://github.com/rust-lang/rust/commit/cff075009 made LLVM emit less debuginfo when compiling with "line-tables-only". The change was essentially correct but the reduced amount of debuginfo broke a number of tools. This commit reverts the change so we get back the old behavior, until we figure out how to do this properly and give external tools to adapt to the new format. See https://github.com/rust-lang/rust/issues/60020 for more info.
2019-05-28Revert "Add implementations of last in terms of next_back on a bunch of ↵Steven Fackler-159/+0
DoubleEndedIterators." This reverts commit 3e86cf36b5114f201868bf459934fe346a76a2d4.
2019-05-28add ui testsMark Mansi-0/+47
2019-05-28these errors can happen after allMark Mansi-8/+10
2019-05-25adjust deprecation date of mem::uninitializedRalf Jung-1/+1
2019-05-21this is beta 1.36.0Pietro Albini-5/+5
2019-05-21Auto merge of #60950 - taiki-e:arbitrary_self_types-tests, r=Centrilbors-3/+5
Move arbitrary self types's tests into ui/self https://github.com/rust-lang/rust/pull/60944#discussion_r285362006 r? @Centril
2019-05-21Auto merge of #60985 - cr1901:msp430-fix, r=alexcrichtonbors-0/+0
Bump LLVM submodule to fix MSP430 AsmPrinter and assembler syntax mismatch. Moving on to steps 9 and 10 of the llvm bugfix [guide](https://rust-lang.github.io/rustc-guide/codegen/updating-llvm.html#bugfix-updates), now that Rust's copy of LLVM was [updated](https://github.com/rust-lang/llvm-project/pull/13). This PR closes issue #59077. Nightlies following this PR should have working msp430 codegen again :D. Thanks for the prompt response even though it took me a while to get this "simple" PR done!
2019-05-20Rollup merge of #60983 - petrhosek:libunwind-no-exceptions, r=alexcrichtonMazdak Farrokhzad-5/+2
Set -funwind-tables and -fno-exceptions unconditionally for LLVM's libunwind These are required otherwise libunwind will end up with undefined references to __gxx_personality_v0 which is provided by C++ ABI library and that's undesirable.
2019-05-20Rollup merge of #60972 - RalfJung:volatile, r=alexcrichtonMazdak Farrokhzad-6/+0
remove confusing remarks about mixed volatile and non-volatile accesses These comments were originally added by @ecstatic-morse in https://github.com/rust-lang/rust/commit/911d35f0bfd207112806eaec2763201dad06d1c7 and then later edited by me. The intention, I think, was to make sure people do both their reads and writes with these methods if the affected memory really is used for communication with external devices. However, [people read this as saying that mixed volatile/non-volatile accesses are UB](https://github.com/rust-lang/rust/issues/58599#issuecomment-493791130), which -- to my knowledge -- they are not. So better remove this. Cc @rkruppe @rust-lang/wg-unsafe-code-guidelines
2019-05-20Rollup merge of #60959 - petrochenkov:sassert, r=estebankMazdak Farrokhzad-23/+31
rustc: Improve type size assertions Now they - Tell what the new size is, when it changes - Do not require passing an identifier ``` ::: src\libsyntax\parse\token.rs:223:1 | 223 | static_assert_size!(Token, 123); | -------------------------------- in this macro invocation | = note: expected type `[(); 123]` found type `[(); 16]` ```
2019-05-20Rollup merge of #60952 - dtolnay:heap, r=AmanieuMazdak Farrokhzad-0/+43
Document BinaryHeap time complexity I went into some detail on the time complexity of `push` because it is relevant for using BinaryHeap efficiently -- specifically that you should avoid pushing many elements in ascending order when possible. r? @Amanieu Closes #47976. Closes #59698.
2019-05-20Rollup merge of #60942 - bjorn3:metadata_loader_refactor, r=michaelwoeristerMazdak Farrokhzad-6/+5
Misc changes to rustc_metadata
2019-05-20Rollup merge of #60915 - michaelwoerister:hashstablestuff, r=estebankMazdak Farrokhzad-20/+24
stable hashing: Remove unused field and add documentation. This PR removes the `bytes_hashed` field from `StableHasher` which in the past has been used for collecting some statistics but has gone unused for quite a while (months at least) now. The PR also tries to document some requirements for `HashStable` implementations that haven't been written down explicitly anywhere.