summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-01-14stable 1.32.0 releasePietro Albini-1/+1
2019-01-11Rollup merge of #57483 - petrochenkov:beta, r=pietroalbiniPietro Albini-337/+299
2019-01-11use the correct supertrait substitution in `object_ty_for_trait`Ariel Ben-Yehuda-9/+47
Fixes #57156.
2019-01-10Fix rebaseVadim Petrochenkov-44/+28
2019-01-10Fix a hole in generic parameter import future-proofingVadim Petrochenkov-12/+68
Add some tests for buggy derive helpers
2019-01-10Stabilize `uniform_paths`Vadim Petrochenkov-243/+52
2019-01-10resolve: Prohibit use of imported tool modulesVadim Petrochenkov-6/+51
2019-01-10resolve: Prohibit use of imported non-macro attributesVadim Petrochenkov-6/+42
2019-01-10resolve: Prohibit use of uniform paths in macros originating from 2015 editionVadim Petrochenkov-5/+10
...while still keeping ambiguity errors future-proofing for uniform paths. This corner case is not going to be stabilized for 1.32 and needs some more general experiments about retrofitting 2018 import rules to 2015 edition
2019-01-10resolve: Assign `pub` and `pub(crate)` visibilities to `macro_rules` itemsVadim Petrochenkov-42/+20
2019-01-10resolve: Fix an ICE in import validationVadim Petrochenkov-6/+45
2019-01-10resolve: Avoid "self-confirming" resolutions in import validationVadim Petrochenkov-36/+46
2019-01-05Auto merge of #57019 - QuietMisdreavus:semi-revert-doctest-parsing, ↵bors-3/+48
r=GuillaumeGomez [beta] rustdoc: semi-revert libsyntax doctest parsing if a macro is wrapping main Fixes https://github.com/rust-lang/rust/issues/56898 This is a patch to doctest parsing on beta (that i plan to "forward-port" to master) that reverts to the old text-based `fn main` scan if it found a macro invocation in the doctest but did not find a main function. This should solve situations like `allocator_api` which wrap their main functions in a macro invocation, but doesn't solve something like the initial version of `quicli` which used a macro to *generate* the main function. (Properly doing the latter involves running macro expansion before checking, which is a bit too involved for a beta fix.)
2019-01-04Call poly_project_and_unify_type on types that contain inference typesAaron Hill-2/+36
Commit f57247c48cb59 (Ensure that Rusdoc discovers all necessary auto trait bounds) added a check to ensure that we only attempt to unify a projection predicatre with inference variables. However, the check it added was too strict - instead of checking that a type *contains* an inference variable (e.g. '&_', 'MyType<_>'), it required the type to *be* an inference variable (i.e. only '_' would match). This commit relaxes the check to use 'ty.has_infer_types', ensuring that we perform unification wherever possible. Fixes #56822
2019-01-04Fix Tidy errorAaron Hill-1/+1
2019-01-04Filter out self-referential projection predicatesAaron Hill-1/+66
If we end up with a projection predicate that equates a type with itself (e.g. <T as MyType>::Value == <T as MyType>::Value), we can run into issues if we try to add it to our ParamEnv.
2019-01-04Check all substitution parameters for inference variablesAaron Hill-3/+8
2019-01-04Ensure that Rusdoc discovers all necessary auto trait boundsAaron Hill-17/+82
Fixes #50159 This commit makes several improvements to AutoTraitFinder: * Call infcx.resolve_type_vars_if_possible before processing new predicates. This ensures that we eliminate inference variables wherever possible. * Process all nested obligations we get from a vtable, not just ones with depth=1. * The 'depth=1' check was a hack to work around issues processing certain predicates. The other changes in this commit allow us to properly process all predicates that we encounter, so the check is no longer necessary, * Ensure that we only display predicates *without* inference variables to the user, and only attempt to unify predicates that *have* an inference variable as their type. Additionally, the internal helper method is_of_param now operates directly on a type, rather than taking a Substs. This allows us to use the 'self_ty' method, rather than directly dealing with Substs.
2019-01-04Rollup merge of #57292 - ehuss:update-beta-cargo, r=nikomatsakisPietro Albini-0/+0
2019-01-04Rollup merge of #57301 - matthiaskrgr:beta_bootstrap, r=pietroalbiniPietro Albini-2/+2
2019-01-04Rollup merge of #57300 - Xanewok:beta, r=pietroalbiniPietro Albini-0/+0
2019-01-04Add missing 'static bound for the Machine traitMatthew Jasper-1/+1
2019-01-04Wf-check the output type of a function in MIR-typeckMatthew Jasper-1/+39
2019-01-04resolve: Never override real bindings with `Def::Err`s from error recoveryVadim Petrochenkov-26/+33
2019-01-04resolve: Fix another ICE in import validationVadim Petrochenkov-5/+19
2019-01-03Fix alignment for array indexingNikita Popov-3/+93
We need to reduce the alignment with the used offset. If the offset isn't known, we need to reduce with the element size to support arbitrary offsets.
2019-01-03[beta] Update RLS to include 100% CPU on hover bugfixIgor Matuszewski-0/+0
Beta backport of a fix that already was backported to stable, see https://github.com/rust-lang/rust/issues/56726 and https://github.com/rust-lang/rls/pull/1170 for the underlying RLS issue. Also includes the fix for https://github.com/rust-lang/rls/issues/1154 (respecting target-dir specified in .cargo/config for RLS artifacts).
2019-01-03beta: bootstrap from latest stable (1.31.1)Matthias Krüger-2/+2
2019-01-02[BETA] Update cargoEric Huss-0/+0
2019-01-01fix test outputPietro Albini-10/+2
2018-12-31Corrected expected test err messages.Alexander Regueiro-10/+10
2018-12-31Fixed minor issues raised in review.Alexander Regueiro-11/+11
2018-12-31Added test for issue #56835.Alexander Regueiro-0/+25
2018-12-31Fixed issue #56199.Alexander Regueiro-55/+151
2018-12-31improve tests as suggested by review commentsAriel Ben-Yehuda-2/+92
2018-12-31fix trait objects with a Self-having projection vaAriel Ben-Yehuda-3/+103
This follows ALT2 in the issue. Fixes #56288.
2018-12-31Update tests to changes on masterOliver Scherer-2/+10
2018-12-31Also test projectionsOliver Scherer-1/+18
2018-12-31Fix a recently introduces regressionOliver Scherer-6/+44
2018-12-31Explain the mathOliver Scherer-4/+9
2018-12-31Remove a wrong multiplier on relocation offset computationOliver Scherer-4/+13
2018-12-20semi-revert libsyntax doctest parsing if a macro is wrapping mainQuietMisdreavus-3/+48
2018-12-18Add `--pinentry-mode=loopback` to deployment scriptAlex Crichton-1/+2
Apparently this changed with gpg2 or... something like that?
2018-12-18Fix gpg signing in manifest builderMark Rousskov-0/+1
GPG versions 2.x+ require that --batch be passed if --passphrase-fd is to be accepted.
2018-12-18Build manifest tool on mingw-check builderMark Rousskov-1/+2
This builder is not really the correct place to put this, but it definitely has the time budget and checking this tool builds on just one platform is more than sufficient.
2018-12-17Rollup merge of #56819 - QuietMisdreavus:backport-src-lines-fix r=pietroalbiniPietro Albini-3/+3
2018-12-17Rollup merge of #56893 - alexcrichton:new-llvm-beta r=Mark-SimulacrumPietro Albini-4/+4
2018-12-17Don't use ReErased in deferred sizedness checking.Masaki Hara-2/+14
2018-12-17Normalize type before deferred sizedness checking.Masaki Hara-0/+12
2018-12-17Increase required version for crates.io `libc` to get fix from PR ↵Felix S. Klock II-1/+1
rust-lang/libc#1057. Part of issue #55465