Oliver Scherer
cc3470ce3b
Add test for dereferencing raw pointers and immediately referencing again
2018-12-04 10:17:36 +01:00
Oliver Scherer
f2ae7b78d6
Allow calling const unsafe fn in const fn behind a feature gate
2018-12-04 10:17:36 +01: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
John Ginger
70536d4b4c
Fix stderr file (unused variable)
2018-12-03 22:53:03 +00:00
Vadim Petrochenkov
101467c152
syntax: dyn is a used keyword now
2018-12-04 00:30:27 +03:00
Oliver Scherer
1fb82b5a03
Handle existential types in dead code analysis
2018-12-03 14:44:58 +01:00
John Ginger
4cf5702d52
Fix stderr files
2018-12-03 10:28:19 +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
2d4b633be3
Delay gensym creation for "underscore items" until name resolution
...
Prohibit `static _`
Fis unused import warnings for `use foo as _`
Add more tests for `use foo as _`
2018-12-02 15:42:30 +03:00
Vadim Petrochenkov
c658d73401
resolve: Avoid "self-confirming" resolutions in import validation
2018-12-02 15:42:30 +03: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
Esteban Küber
2645871111
Use appropriate terminology based on heuristic
2018-11-30 15:09:39 -08: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
varkor
4406391cdc
Fix bug in matching on floating-point ranges
2018-11-30 21:15:48 +00:00
varkor
0fb52fb538
Separate out precise_pointer_size_matching tests from exhaustive_integer_patterns tests
2018-11-30 21:13:07 +00:00
Esteban Küber
0952856e6c
Suggest an appropriate token when encountering pub Ident<'a>
2018-11-30 11:48:08 -08: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
varkor
4fc5758a67
Update existing tests with more precise error messages
2018-11-30 13:53:15 +00:00
varkor
e018268ffa
Add precise_pointer_size_matching feature
2018-11-30 10:41:09 +00:00
varkor
f1f6d87eab
Stabilise exhaustive_integer_patterns
2018-11-30 10:40:59 +00:00
Oliver Scherer
9d2f97be78
Test float assign ops
2018-11-30 09:44:16 +01:00
Oliver Scherer
42e5317f1d
Add trailing newline
2018-11-30 09:44:16 +01:00
Oliver Scherer
172b428881
Re-add accidentally deleted test
2018-11-30 09:44:16 +01:00
Oliver Scherer
16d2a92b3d
Improve the diagnostic message
2018-11-30 09:44:15 +01:00
Oliver Scherer
8937faa837
Reenable const_let feature gate
2018-11-30 09:44:15 +01:00
Oliver Scherer
866664c8bb
Add a test for single variant matches
2018-11-30 09:44:06 +01:00
Oliver Scherer
d8ece188b8
Improve the error around short circuiting and let bindings
2018-11-30 09:44:06 +01:00
Oliver Scherer
d62bcad38d
Allow let bindings everywhere
2018-11-30 09:44:06 +01:00
Oliver Scherer
7ec3c10d7e
Add tests for mutable borrows
2018-11-30 09:43:41 +01:00
Oliver Scherer
59c6c4942a
Also test the const_let feature gate in statics
2018-11-30 09:43:41 +01:00
Oliver Scherer
ef38afc83d
Add a test for various const let features
2018-11-30 09:43:41 +01:00
Oliver Scherer
52b67b1766
Remove a bunch of now-unnecessary const_let feature gates
2018-11-30 09:43:41 +01:00
Oliver Scherer
dba5ba02f7
Update a test's diagnostics
2018-11-30 09:43:41 +01:00
Oliver Scherer
4d2bed9460
Stabilize const_let inside const functions
2018-11-30 09:43:41 +01:00