John Kåre Alsaker
1bdd2f699b
Conditionally skip two passes if their related attributes were not found
2019-01-28 05:46:53 +01:00
bors
c32515566f
Auto merge of #57910 - Mark-Simulacrum:delete-test, r=petrochenkov
...
Delete long-ignored and useless test
cc @pnkfelix (https://github.com/rust-lang/rust/issues/13745#issuecomment-457599109 )
r? @petrochenkov as you re-enabled this test in 21d67c45a3
, https://github.com/rust-lang/rust/pull/55236
2019-01-28 03:46:25 +00:00
Andy Russell
5e67021172
add typo suggestion to unknown attribute error
2019-01-27 21:56:50 -05:00
bors
ec504def36
Auto merge of #57442 - oli-obk:lazy_const, r=RalfJung
...
Simplify `ConstValue::ScalarPair`
While looking at #57432 I realized that some of our types for representing constants are very big. This reduces `LazyConst` to 3/4th of its original size and simplifies some code around slices at the same time.
r? @RalfJung
2019-01-28 00:46:07 +00:00
Wim Looman
a21c95f08e
Mark non-static generators as always Unpin
2019-01-27 22:59:00 +01:00
Wim Looman
c4bf5f9d63
Temporary workaround for travis diagnostic difference
2019-01-27 22:59:00 +01:00
Wim Looman
e7d66758cf
Update generator upvar debug info
2019-01-27 22:58:59 +01:00
Wim Looman
be3989301a
Update generator transform and generated function signature
2019-01-27 22:58:59 +01:00
Wim Looman
0c203965e2
impl Generator for Pin<Box<Generator>>
2019-01-27 22:58:59 +01:00
Wim Looman
730b18b6e5
Mark static generators as !Unpin
2019-01-27 22:58:59 +01:00
Wim Looman
a3fdee9a75
Change generator trait to use pinning
2019-01-27 22:58:53 +01:00
bors
da6ab956e1
Auto merge of #56932 - clarcharr:iter_refactor, r=Centril
...
Refactor core::iter module
A while back, I refactored `core::ops` in #42523 because the module had become a giant mess and was difficult to modify. Now, I'm doing the same with the `core::iter` module.
Like the `core::ops` refactor, things have been split up into multiple commits to make rebasing easier, and so that you can follow changes. Although the diffs are hard to decipher, the only actual code changes I've made in the first few commits are to modify exports and imports. I save all of the actual code refactoring, e.g. modifying what methods are called, for the end.
2019-01-27 20:50:17 +00:00
Oliver Scherer
fe50b4eb1d
ConstValue::ScalarPair
only needs to represent slices
2019-01-27 21:41:35 +01:00
Oliver Scherer
2a1748834e
Add some size assertions for const eval types
2019-01-27 21:41:34 +01:00
Oliver Scherer
1578955500
Fix indentation
2019-01-27 20:30:35 +01:00
bors
8611577360
Auto merge of #57765 - Mark-Simulacrum:bootstrap-bump, r=alexcrichton
...
Bump bootstrap compiler to 1.33 beta
r? @alexcrichton or @pietroalbini
cc @rust-lang/release
2019-01-27 18:18:17 +00:00
Mark Rousskov
e0bc0ba281
Update comment in test which has changed its purpose
2019-01-27 08:59:58 -07:00
Mark Rousskov
cd39cf748e
Update cargo to fix deprecation warnings
...
Implemented in rust-lang/cargo#6600
2019-01-27 08:54:56 -07:00
bors
71c365c380
Auto merge of #57826 - danielhenrymantilla:master, r=Centril
...
Fixed Deref coercion explanation for DerefMut using shared references
2019-01-27 15:33:45 +00:00
Rémy Rakic
e077501b54
Fix stray typo
2019-01-27 10:52:45 +01:00
Rémy Rakic
43c0518d5b
Extract the notes explaining the placeholder region errors to a helper fn
2019-01-27 10:52:45 +01:00
Rémy Rakic
489bc4a2c6
When mentioning lifetimes, put either the trait ref or the self type closer to the lifetimes
...
When mentioning lifetimes, only invert wording between the expected trait and the self type when the self type has the vid.
This way, the lifetimes always stay close to the self type or trait ref that actually contains them.
2019-01-27 10:52:45 +01:00
Rémy Rakic
1730ad4d1c
Fix issue-57362-1.rs attributes
2019-01-27 10:52:45 +01:00
Niko Matsakis
790ed9128a
comment the pattern
2019-01-27 10:52:44 +01:00
Niko Matsakis
ec6405bccd
identify when implemented for "some specific lifetime"
2019-01-27 10:52:44 +01:00
Niko Matsakis
ab80162e3f
add a lot more debug!
to try_report_placeholders_trait
2019-01-27 10:52:44 +01:00
Niko Matsakis
c5dea5753f
break apart tests
2019-01-27 10:52:43 +01:00
Remy Rakic
f5a74d40d9
Test new placeholder error messages in previously untested combinations
2019-01-27 10:52:43 +01:00
Remy Rakic
a79f135be6
Update test expectations for new placeholder error messages
2019-01-27 10:52:43 +01:00
lqd
ce61b1b9fa
Update two E308 tests to the new placeholder error
2019-01-27 10:52:42 +01:00
lqd
55389f9171
Try to reword placeholder error messages to make them clearer
2019-01-27 10:52:42 +01:00
lqd
823c888be2
Try to resolve type vars in the placeholder errors trait refs
...
These can sometimes be unresolved: some of the rustc UI tests show this.
2019-01-27 10:52:41 +01:00
lqd
a6028263d2
Handle higher-ranked lifetime conflict errors where the subtype is the sup
region
...
These are happening since the switch to universes, and will now go through the "placeholder error" path, instead of the current fallback of E308 "mismatched types" errors.
2019-01-27 10:52:41 +01:00
lqd
c1437c944c
Make NiceRegionError use the InferCtxt
instead of its TyCtxt
...
Some errors (e.g placeholder errors) have unresolved type vars so this will allow to use `resolve_type_vars_if_possible` when needed.
2019-01-27 10:52:40 +01:00
bors
01af12008d
Auto merge of #57927 - Alexendoo:mem-drop-nll-docs, r=Centril
...
Remove lexical scope examples from std::mem::drop
The example no longer produces an error in the 2018 edition
2019-01-27 09:19:00 +00:00
bors
1484d0d123
Auto merge of #57907 - euclio:applicability-rename, r=estebank
...
remove deprecated suggestion functions
This PR removes the (now unused) deprecated suggestion functions and removes `_with_applicability` from their replacements' names.
This PR will break clippy, but I'll open a clippy PR once this is merged.
2019-01-27 06:35:51 +00:00
Andy Russell
0897ffc28f
remove _with_applicability
from suggestion fns
2019-01-26 23:07:55 -05:00
Andy Russell
8eaa84c79f
document Applicability
2019-01-26 23:06:08 -05:00
bors
677064b979
Auto merge of #57925 - fintelia:riscv-cas, r=nagisa
...
Enable RISC-V atomic compare and swap
Fixes #56564
2019-01-27 03:57:54 +00:00
bors
491680114a
Auto merge of #57871 - Mark-Simulacrum:fix-compiletest-stamp, r=oli-obk
...
Correctly set filetime for copied LLVM
This also makes compiletest no longer always retest everything.
Fixes #57864
2019-01-27 00:07:53 +00:00
Mark Rousskov
7a58c6d1de
Replace deprecated ATOMIC_INIT consts
2019-01-26 15:27:38 -07:00
Alex Macleod
9c9144fc1b
Remove lexical scope examples from std::mem::drop
...
The example no longer produces an error in the 2018 edition
2019-01-26 21:59:17 +00:00
Jonathan Behrens
607c5431ae
Enable RISC-V atomic compare and swap
2019-01-26 16:42:42 -05:00
bors
20c2cba61d
Auto merge of #57918 - Centril:rollup, r=Centril
...
Rollup of 7 pull requests
Successful merges:
- #57407 (Stabilize extern_crate_self)
- #57703 (Make MutexGuard's Debug implementation more useful.)
- #57764 (Fix some minor warnings)
- #57825 (un-deprecate mem::zeroed)
- #57827 (Ignore aarch64 in simd-intrinsic-generic-reduction)
- #57908 (resolve: Fix span arithmetics in the import conflict error)
- #57913 (Change crate-visibility-modifier issue number in The Unstable Book)
Failed merges:
r? @ghost
2019-01-26 18:14:46 +00:00
Andy Russell
8db66ca53e
use SOURCE_DATE_EPOCH
for man page time if set
2019-01-26 12:54:09 -05:00
Mazdak Farrokhzad
97833ee506
Rollup merge of #57913 - h-michael:fix-crate-visibility-modifier-issue-number, r=Centril
...
Change crate-visibility-modifier issue number in The Unstable Book
#45388 is closed.
Because, it's duplicate issue of #53120 .
2019-01-26 18:21:49 +01:00
Mazdak Farrokhzad
bbe8dd9ca3
Rollup merge of #57908 - petrochenkov:errepice, r=estebank
...
resolve: Fix span arithmetics in the import conflict error
https://github.com/rust-lang/rust/pull/56937 rebased and fixed
Fixes https://github.com/rust-lang/rust/issues/56411
Fixes https://github.com/rust-lang/rust/issues/57071
Fixes https://github.com/rust-lang/rust/issues/57787
r? @estebank
2019-01-26 18:21:47 +01:00
Mazdak Farrokhzad
1206264fb2
Rollup merge of #57827 - parched:ignore, r=nikomatsakis
...
Ignore aarch64 in simd-intrinsic-generic-reduction
This fails on AArch64 see https://github.com/rust-lang/rust/issues/54510
Disabling it for now until it's fixed/implemented in LLVM
cc @gnzlbg
2019-01-26 18:21:46 +01:00
Mazdak Farrokhzad
5ce3f74096
Rollup merge of #57825 - RalfJung:zeroed, r=nikomatsakis
...
un-deprecate mem::zeroed
as per the discussion around <https://github.com/rust-lang/rust/issues/53491#issuecomment-451454793 >
2019-01-26 18:21:45 +01:00
Mazdak Farrokhzad
51f53687e7
Rollup merge of #57764 - Xanewok:tiny-tweaks, r=nikomatsakis
...
Fix some minor warnings
Since apparently RLS works when initialized in the root repository (🎉 ) I decided to fix some of the issues it caught.
There are a lot of unused attribute warnings left on `rustc_on_unimplemented` and `rustc_layout_scalar_valid_range_start` but I imagine we can't do much about it due to 2-stage compilation?
2019-01-26 18:21:44 +01:00