Commit Graph

107859 Commits

Author SHA1 Message Date
Yuki Okushi
d1a7ae7d16 Allow whitespaces in revision flags 2020-02-16 22:53:28 +09:00
Ralf Jung
bec5d37ee1 debug_assert a few more raw pointer methods 2020-02-16 14:44:16 +01:00
bors
116dff95a3 Auto merge of #68997 - Zoxc:pure-node-id, r=petrochenkov
Panic if NodeIds are used for incremental compilation

r? @michaelwoerister
2020-02-16 12:16:49 +00:00
Amos Onn
943e65396d Improve #Safety of core::ptr::drop_in_place
Added missing conditions:
- Valid for writes
- Valid for destructing
2020-02-16 13:12:34 +01:00
Jonas Schievink
bb482ebf28 suspend -> yield 2020-02-16 13:08:36 +01:00
Camille GILLOT
e88500b5e1 Prune rustc dependencies. 2020-02-16 12:03:30 +01:00
Camille GILLOT
5d57208353 Gate macro use. 2020-02-16 12:03:13 +01:00
Camille GILLOT
0b93cfc1ee Prune features. 2020-02-16 12:02:51 +01:00
Camille GILLOT
795673ae20 Remove librustc_infer crate re-exports. 2020-02-16 12:02:37 +01:00
Camille GILLOT
bee6a5ac12 Other crates. 2020-02-16 11:59:35 +01:00
Camille GILLOT
2519f4a0a3 Make librustc_traits compile. 2020-02-16 11:57:52 +01:00
Camille GILLOT
1637aab15e Make librustc_mir compile. 2020-02-16 11:57:49 +01:00
Hiroki Noda
67068f35dd macOS: avoid calling pthread_self() twice 2020-02-16 19:53:42 +09:00
Camille GILLOT
4b57cb3cbe Make librustc_typeck compile. 2020-02-16 11:53:12 +01:00
Camille GILLOT
f07e889145 Make librustc_infer compile. 2020-02-16 11:49:29 +01:00
Camille GILLOT
187a9741d3 Make librustc compile. 2020-02-16 11:41:25 +01:00
Camille GILLOT
d5691209b6 Move librustc/{traits,infer} to librustc_infer. 2020-02-16 11:41:25 +01:00
David Ross
8ef3da0858 Fix test stderr after rebasing on master. 2020-02-15 22:08:29 -08:00
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
David Ross
c2d7ffb8a9 Remove trailing whitespace 2020-02-15 19:51:02 -08:00
David Ross
e3eefe2667 Remove extra debug print in unreachable! 2020-02-15 19:51:02 -08:00
David Ross
5dd646435b Fix related type ascription tests. 2020-02-15 19:51:02 -08:00
David Ross
f82ca8b0ef Add more error cases to issue 35813 tests 2020-02-15 19:51:02 -08:00
David Ross
0cf204930a Keep better fix suggestion if type ascription is likely unintended 2020-02-15 19:51:02 -08:00
David Ross
4fc0532269 Type ascription outputs a Type, not Cast
Previously this just errored out on all usages of type ascription,
which isn't helpful.
2020-02-15 19:51:02 -08:00
David Ross
5ce9b80c0f Refactor out error case & apply suggestions.
This is almost entirely refactoring and message changing, with the
single behavioral change of panicking for unexpected output.
2020-02-15 19:51:02 -08:00
David Ross
940f65782c Parse & reject postfix operators after casts
This adds parsing for expressions like 'x as Ty[0]' which will
immediately error out, but still give the rest of the parser a valid
parse tree to continue.
2020-02-15 19:50:50 -08: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
Mark Rousskov
bd12cd3d2f Formatter::sign is &'static str
The contents were always UTF-8 anyway, and &str has an equivalent representation
to &[u8], so this should not affect performance while removing unsafety at
edges.

It may be worth exploring a further adjustment that stores a single byte
(instead of 16) as the contents are always "", "-", or "+".
2020-02-15 18:17:51 -05: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