summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-02-27Permit unwinding through FFI by defaultMark Rousskov-1/+3
See #58794 for context.
2019-02-25stable 1.33.0 releasePietro Albini-1/+1
2019-02-22Fix non-clickable urlsGuillaume Gomez-4/+0
2019-02-22Fix invalid background colorGuillaume Gomez-8/+0
2019-02-22improve Pin documentationRalf Jung-51/+312
Incorporates a bunch of the documentation-related comments that came up when discussing `Pin` stabilization.
2019-02-22partially revert 904a0bde93f0348f69914ee90b1f8b6e4e0d7cbcNiko Matsakis-6/+37
This preserves the error you currently get on stable for the old-lub-glb-object.rs test.
2019-02-22update test files to reflect new outputNiko Matsakis-288/+826
One surprise: old-lub-glb-object.rs, may indicate a bug
2019-02-22restore the actual leak-checkNiko Matsakis-14/+277
2019-02-22introduce a dummy leak check and invoke it in all the right placesNiko Matsakis-39/+105
This set of diffs was produced by combing through b68fad670bb3612cac26e50751e4fd9150e59977 and seeing where the `leak_check` used to be invoked and how.
2019-02-22reintroduce `commit_if_ok` calls to `subtype_predicate`Niko Matsakis-14/+16
2019-02-22reintroduce `commit_if_ok` call into `higher_ranked_sub`Niko Matsakis-20/+27
2019-02-22s/skol_/placeholder_/Niko Matsakis-10/+10
2019-02-22make generalization code create new variables in correct universeNiko Matsakis-35/+114
In our type inference system, when we "generalize" a type T to become a suitable value for a type variable V, we sometimes wind up creating new inference variables. So, for example, if we are making V be some subtype of `&'X u32`, then we might instantiate V with `&'Y u32`. This generalized type is then related `&'Y u32 <: &'X u32`, resulting in a region constriant `'Y: 'X`. Previously, however, we were making these fresh variables like `'Y` in the "current universe", but they should be created in the universe of V. Moreover, we sometimes cheat in an invariant context and avoid creating fresh variables if we know the result must be equal -- we can only do that when the universes work out.
2019-02-22Fix #57979 by allowing a legitimate type error to take precedence over an ICE.Felix S. Klock II-1/+10
2019-02-17Rollup merge of #58522 - ehuss:update-beta-cargo, r=pietroalbiniPietro Albini-0/+0
2019-02-17Fixes text becoming invisible when element targettedGuillaume Gomez-14/+2
2019-02-17avoid committing to autoderef in object method probingAriel Ben-Yehuda-7/+81
2019-02-17add tests to a few edge cases in method lookupAriel Ben-Yehuda-0/+290
These aren't fixed by this PR, but were broken in a few older attempts at it. Make sure they don't regress.
2019-02-17add some comments to method::probe::CandidateAriel Ben-Yehuda-0/+31
2019-02-17unit test for issue 57673.Felix S. Klock II-0/+21
2019-02-17Do not initiate nested probe within `assemble_probe`.Felix S. Klock II-9/+7
In particular, the table entries (associated with type-variables created during the probe) must persist as long as the candidates assembled during the probe. If you make a nested probe without creating a nested `ProbeContext`, the table entries are popped at the end of the nested probe, while the type-variables would leak out via the assembled candidates attached to `self` (the outer `ProbeContext`). This causes an ICE (*if you are lucky*)!
2019-02-17Address review comments and cleanup codeVadim Petrochenkov-62/+59
2019-02-17#56411 do not suggest a fix for a import conflict in a macroFrançois Mockers-1/+56
2019-02-17Lower constant patterns with ascribed types.David Wood-4/+68
This commit fixes a bug introduced by #55937 which started checking user type annotations for associated type patterns. Where lowering a associated constant expression would previously return a `PatternKind::Constant`, it now returns a `PatternKind::AscribeUserType` with a `PatternKind::Constant` inside, this commit unwraps that to access the constant pattern inside and behaves as before.
2019-02-17Make `intern_lazy_const` actually intern its argument.Nicholas Nethercote-38/+40
Currently it just unconditionally allocates it in the arena. For a "Clean Check" build of the the `packed-simd` benchmark, this change reduces both the `max-rss` and `faults` counts by 59%; it slightly (~3%) increases the instruction counts but the `wall-time` is unchanged. For the same builds of a few other benchmarks, `max-rss` and `faults` drop by 1--5%, but instruction counts and `wall-time` changes are in the noise. Fixes #57432, fixes #57829.
2019-02-16[BETA] Update cargoEric Huss-0/+0
2019-02-15libpanic_unwind => 2018: fix ICEs.Mazdak Farrokhzad-6/+7
2019-02-04Fix release manifest generationJethro Beekman-0/+1
2019-02-04Build the standard library for thumbv7neon-unknown-linux-gnueabihf in CIHenri Sivonen-2/+6
Closes #57030.
2019-02-04Fix bug in integer range matchingvarkor-7/+21
2019-02-04Don't panic when accessing enum variant ctor using `Self` in matchEsteban Küber-1/+26
2019-02-04Pass correct arguments to places_conflictMatthew Jasper-1/+37
The borrow place *must* be a place that we track borrows for, otherwise we will likely ICE.
2019-01-31Auto merge of #57990 - Keruspe:beta, r=alexcrichtonbors-2/+2
[beta] rustbuild: fix build with rust 1.33 Fixes #57262
2019-01-30rustbuild: fix build with rust 1.33Marc-Antoine Perennou-2/+2
Fixes #57262 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2019-01-24Fix typo bug in DepGraph::try_mark_green().Michael Woerister-1/+18
2019-01-24Simplify the version checkTom Tromey-4/+3
Address the review comments by simplifying the version check to just "< 8".
2019-01-24Fix issue 57762Tom Tromey-1/+5
Issue 57762 points out a compiler crash when the compiler was built using a stock LLVM 7. LLVM 7 was released without a necessary fix for a bug in the DWARF discriminant code. This patch changes rustc to use the fallback mode on (non-Rust) LLVM 7. Closes #57762
2019-01-24make sure to accept all android licensesPietro Albini-1/+1
2019-01-21Auto merge of #57766 - Xanewok:beta-rls-version-bump, r=pietroalbinibors-0/+0
beta: Update RLS version to 1.33 We missed the 1.32 stable release for version bump, let's make it less confusing and backport a version bump for the current 1.33 beta. https://github.com/rust-lang/rls/issues/1239 r? @pietroalbini cc @nrc
2019-01-20beta: Update RLS version to 1.33Igor Matuszewski-0/+0
2019-01-19Update beta to released compilerMark Rousskov-2/+2
2019-01-16allow unused warnings related to rustc_layout_scalar_valid_range_startPietro Albini-0/+20
2019-01-16prepare beta 1.33.0Pietro Albini-5/+5
2019-01-16Auto merge of #57416 - alexcrichton:remove-platform-intrinsics, r=nagisabors-15986/+4
rustc: Remove platform intrinsics crate This was originally attempted in #57048 but it was realized that we could fully remove the crate via the `"unadjusted"` ABI on intrinsics. This means that all intrinsics in stdsimd are implemented directly against LLVM rather than using the abstraction layer provided here. That ends up meaning that this crate is no longer used at all. This crate developed long ago to implement the SIMD intrinsics, but we didn't end up using it in the long run. In that case let's remove it!
2019-01-15Auto merge of #57629 - matthiaskrgr:clippy_submodule_upd, r=oli-obkbors-10/+15
submodules: update clippy from c63b6349 to 1b89724b Changes: ```` Really fix issue number in `map_clone` test Fix issue number in `map_clone` test Remove `map_clone` fixed known problem Fix `map_clone` bad suggestion Add run-rustfix to unnecessary_fold Add run-rustfix to unit_arg test Add run-rustfix for types test Add run-rustfix to starts_ends_with Add run-rustfix to replace_const test Add run-rustfix to redundant_field_names Missing docs: don't require documenting Global Asm items. Add run-rustfix for precedence test Add run-rustfix to mem_replace test Add run-rustfix to map_clone test Add run-rustfix to large_digit_groups Add run-rustfix to into_iter_on_ref Add run-rustfix to infallible_destructuring_match Add rustfix to inconsistent_digit_grouping test Add run-rustfix to explicit_write test Add run-rustfix to excessive_precision test Add run-rustfix to duration_subsec test Disable deprecated_cfg_attr lint for inner attributes Add run-rustfix to collapsible_if test Update Readme Update Readme for (arguably) better readability rustup: the features if_while_or_patterns has been stabilized Fix comments in clippy_lints/src/len_zero.rs readme: update travis badge to reflect migration from travis-ci.org to travis-ci.com Remove all copyright license headers Move cast_ref_to_mut list to correctness group Rustftmt Don't import ty::Ref in cast_ref_to_mut lint Move a hint to an error message in cast_ref_to_mut lint Add a note to cast_ref_to_mut lint Use ty::Ref instead of ty::TyKind::Ref cast_ref_to_mut lint Add missing ` in default lint Improve tests and exclude nested impls Update `unwrap_get` code review suggestions Update known problems Restrict use_self on nested items Improve `get_unwrap` suggestion ````
2019-01-15Auto merge of #57630 - Centril:rollup, r=Centrilbors-35/+417
Rollup of 8 pull requests Successful merges: - #56044 (Drop partially bound function parameters in the expected order) - #57352 (forbid manually impl'ing one of an object type's marker traits) - #57456 (RawVec doesn't always abort on allocation errors) - #57467 (Implement `check_attribute` to forbid `#[allow_internal_unsafe]`) - #57579 (Add core::iter::once_with()) - #57587 (Add 'rustc-env:RUST_BACKTRACE=0' to const-pat-ice test) - #57608 (Simplify 'product' factorial example) - #57614 ([rustdoc] Fix crates filtering box not being filled) Failed merges: r? @ghost
2019-01-15Rollup merge of #57614 - GuillaumeGomez:fix-crate-filtering, r=QuietMisdreavusMazdak Farrokhzad-1/+1
[rustdoc] Fix crates filtering box not being filled Currently, the filter crate box (at the left of the search input) is always empty. To get the number of keys of dictionary in JS, you need to call `Object.keys()` on it. r? @QuietMisdreavus
2019-01-15Rollup merge of #57608 - timvisee:master, r=frewsxcvMazdak Farrokhzad-1/+1
Simplify 'product' factorial example This simplifies the [`factorial(n: 32)`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#examples-46) implementation as example for the `Iterator::product()` function. It currently uses unnecessary additional complexity. Although very minimal, I do not want to include it in some other irrelevant PR.
2019-01-15Rollup merge of #57587 - Aaron1011:fix/const-pat-ice, r=alexcrichtonMazdak Farrokhzad-0/+1
Add 'rustc-env:RUST_BACKTRACE=0' to const-pat-ice test This ensures that the test passes, regardless of what the user has set RUST_BACKTRACE to.
2019-01-15Rollup merge of #57579 - stjepang:once-with, r=SimonSapinMazdak Farrokhzad-0/+135
Add core::iter::once_with() Functions `iter::once()` and `iter::repeat()` construct iterators from values. The latter has the lazy variant `iter::repeat_with()`, but the former doesn't. This PR therefore adds `iter::once_with()`. Another way to think of `iter::once_with()` is that it's a function that converts `FnOnce() -> T` into `Iterator<Item = T>`. If this seems like a reasonable addition, I'll open a tracking issue and update the `#[feature(...)]` attributes.