Pietro Albini
b2a002dc4b
Rollup merge of #56372 - wildarch:issue-55314-second-borrow-ref, r=davidtwco
...
Refer to the second borrow as the "second borrow" in E0501.rs
Fixes #55314 .
r? @davidtwco
2018-12-05 23:54:27 +01:00
bors
21cb46a6e9
Auto merge of #55922 - oli-obk:slice_pat_ice, r=zackmdavis
...
Fix ICE in `const` slice patterns
fixes #55911
based on https://github.com/rust-lang/rust/pull/55915
New commits start at eabc1551e0d0953f1951020afb5919ab4c129cf5
2018-12-05 07:16:17 +00:00
bors
b3af09205b
Auto merge of #56486 - matthewjasper:propagate-all-closure-bounds, r=pnkfelix
...
Propagate all closure requirements to the caller
Closes #56477
This should be backported to 1.32 if it doesn't make the cut.
r? @pnkfelix
cc @nikomatsakis
2018-12-04 20:56:11 +00:00
Oliver Scherer
690439bb45
Update ui tests
2018-12-04 10:06:05 +01:00
Oliver Scherer
374a096cb1
Remove unused stderr file
2018-12-04 10:06:05 +01:00
Oliver Scherer
1b636b1cd9
Newlines.... newlines everywhere
2018-12-04 10:06:05 +01:00
Oliver Scherer
296398ab52
Add a test ensuring that we don't regress this
2018-12-04 10:06:05 +01:00
Oliver Scherer
61efc3b71b
Update tests
2018-12-04 10:06:05 +01:00
Matthew Jasper
d748712521
Propagate all closure requirements to the caller
2018-12-03 23:17:02 +00:00
kennytm
81752fd85d
Rollup merge of #56412 - petrochenkov:extself, r=Centril
...
Update tracking issue for `extern_crate_self`
2018-12-03 18:07:11 +08:00
kennytm
441aaf8110
Rollup merge of #56395 - Centril:stabilize-dbg-macro, r=SimonSapin
...
Stabilize dbg!(...)
Per FCP in https://github.com/rust-lang/rust/issues/54306 (which is ~1 day from completion).
r? @SimonSapin
The PR is fairly isolated so a rollup should probably work.
2018-12-03 18:07:08 +08:00
kennytm
bf96a7bbed
Rollup merge of #56366 - alexreg:stabilise-self_in_typedefs, r=Centril
...
Stabilize self_in_typedefs feature
[**Tracking Issue**](https://github.com/rust-lang/rust/issues/49303 )
r? @centril
2018-12-03 18:07:07 +08:00
bors
b817d0b651
Auto merge of #56110 - varkor:inhabitedness-union-enum, r=cramertj
...
Consider references and unions potentially inhabited during privacy-respecting inhabitedness checks
It isn't settled exactly how references to uninhabited types and unions of uninhabited types should act, but we should be more conservative here, as it's likely it will be permitted to soundly have values of such types.
This will also be more important in light of the changes at https://github.com/rust-lang/rust/pull/54125 .
cc @RalfJung
2018-12-02 22:22:12 +00:00
Vadim Petrochenkov
df0ab06073
Update tracking issue for extern_crate_self
2018-12-01 18:58:43 +03:00
Vadim Petrochenkov
549bd45e9e
resolve: Support aliasing local crate root in extern prelude
2018-12-01 14:38:47 +03:00
Mazdak Farrokhzad
f4cde5bc4e
stabilize std::dbg!(...)
2018-12-01 02:54:09 +01:00
Alexander Regueiro
d609fdf775
Updated ui tests.
2018-11-30 22:12:39 +00:00
Alexander Regueiro
aa5a4ef59d
Removed feature gate.
2018-11-30 22:12:39 +00:00
kennytm
f3be931ab7
Rollup merge of #56337 - phansch:fix_const_ice, r=oli-obk
...
Fix const_fn ICE with non-const function pointer
Fixes #56164
2018-12-01 02:30:30 +08:00
kennytm
440bda4dc8
Rollup merge of #56365 - alexreg:stabilise-self_struct_ctor, r=Centril
...
Stabilize self_struct_ctor feature.
[**Tracking Issue**](https://github.com/rust-lang/rust/issues/51994 )
2018-12-01 02:03:59 +08:00
Alexander Regueiro
a8248976fd
Moved feature-gate tests to correct dir.
2018-11-30 15:48:16 +00:00
Alexander Regueiro
24717fdaa1
Updated ui tests.
2018-11-30 15:42:57 +00:00
Alexander Regueiro
d49a8d558f
Removed feature gate.
2018-11-30 15:42:43 +00:00
Daan de Graaf
1560a75f6a
Refer to the second borrow as the "second borrow".
2018-11-30 14:55:51 +01:00
Philipp Hansch
9b847f0f96
Fix const_fn ICE with non-const function pointer
2018-11-30 08:43:50 +01:00
Eduard-Mihai Burtescu
dcf736d7ad
tests: use alloc instead of libc in unnecessary-extern-crate, to make it work on wasm.
2018-11-30 06:15:20 +02:00
Eduard-Mihai Burtescu
3369929ddb
tests: use force-host and no-prefer-dynamic in all proc_macro tests.
2018-11-30 06:15:20 +02:00
Eduard-Mihai Burtescu
fcca22cb40
tests: move all proc_macro tests from -fulldeps.
2018-11-30 06:15:20 +02:00
Alexander Regueiro
5f19cdc4f8
Changed test for issue 56202 to compile-pass.
2018-11-30 03:12:10 +00:00
Esteban Küber
c144dc07e3
Fix ICE with feature self_struct_ctor
2018-11-30 03:12:10 +00:00
varkor
1cdf5df451
Fix error message after rebase
2018-11-29 21:00:11 +00:00
varkor
46ef9f820c
Fix broken tests
2018-11-29 20:58:38 +00:00
varkor
32a8dec889
Clarify undecided semantics
2018-11-29 20:58:38 +00:00
varkor
d2b340758b
Add a test for uninhabitedness changes
2018-11-29 20:58:37 +00:00
Guillaume Gomez
3b64f86beb
Rollup merge of #56330 - estebank:cleanup-span, r=zackmdavis
...
Clean up span in non-trailing `..` suggestion
2018-11-29 13:10:54 +01:00
Guillaume Gomez
1fe2085441
Rollup merge of #56322 - petrochenkov:edlints, r=eddyb
...
resolve: Fix false-positives from lint `absolute_paths_not_starting_with_crate`
Fixes https://github.com/rust-lang/rust/issues/56311 (stable-to-beta regression)
2018-11-29 13:10:53 +01:00
Guillaume Gomez
796892e0ef
Rollup merge of #56220 - estebank:suggest-lifetime-move, r=nikomatsakis
...
Suggest appropriate place for lifetime when declared after type arguments
2018-11-29 13:10:39 +01:00
Guillaume Gomez
aebf07e3eb
Rollup merge of #56114 - varkor:nonexhaustive-backticks, r=nikomatsakis
...
Enclose type in backticks for "non-exhaustive patterns" error
This makes the error style consistent with the convention in error messages.
2018-11-29 13:10:33 +01:00
Oliver Scherer
8f9a093f52
Fix another related ICE
2018-11-29 12:58:25 +01:00
Oliver Scherer
28cc3405a8
r/\t/ /
2018-11-29 10:16:04 +01:00
Oliver Scherer
9c282b44c2
Support arbitrary slice constants for pattern deaggregation
2018-11-29 10:16:04 +01:00
Oliver Scherer
7df1d9f656
Allow constants of byte slice type as patterns
2018-11-29 10:16:03 +01:00
bors
5a03532ea9
Auto merge of #56245 - mark-i-m:stabilize_ques_kleene, r=alexcrichton
...
Stabilize feature `macro_at_most_once_rep`
a.k.a. `?` Kleene operator 🎉
cc #48075
r? @Centril
2018-11-29 06:44:12 +00:00
Esteban Küber
66a2c39290
Clean up span in non-trailing .. suggestion
2018-11-28 16:05:02 -08:00
Vadim Petrochenkov
d77edb6458
resolve: Fix false-positives from lint absolute_paths_not_starting_with_crate
2018-11-28 22:57:25 +03:00
Mark Mansi
5d7717360c
fix test
2018-11-27 18:21:10 -06:00
Mark Mansi
aeede9eb46
fix test
2018-11-27 13:13:11 -06:00
Mark Mansi
e97edad935
update tests
2018-11-27 13:13:11 -06:00
bors
400c2bc5ed
Auto merge of #56264 - petrochenkov:typonly, r=nikomatsakis
...
resolve: Extern prelude is for type namespace only
Fixes https://github.com/rust-lang/rust/issues/56263 (stable-to-beta regression)
2018-11-27 19:04:44 +00:00
bors
aeff91d977
Auto merge of #56251 - scalexm:root-universe, r=nikomatsakis
...
Put all existential ty vars in the `ROOT` universe
r? @nikomatsakis
2018-11-27 15:54:21 +00:00