Commit Graph

107237 Commits

Author SHA1 Message Date
bors
8040bc9836 Auto merge of #69156 - ecstatic-morse:unified-dataflow-impls2, r=eddyb
Use `ResultsCursor` for `elaborate_drops`

Some cleanup after #68241. The old code was using a custom cursor-like struct called `InitializationData`.
2020-02-16 05:08:08 +00:00
bors
2a0d1cbd46 Auto merge of #68814 - Aaron1011:fix/proc-macro-order-two, r=petrochenkov
Record proc macro harness order for use during metadata deserialization

Fixes #68690

When we generate the proc macro harness, we now explicitly recorder the
order in which we generate entries. We then use this ordering data to
deserialize the correct proc-macro-data from the crate metadata.
2020-02-16 01:46:05 +00:00
Jonas Schievink
759526e513 Fix printing of Yield terminator 2020-02-16 00:57:48 +01:00
Oliver Middleton
3300725342 Fix running rustdoc-js test suite individually
Without `Compiletest.path` set running `x.py test src/test/rustdoc-js` would run the `rustdoc-js` test suite with everything filtered out.

As this was the only place setting `Compiletest.path` to `None` this removes the `Option` wrapper as well.
2020-02-15 23:14:46 +00:00
Ben Lewis
8904bddec5 Determine type of intrinsics instead of assuming the destination type is the same. 2020-02-16 11:39:04 +13:00
bors
8ba3ca0e6b Auto merge of #68668 - GuillaumeGomez:struct-variant-field-search, r=ollie27
Struct variant field search

Fixes #16017.

Reopening of #64724.

cc @tomjakubowski
cc @ollie27

r? @kinnison
2020-02-15 22:32:51 +00:00
Ralf Jung
97cc3a229b fix incremental tests 2020-02-15 23:02:58 +01:00
Mazdak Farrokhzad
f12ae4ac60 ast: tweak AssocItemKind::Macro comment 2020-02-15 22:36:03 +01:00
Mazdak Farrokhzad
fe62bed73b print_item_const: remove extraneous space 2020-02-15 22:33:21 +01:00
Mazdak Farrokhzad
d6238bd8d4 reject assoc statics & extern consts during parsing 2020-02-15 22:21:00 +01:00
Ben Lewis
774a029e96 Code review changes. 2020-02-16 09:59:01 +13:00
Aaron Hill
516459870c
Add additional comment 2020-02-15 15:51:40 -05:00
Aaron Hill
51a16e574a
Record proc macro harness order for use during metadata deserialization
Fixes #68690

