Ryan Gorup
ef0f49054f
Tests around moving parts of structs and tuples across await points
2019-08-05 16:19:20 -07:00
Matthew Jasper
d9d9246418
Remove gensym from format_args
2019-08-05 23:50:47 +01:00
Matthew Jasper
7b41fd2158
Make some items in core::unicode private
...
They were reachable through opaque macros defined in `core`
2019-08-05 23:50:47 +01:00
Matthew Jasper
8ae8bc2808
Fix various issues with making items reachable through macros
...
* Allow items to be accessible through private modules and fields when a
macro can access them.
* Don't mark type-private items as reachable.
* Never make items exported/public via macros
2019-08-05 23:50:47 +01:00
Alexander Regueiro
0410e320e2
Changed tests to check-pass.
2019-08-05 23:46:04 +01:00
Guillaume Gomez
4fb29f9fd2
Add test for DerefMut methods
2019-08-06 00:41:52 +02:00
Santiago Pastorino
f85fc7168c
PlaceRef's base is already a reference
2019-08-06 00:41:16 +02:00
Tyler Mandry
9058bf2100
Make use of possibly uninitialized data a hard error
...
This is one of the behaviors we no longer allow in NLL. Since it can
lead to undefined behavior, I think it's definitely worth making it a
hard error without waiting to turn off migration mode (#58781 ).
Closes #60450 .
My ulterior motive here is making it impossible to leave variables
partially initialized across a yield (see discussion at #63035 ), so
tests are included for that.
2019-08-05 14:57:12 -07:00
Guillaume Gomez
d89bf91b2d
Display methods from DerefMut in the sidebar as well
2019-08-05 23:14:22 +02:00
Ralf Jung
7c374cf7d2
don't ignore mir_dump folder
2019-08-05 22:30:13 +02:00
Santiago Pastorino
30910eef36
Make qualify consts in_projection use PlaceRef
2019-08-05 21:39:22 +02:00
Nikita Popov
777e2dd3b6
Update LLVM submodule
2019-08-05 21:16:55 +02:00
bors
c4715198b5
Auto merge of #59369 - oli-obk:unwrap_usICE, r=eddyb,nikomatsakis
...
`unwrap_usize` should at least try to evaluate the underlying constant
r? @eddyb
fixes #59016
I know that I'm still using `ParamEnv` wrongly, but that's a preexisting issue not amplified by this PR.
2019-08-05 19:06:50 +00:00
Ralf Jung
e1875742d0
assume_init: warn about valid != safe
2019-08-05 20:13:59 +02:00
Kornel
3bfb4c3c25
Don't recommend extern crate
syntax
2019-08-05 18:19:01 +01:00
Ralf Jung
1f018636e3
improve align_offset docs
2019-08-05 18:38:10 +02:00
Mark Rousskov
3cd7f08ed1
Force callers of resolve_ast_path to deal with Res::Err correctly
2019-08-05 12:31:00 -04:00
Oliver Scherer
bd57498e7d
Get rid of one more useless lift
invocation
2019-08-05 17:49:40 +02:00
Oliver Scherer
f2079338b5
Update to new passing-ui-test scheme
2019-08-05 17:48:05 +02:00
Oliver Scherer
d1f62b92eb
Prevent array length printing cycle with debug assertions
2019-08-05 17:48:05 +02:00
Oliver Scherer
7385f2177f
Fixup: eval_usize needs param env
2019-08-05 17:48:05 +02:00
Oliver Scherer
2d86d040a5
Address comment and formatting nits
2019-08-05 17:48:05 +02:00
Oliver Scherer
f4f957d00b
Clear the ParamEnv where its information is irrelevant
2019-08-05 17:48:05 +02:00
Oliver Scherer
7710820d18
Fiddle param env through to try_eval_bits
in most places
2019-08-05 17:48:05 +02:00
Oliver Scherer
f9e29b279c
Add regression tests
2019-08-05 17:48:04 +02:00
Oliver Scherer
9b87d22ea8
Don't abort on unevaluated constants without at least tryting to eval them
2019-08-05 17:48:04 +02:00
Oliver Scherer
437f017e2e
Clean up the ty::Const::assert*
methods
2019-08-05 17:48:04 +02:00
bors
f6ecdc2f61
Auto merge of #61491 - stjepang:impls-for-accesserror, r=dtolnay
...
Add a few trait impls for AccessError
2019-08-05 15:30:40 +00:00
Alexander Regueiro
0994cf4ab0
Added another test.
2019-08-05 16:07:26 +01:00
Mark Rousskov
288b4e9078
Don't store &Span
...
This is just needless indirection.
2019-08-05 10:29:06 -04:00
Jake Goulding
32324d22c3
Add implementations for converting boxed slices into boxed arrays
...
This mirrors the implementations of reference slices into arrays.
2019-08-05 10:26:53 -04:00
David Laban
f40190a6a5
test drop order for parameters when a future is dropped part-way through execution
2019-08-05 15:26:08 +01:00
Mark Rousskov
18130ef044
Replace error callback with Result
2019-08-05 10:21:25 -04:00
Alexander Regueiro
4e0e645dd9
Added test for issue.
2019-08-05 15:16:28 +01:00
Niko Matsakis
e0712c898e
useful debug
2019-08-05 15:16:27 +01:00
Niko Matsakis
63a67a076f
useful comments
2019-08-05 15:16:27 +01:00
Alexander Regueiro
709b924643
Ensure type_param_predicates
fn only returns predicates for type param with given def-ID.
2019-08-05 15:16:27 +01:00
Alexander Regueiro
3d9d36b3ff
Got rid of concept of 'principal trait' in more places in codebase.
2019-08-05 15:16:27 +01:00
Alexander Regueiro
8f9ca24f55
A few cosmetic improvements.
2019-08-05 15:16:27 +01:00
Ralf Jung
90b95cf53f
fix slice comparison
...
Co-Authored-By: Aleksey Kladov <aleksey.kladov@gmail.com>
2019-08-05 15:30:08 +02:00
Mark Rousskov
fbf93d4931
Remove leftover AwaitOrigin
...
This was missed in PR #62293 .
2019-08-05 09:14:51 -04:00
Mark Rousskov
8849149745
Make mk_attr_id private to libsyntax
2019-08-05 08:48:22 -04:00
Mark Rousskov
24a491f40c
Drop explicit span argument from mk_name_value_item
2019-08-05 08:48:22 -04:00
Mark Rousskov
ab3fb1e775
Drop span argument from mk_list_item
2019-08-05 08:45:00 -04:00
Aleksey Kladov
b3e8c8bbe2
adapt rustdoc to infailable lexer
2019-08-05 13:15:12 +03:00
Aleksey Kladov
58ac81a60f
add unknown token
2019-08-05 13:15:11 +03:00
Aleksey Kladov
b5e35b128e
remove special code path for unknown tokens
2019-08-05 13:15:11 +03:00
Igor Matuszewski
2eb06cbce1
Update RLS
2019-08-05 12:08:57 +02:00
Ralf Jung
39185dd398
update getrandom
2019-08-05 11:23:06 +02:00
Ralf Jung
4e51ef7ccd
Test content, not value
...
Co-Authored-By: Aleksey Kladov <aleksey.kladov@gmail.com>
2019-08-05 11:21:15 +02:00