When we generate the proc macro harness, we now explicitly recorder the
order in which we generate entries. We then use this ordering data to
deserialize the correct proc-macro-data from the crate metadata.
2020-02-15 15:48:36 -05:00
Ralf Jung
b6aaacd991 fix codegen tests 2020-02-15 21:37:53 +01:00
Mazdak Farrokhzad
5abedd81e0 visit: unify extern & assoc item visiting 2020-02-15 20:57:12 +01:00
Mazdak Farrokhzad
cf87edfdc5 pprust: unify extern & associated item printing 2020-02-15 20:57:12 +01:00
Mazdak Farrokhzad
0e0c0286a2 fuse extern & associated item parsing up to defaultness 2020-02-15 20:57:12 +01:00
Mazdak Farrokhzad
91110fda27 ast: make ForeignItemKind an alias of AssocItemKind 2020-02-15 20:57:12 +01:00
Mazdak Farrokhzad
35884fe168 parse extern consts 2020-02-15 20:57:12 +01:00
Mazdak Farrokhzad
f8d2264463 parse associated statics. 2020-02-15 20:57:12 +01:00
Mazdak Farrokhzad
1c2906ead3 ast/parser: fuse static & const grammars in all contexts. 2020-02-15 20:57:12 +01:00
Mazdak Farrokhzad
f3e9763543 ast: make = <expr>; optional in free statics/consts. 2020-02-15 20:57:12 +01:00
Yuki Okushi
2f39ec24b2 Add FIXME note 2020-02-16 04:36:44 +09:00
Ralf Jung
94047f18c2 remove no-longer-needed test 2020-02-15 19:40:33 +01:00
Yuki Okushi
9478503315 Add test for issue-68653 2020-02-16 03:22:00 +09:00
Yuki Okushi
426dcf0da0 Add test for issue-63952 2020-02-16 03:22:00 +09:00
Yuki Okushi
ecb8bf069e Add test for issue-62894 2020-02-16 03:22:00 +09:00
Ralf Jung
3134df2214 adjust run-fail tests 2020-02-15 19:02:36 +01:00
Yuki Okushi
f32447d541 Add test for issue-51798 2020-02-16 02:54:16 +09:00
Yuki Okushi
6351bfd182 Add test for issue-39618 2020-02-16 02:53:58 +09:00
John Kåre Alsaker
8a37811e2c Panic when hashing node IDs 2020-02-15 18:07:17 +01:00
Mazdak Farrokhzad
95dc9b9a73 ast: normalize ForeignItemKind::Ty & AssocItemKind::TyAlias. 2020-02-15 18:00:01 +01:00
Mazdak Farrokhzad
e2ae717265 ast: tweak comments of Foreign/AssocItemKind 2020-02-15 18:00:01 +01:00
Mazdak Farrokhzad
f06df1629e ast: colocate AssocItem with ForeignItem 2020-02-15 18:00:01 +01:00
Mazdak Farrokhzad
2fd15442f2 ast: move Generics into AssocItemKinds 2020-02-15 18:00:01 +01:00
John Kåre Alsaker
a7db5051d1 Treat NodeIs as pure values for incremental compilation 2020-02-15 17:50:11 +01:00
Guillaume Gomez
cadf9efad1 Clean up E0309 explanation 2020-02-15 16:41:21 +01:00
Ralf Jung
0c8c800f21
Tighter type bounds for messages
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2020-02-15 15:42:13 +01:00
Matthew Jasper
f2980e71d9 Add fast path for is_freeze 2020-02-15 14:41:34 +00:00
Matthew Jasper
0663f25375 Always qualify literals by type 2020-02-15 14:41:34 +00:00
Ralf Jung
c4a6f84b80 fix compile-fail 2020-02-15 14:57:13 +01:00
bors
61d9231ff2 Auto merge of #69168 - brainlock:test-textrel-regression, r=Mark-Simulacrum,tmandry
add regression test for issue #68794

This is a minimal regression test for the issue #68794: "TEXTREL in
i686", which was fixed with e86019c4a0.

The test links a minimal rust static library into a shared library, and
checks that the linker didn't have to add the TEXTREL flag.
2020-02-15 13:48:53 +00:00
Amos Onn
40ca167944 Improve #Safety in various methods in core::ptr
For all methods which read a value of type T, `read`, `read_unaligned`,
`read_volatile` and `replace`, added missing
constraint:
The value they point to must be properly initialized
2020-02-15 14:00:21 +01:00
Amos Onn
351782d30a Improve #Safety of core::ptr::replace
Added missing condition:
`dst` must be readable
2020-02-15 14:00:10 +01:00
Amos Onn
302b9e4b54 Improve #Safety in various methods in core::ptr
s/for reads and writes/for both ...
2020-02-15 13:58:54 +01:00
Vadim Petrochenkov
dcad07af8a parser: macro_rules is a weak keyword 2020-02-15 15:49:17 +03:00
Vadim Petrochenkov
1bd6b98220 Emit some additional unused_doc_comments lints outside of the main pass 2020-02-15 15:29:45 +03:00
Ralf Jung
25870a0b77 fix another test 2020-02-15 13:15:15 +01:00
Ralf Jung
415218fc8d expand assoc-const test a bit, just to be sure 2020-02-15 11:47:11 +01:00
Ralf Jung
2107e73d2f fix exceeding_bitshift lint and test 2020-02-15 11:43:54 +01:00