]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoRollup merge of #69200 - jonas-schievink:yield-print, r=eddyb,Zoxc
Dylan DPC [Tue, 18 Feb 2020 15:07:25 +0000 (16:07 +0100)]
Rollup merge of #69200 - jonas-schievink:yield-print, r=eddyb,Zoxc

Fix printing of `Yield` terminator

Addresses the bug found in https://github.com/rust-lang/rust/issues/69039#issuecomment-586633495

4 years agoRollup merge of #69192 - JohnTitor:add-tests, r=Centril
Dylan DPC [Tue, 18 Feb 2020 15:07:24 +0000 (16:07 +0100)]
Rollup merge of #69192 - JohnTitor:add-tests, r=Centril

Add more regression tests

Closes #39618
Closes #51798
Closes #62894
Closes #63952
Closes #68653

r? @Centril

4 years agoRollup merge of #69181 - skinny121:const-eval-return, r=oli-obk
Dylan DPC [Tue, 18 Feb 2020 15:07:22 +0000 (16:07 +0100)]
Rollup merge of #69181 - skinny121:const-eval-return, r=oli-obk

Change const eval to just return the value

As discussed in https://github.com/rust-lang/rust/pull/68505#discussion_r370956535, the type of consts shouldn't be returned from const eval queries.

r? @eddyb
cc @nikomatsakis

4 years agoAuto merge of #69234 - JohnTitor:clippy-up, r=JohnTitor
bors [Tue, 18 Feb 2020 14:49:28 +0000 (14:49 +0000)]
Auto merge of #69234 - JohnTitor:clippy-up, r=JohnTitor

Update Clippy

Fixes #69221

r? @ghost

4 years agoClean up E0310 explanation
Guillaume Gomez [Mon, 17 Feb 2020 13:16:45 +0000 (14:16 +0100)]
Clean up E0310 explanation

4 years agoAuto merge of #69258 - JohnTitor:rollup-n2hljai, r=JohnTitor
bors [Tue, 18 Feb 2020 11:10:51 +0000 (11:10 +0000)]
Auto merge of #69258 - JohnTitor:rollup-n2hljai, r=JohnTitor

Rollup of 8 pull requests

Successful merges:

 - #67272 (recursion_limit parsing handles overflows)
 - #68597 (Simplify `Skip::nth` and `Skip::last` implementations)
 - #68767 (macOS: avoid calling pthread_self() twice)
 - #69175 (Do not ICE when encountering `yield` inside `async` block)
 - #69223 (Ignore GDB versions with broken str printing.)
 - #69244 (configure: set LLVM flags with a value)
 - #69249 (Stabilize {f32, f64}::{LOG2_10, LOG10_2})
 - #69252 (Clean out unused directories for extra disk space)

Failed merges:

r? @ghost

4 years agoRollup merge of #69252 - Mark-Simulacrum:disk-try, r=pietroalbini
Yuki Okushi [Tue, 18 Feb 2020 11:09:11 +0000 (20:09 +0900)]
Rollup merge of #69252 - Mark-Simulacrum:disk-try, r=pietroalbini

Clean out unused directories for extra disk space

This cleans out some of the unused (but large) directories on our linux builders to hopefully allow them to complete without running out of disk space.

4 years agoRollup merge of #69249 - LeSeulArtichaut:stabilize-logs-consts, r=sfackler
Yuki Okushi [Tue, 18 Feb 2020 11:09:09 +0000 (20:09 +0900)]
Rollup merge of #69249 - LeSeulArtichaut:stabilize-logs-consts, r=sfackler

Stabilize {f32, f64}::{LOG2_10, LOG10_2}

Following the decision to stabilize `LOG2_10` and `LOG10_2` in https://github.com/rust-lang/rust/issues/50540#issuecomment-536627588.

Closes #50540.
r? @sfackler

4 years agoRollup merge of #69244 - cuviper:llvm-flags, r=Mark-Simulacrum
Yuki Okushi [Tue, 18 Feb 2020 11:09:08 +0000 (20:09 +0900)]
Rollup merge of #69244 - cuviper:llvm-flags, r=Mark-Simulacrum

configure: set LLVM flags with a value

Rather than a boolean `--enable-cflags` etc., these options should
reflect that they are for LLVM, and that they need a value. You would
now use `./configure --llvm-cflags="..."`.

4 years agoRollup merge of #69223 - spunit262:empty-string-gdb-version, r=Dylan-DPC
Yuki Okushi [Tue, 18 Feb 2020 11:09:06 +0000 (20:09 +0900)]
Rollup merge of #69223 - spunit262:empty-string-gdb-version, r=Dylan-DPC

Ignore GDB versions with broken str printing.

https://sourceware.org/bugzilla/show_bug.cgi?id=22236

4 years agoRollup merge of #69175 - estebank:shall-not-ice, r=petrochenkov
Yuki Okushi [Tue, 18 Feb 2020 11:09:05 +0000 (20:09 +0900)]
Rollup merge of #69175 - estebank:shall-not-ice, r=petrochenkov

Do not ICE when encountering `yield` inside `async` block

Fix #67158.

4 years agoRollup merge of #68767 - kubo39:patch-macos, r=shepmaster
Yuki Okushi [Tue, 18 Feb 2020 11:09:04 +0000 (20:09 +0900)]
Rollup merge of #68767 - kubo39:patch-macos, r=shepmaster

macOS: avoid calling pthread_self() twice

4 years agoRollup merge of #68597 - ollie27:skip_nth_last, r=Amanieu
Yuki Okushi [Tue, 18 Feb 2020 11:09:02 +0000 (20:09 +0900)]
Rollup merge of #68597 - ollie27:skip_nth_last, r=Amanieu

Simplify `Skip::nth` and `Skip::last` implementations

The main improvement is to make `last` no longer recursive.

4 years agoRollup merge of #67272 - fisherdarling:master, r=varkor,hellow554
Yuki Okushi [Tue, 18 Feb 2020 11:08:59 +0000 (20:08 +0900)]
Rollup merge of #67272 - fisherdarling:master, r=varkor,hellow554

recursion_limit parsing handles overflows

This PR adds overflow handling to `#![recursion_limit]` attribute parsing. If parsing the given value results in an `IntErrorKind::Overflow`, then the recursion_limit is set to `usize::max_value()`.

closes #67265

4 years agoClean out some default-installed directories
Mark Rousskov [Tue, 18 Feb 2020 00:39:38 +0000 (19:39 -0500)]
Clean out some default-installed directories

This helps us have enough disk space for our builders to be able to complete
successfully. For now, the choices are ad-hoc and 'definitely not needed'. This
should never fail the build, as everything our build needs should be inside
Docker.

4 years agoInline various simple `emit_*` and `read_*` methods in `Decoder`.
Nicholas Nethercote [Tue, 18 Feb 2020 05:12:24 +0000 (16:12 +1100)]
Inline various simple `emit_*` and `read_*` methods in `Decoder`.

Mostly, these are the ones whose body just contains `f(self)`.

4 years agoInline `Symbol::decode` and `Interner::intern`.
Nicholas Nethercote [Tue, 18 Feb 2020 05:00:58 +0000 (16:00 +1100)]
Inline `Symbol::decode` and `Interner::intern`.

4 years agoAlways inline `run_utf8_validation`.
Nicholas Nethercote [Tue, 18 Feb 2020 04:42:11 +0000 (15:42 +1100)]
Always inline `run_utf8_validation`.

It only has two call sites, and the one within `from_utf8` is hot within
rustc itself.

4 years agoFix typo
Jonas Schievink [Mon, 17 Feb 2020 23:00:06 +0000 (00:00 +0100)]
Fix typo

4 years agoFix typo in comment
Dylan MacKenzie [Mon, 17 Feb 2020 21:43:13 +0000 (13:43 -0800)]
Fix typo in comment

4 years agoUse doc comment for explanation of `shared_borrow_allows_mutation`
Dylan MacKenzie [Mon, 17 Feb 2020 21:39:50 +0000 (13:39 -0800)]
Use doc comment for explanation of `shared_borrow_allows_mutation`

4 years agoDon't eliminate frame pointers on thumb targets
Jonas Schievink [Mon, 17 Feb 2020 20:44:32 +0000 (21:44 +0100)]
Don't eliminate frame pointers on thumb targets

4 years agoAdd a test for proc macro generating `$ IDENT`
Vadim Petrochenkov [Mon, 17 Feb 2020 19:47:40 +0000 (22:47 +0300)]
Add a test for proc macro generating `$ IDENT`

4 years agoparser: Remove `Option`s from unnormalized tokens
Vadim Petrochenkov [Sun, 16 Feb 2020 20:19:51 +0000 (23:19 +0300)]
parser: Remove `Option`s from unnormalized tokens

They are always set synchronously with normalized tokens now

4 years agoparser: Set previous and unnormalized tokens in couple more places
Vadim Petrochenkov [Sun, 16 Feb 2020 18:36:50 +0000 (21:36 +0300)]
parser: Set previous and unnormalized tokens in couple more places

4 years agoparser: Do not call `bump` recursively
Vadim Petrochenkov [Sun, 16 Feb 2020 13:47:24 +0000 (16:47 +0300)]
parser: Do not call `bump` recursively

Token normalization is merged directly into `bump`.
Special "unknown macro variable" diagnostic for unexpected `$`s is removed as preventing legal code from compiling.

4 years agoconfigure: set LLVM flags with a value
Josh Stone [Mon, 17 Feb 2020 19:01:52 +0000 (11:01 -0800)]
configure: set LLVM flags with a value

Rather than a boolean `--enable-cflags` etc., these options should
reflect that they are for LLVM, and that they need a value. You would
now use `./configure --llvm-cflags="..."`.

4 years agoQuerify object_safety_violations.
Camille GILLOT [Mon, 10 Feb 2020 18:55:49 +0000 (19:55 +0100)]
Querify object_safety_violations.

4 years agoparse: recover `mut (x @ y)` as `(mut x @ mut y)`.
Mazdak Farrokhzad [Mon, 17 Feb 2020 15:03:07 +0000 (16:03 +0100)]
parse: recover `mut (x @ y)` as `(mut x @ mut y)`.

4 years agoDo not emit note suggesting to implement trait to foreign type
LeSeulArtichaut [Sun, 16 Feb 2020 20:42:37 +0000 (21:42 +0100)]
Do not emit note suggesting to implement trait to foreign type

Update tests

Extend to other operations

Refractor check in a separate function

Fix more tests

4 years agoUpdate Clippy
Yuki Okushi [Mon, 17 Feb 2020 04:28:03 +0000 (13:28 +0900)]
Update Clippy

4 years agoAuto merge of #69129 - Centril:macro-legacy-errors, r=petrochenkov
bors [Mon, 17 Feb 2020 11:54:49 +0000 (11:54 +0000)]
Auto merge of #69129 - Centril:macro-legacy-errors, r=petrochenkov

Transition macro_legacy_warnings into a hard error

Fixes https://github.com/rust-lang/rust/issues/67098.

r? @petrochenkov

4 years agoci: switch macOS builders to 10.15
Pietro Albini [Wed, 5 Feb 2020 14:47:01 +0000 (15:47 +0100)]
ci: switch macOS builders to 10.15

4 years agoast: add a FIXME
Mazdak Farrokhzad [Mon, 17 Feb 2020 10:16:28 +0000 (11:16 +0100)]
ast: add a FIXME

4 years agoAuto merge of #69226 - JohnTitor:rollup-syn03oj, r=JohnTitor
bors [Mon, 17 Feb 2020 06:44:35 +0000 (06:44 +0000)]
Auto merge of #69226 - JohnTitor:rollup-syn03oj, r=JohnTitor

Rollup of 6 pull requests

Successful merges:

 - #68495 (Updating str.chars docs to mention crates.io.)
 - #68701 (Improve #Safety of various methods in core::ptr)
 - #69158 (Don't print block exit state in dataflow graphviz if unchanged)
 - #69179 (Rename `FunctionRetTy` to `FnRetTy`)
 - #69186 ([tiny] parser: `macro_rules` is a weak keyword)
 - #69188 (Clean up E0309 explanation)

Failed merges:

r? @ghost

4 years agoRollup merge of #69188 - GuillaumeGomez:clean-up-e0309, r=Dylan-DPC
Yuki Okushi [Mon, 17 Feb 2020 04:46:59 +0000 (13:46 +0900)]
Rollup merge of #69188 - GuillaumeGomez:clean-up-e0309, r=Dylan-DPC

Clean up E0309 explanation

r? @Dylan-DPC

4 years agoRollup merge of #69186 - petrochenkov:kwrules, r=Centril
Yuki Okushi [Mon, 17 Feb 2020 04:46:57 +0000 (13:46 +0900)]
Rollup merge of #69186 - petrochenkov:kwrules, r=Centril

[tiny] parser: `macro_rules` is a weak keyword

r? @Centril

4 years agoRollup merge of #69179 - JohnTitor:rename-to-fnretty, r=Centril
Yuki Okushi [Mon, 17 Feb 2020 04:46:56 +0000 (13:46 +0900)]
Rollup merge of #69179 - JohnTitor:rename-to-fnretty, r=Centril

Rename `FunctionRetTy` to `FnRetTy`

As per FIXME comment

r? @Centril

4 years agoRollup merge of #69158 - ecstatic-morse:graphviz-diff, r=matthewjasper
Yuki Okushi [Mon, 17 Feb 2020 04:46:54 +0000 (13:46 +0900)]
Rollup merge of #69158 - ecstatic-morse:graphviz-diff, r=matthewjasper

Don't print block exit state in dataflow graphviz if unchanged

A small quality-of-life improvement I was using while working on #68528. It's pretty common to have a lot of zero-statement basic blocks, especially before a `SimplifyCfg` pass is run. When the dataflow state was dense, these blocks could take up a lot of vertical space since the full flow state was printed on both entry and exit. After this PR, we only print a block's exit state if it differs from that block's entry state. Take a look at the two basic blocks on the left.

Before:

![image](https://user-images.githubusercontent.com/29463364/74505395-e2d1dd00-4eab-11ea-8006-ec8f0dc9d1b6.png)

After:
![image](https://user-images.githubusercontent.com/29463364/74505277-98506080-4eab-11ea-8d95-5190bc378331.png)

4 years agoRollup merge of #68701 - amosonn:patch-2, r=RalfJung
Yuki Okushi [Mon, 17 Feb 2020 04:46:52 +0000 (13:46 +0900)]
Rollup merge of #68701 - amosonn:patch-2, r=RalfJung

Improve #Safety of various methods in core::ptr

For `read`, `read_unaligned`,`read_volatile`, `replace`, and `drop_in_place`:

- The value they point to must be properly initialized

For `replace`, additionally:

- The pointer must be readable

4 years agoRollup merge of #68495 - sdegutis:patch-1, r=Mark-Simulacrum
Yuki Okushi [Mon, 17 Feb 2020 04:46:48 +0000 (13:46 +0900)]
Rollup merge of #68495 - sdegutis:patch-1, r=Mark-Simulacrum

Updating str.chars docs to mention crates.io.

This might spare someone else a little time searching the stdlib for unicode/grapheme support.

4 years agoAuto merge of #68781 - ssomers:btree_miri_relief, r=RalfJung
bors [Mon, 17 Feb 2020 03:24:53 +0000 (03:24 +0000)]
Auto merge of #68781 - ssomers:btree_miri_relief, r=RalfJung

BTree: lighten the load on Miri

Reduce the amount of work Miri ploughs through in btree code, in particular on `test_clone_from` (which takes up 5 minutes on my machine).

r? @crgl

4 years agoDo not ICE when encountering `yield` inside `async` block
Esteban Küber [Sat, 15 Feb 2020 01:49:16 +0000 (17:49 -0800)]
Do not ICE when encountering `yield` inside `async` block

4 years agoSelect an appropriate unused lifetime name in suggestion
Esteban Küber [Fri, 14 Feb 2020 06:45:48 +0000 (22:45 -0800)]
Select an appropriate unused lifetime name in suggestion

4 years agoRename `FunctionRetTy` to `FnRetTy`
Yuki Okushi [Sat, 15 Feb 2020 03:10:59 +0000 (12:10 +0900)]
Rename `FunctionRetTy` to `FnRetTy`

4 years agoHandle recursion_limit parsing errors
Fisher Darling [Fri, 13 Dec 2019 04:18:21 +0000 (21:18 -0700)]
Handle recursion_limit parsing errors

4 years agoIgnore GDB versions with broken str printing.
spunit262 [Fri, 14 Feb 2020 06:51:47 +0000 (23:51 -0700)]
Ignore GDB versions with broken str printing.

https://sourceware.org/bugzilla/show_bug.cgi?id=22236

4 years agoAuto merge of #67953 - cjgillot:split_infer, r=Zoxc
bors [Sun, 16 Feb 2020 22:24:54 +0000 (22:24 +0000)]
Auto merge of #67953 - cjgillot:split_infer, r=Zoxc

Split librustc::{traits,infer} to a separate crate rustc_infer

This is still very much work in progress.
Three functions are between dimensions (at the end of `rustc::traits`), waiting for some dependency breaking scheme.
Please tell me if the approach seems sound, and how you would like to split this PR up.

The formatting is deliberately off, to ease rebasing.

cc #65031

4 years agoLighten tests, in particular for Miri, yet test and explain more
Stein Somers [Sun, 16 Feb 2020 19:01:41 +0000 (20:01 +0100)]
Lighten tests, in particular for Miri, yet test and explain more

4 years agoFix comments outdated during #66648
Stein Somers [Sun, 2 Feb 2020 19:30:52 +0000 (20:30 +0100)]
Fix comments outdated during #66648

4 years agoStabilize {f32, f64}::{LOG2_10, LOG10_2}
LeSeulArtichaut [Sun, 16 Feb 2020 17:53:02 +0000 (18:53 +0100)]
Stabilize {f32, f64}::{LOG2_10, LOG10_2}

4 years agoAuto merge of #67885 - tobithiel:fix_group_lint_allow_override, r=Mark-Simulacrum
bors [Sun, 16 Feb 2020 15:28:41 +0000 (15:28 +0000)]
Auto merge of #67885 - tobithiel:fix_group_lint_allow_override, r=Mark-Simulacrum

rustc_session: allow overriding lint level of individual lints from a group

Fixes #58211 and fixes rust-lang/rust-clippy#4778 and fixes rust-lang/rust-clippy#4091

Instead of hard-coding the lint level preferences (from lowest to highest precedence: `lint::Allow -> lint::Warn -> lint::Deny -> lint::Forbid`), the position of the argument in the command line gets taken into account.

Examples:
1. Passing `-D unused -A unused-variables` denies everything in the lint group `unused` **except** `unused-variables` which is explicitly allowed.
1. Passing `-A unused-variables -D unused` denies everything in the lint group `unused` **including** `unused-variables` since the allow is specified before the deny (and therefore overridden by the deny).

This matches the behavior that is already being used when specifying `allow`/`deny` in the source code.

4 years agoAllow whitespaces in revision flags
Yuki Okushi [Sun, 16 Feb 2020 08:12:03 +0000 (17:12 +0900)]
Allow whitespaces in revision flags

4 years agoAuto merge of #68997 - Zoxc:pure-node-id, r=petrochenkov
bors [Sun, 16 Feb 2020 12:16:49 +0000 (12:16 +0000)]
Auto merge of #68997 - Zoxc:pure-node-id, r=petrochenkov

Panic if NodeIds are used for incremental compilation

r? @michaelwoerister

4 years agoImprove #Safety of core::ptr::drop_in_place
Amos Onn [Fri, 14 Feb 2020 23:34:15 +0000 (00:34 +0100)]
Improve #Safety of core::ptr::drop_in_place

Added missing conditions:
- Valid for writes
- Valid for destructing

4 years agosuspend -> yield
Jonas Schievink [Sun, 16 Feb 2020 12:08:36 +0000 (13:08 +0100)]
suspend -> yield

4 years agoPrune rustc dependencies.
Camille GILLOT [Fri, 7 Feb 2020 08:06:08 +0000 (09:06 +0100)]
Prune rustc dependencies.

4 years agoGate macro use.
Camille GILLOT [Wed, 8 Jan 2020 09:18:48 +0000 (10:18 +0100)]
Gate macro use.

4 years agoPrune features.
Camille GILLOT [Wed, 8 Jan 2020 08:31:01 +0000 (09:31 +0100)]
Prune features.

4 years agoRemove librustc_infer crate re-exports.
Camille GILLOT [Tue, 7 Jan 2020 21:07:22 +0000 (22:07 +0100)]
Remove librustc_infer crate re-exports.

4 years agoOther crates.
Camille GILLOT [Mon, 6 Jan 2020 22:31:06 +0000 (23:31 +0100)]
Other crates.

4 years agoMake librustc_traits compile.
Camille GILLOT [Mon, 6 Jan 2020 22:28:45 +0000 (23:28 +0100)]
Make librustc_traits compile.

4 years agoMake librustc_mir compile.
Camille GILLOT [Mon, 6 Jan 2020 22:21:41 +0000 (23:21 +0100)]
Make librustc_mir compile.

4 years agomacOS: avoid calling pthread_self() twice
Hiroki Noda [Sun, 2 Feb 2020 12:25:38 +0000 (21:25 +0900)]
macOS: avoid calling pthread_self() twice

4 years agoMake librustc_typeck compile.
Camille GILLOT [Mon, 6 Jan 2020 22:12:31 +0000 (23:12 +0100)]
Make librustc_typeck compile.

4 years agoMake librustc_infer compile.
Camille GILLOT [Mon, 6 Jan 2020 19:13:24 +0000 (20:13 +0100)]
Make librustc_infer compile.

4 years agoMake librustc compile.
Camille GILLOT [Mon, 6 Jan 2020 19:13:24 +0000 (20:13 +0100)]
Make librustc compile.

4 years agoMove librustc/{traits,infer} to librustc_infer.
Camille GILLOT [Mon, 6 Jan 2020 19:13:24 +0000 (20:13 +0100)]
Move librustc/{traits,infer} to librustc_infer.

4 years agoAuto merge of #69156 - ecstatic-morse:unified-dataflow-impls2, r=eddyb
bors [Sun, 16 Feb 2020 05:08:08 +0000 (05:08 +0000)]
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`.

4 years agoAuto merge of #68814 - Aaron1011:fix/proc-macro-order-two, r=petrochenkov
bors [Sun, 16 Feb 2020 01:46:05 +0000 (01:46 +0000)]
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.

4 years agoFix printing of `Yield` terminator
Jonas Schievink [Sat, 15 Feb 2020 23:57:48 +0000 (00:57 +0100)]
Fix printing of `Yield` terminator

4 years agoFix running rustdoc-js test suite individually
Oliver Middleton [Sat, 15 Feb 2020 23:14:46 +0000 (23:14 +0000)]
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.

4 years agoDetermine type of intrinsics instead of assuming the destination type is the same.
Ben Lewis [Sat, 15 Feb 2020 22:39:04 +0000 (11:39 +1300)]
Determine type of intrinsics instead of assuming the destination type is the same.

4 years agoAuto merge of #68668 - GuillaumeGomez:struct-variant-field-search, r=ollie27
bors [Sat, 15 Feb 2020 22:32:51 +0000 (22:32 +0000)]
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

4 years agofix incremental tests
Ralf Jung [Sat, 15 Feb 2020 22:02:58 +0000 (23:02 +0100)]
fix incremental tests

4 years agoast: tweak AssocItemKind::Macro comment
Mazdak Farrokhzad [Sat, 15 Feb 2020 21:36:03 +0000 (22:36 +0100)]
ast: tweak AssocItemKind::Macro comment

4 years agoprint_item_const: remove extraneous space
Mazdak Farrokhzad [Sat, 15 Feb 2020 21:33:21 +0000 (22:33 +0100)]
print_item_const: remove extraneous space

4 years agoreject assoc statics & extern consts during parsing
Mazdak Farrokhzad [Sat, 15 Feb 2020 21:21:00 +0000 (22:21 +0100)]
reject assoc statics & extern consts during parsing

4 years agoCode review changes.
Ben Lewis [Sat, 15 Feb 2020 20:59:01 +0000 (09:59 +1300)]
Code review changes.

4 years agoAdd additional comment
Aaron Hill [Sat, 15 Feb 2020 20:51:40 +0000 (15:51 -0500)]
Add additional comment

4 years agoRecord proc macro harness order for use during metadata deserialization
Aaron Hill [Mon, 3 Feb 2020 23:34:36 +0000 (18:34 -0500)]
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.

4 years agofix codegen tests
Ralf Jung [Sat, 15 Feb 2020 20:37:53 +0000 (21:37 +0100)]
fix codegen tests

4 years agovisit: unify extern & assoc item visiting
Mazdak Farrokhzad [Sat, 15 Feb 2020 17:42:43 +0000 (18:42 +0100)]
visit: unify extern & assoc item visiting

4 years agopprust: unify extern & associated item printing
Mazdak Farrokhzad [Sat, 15 Feb 2020 17:28:47 +0000 (18:28 +0100)]
pprust: unify extern & associated item printing

4 years agofuse extern & associated item parsing up to defaultness
Mazdak Farrokhzad [Sat, 15 Feb 2020 16:35:29 +0000 (17:35 +0100)]
fuse extern & associated item parsing up to defaultness

4 years agoast: make ForeignItemKind an alias of AssocItemKind
Mazdak Farrokhzad [Sat, 15 Feb 2020 01:34:19 +0000 (02:34 +0100)]
ast: make ForeignItemKind an alias of AssocItemKind

4 years agoparse extern consts
Mazdak Farrokhzad [Sat, 15 Feb 2020 01:23:10 +0000 (02:23 +0100)]
parse extern consts

4 years agoparse associated statics.
Mazdak Farrokhzad [Sat, 15 Feb 2020 00:50:26 +0000 (01:50 +0100)]
parse associated statics.

4 years agoast/parser: fuse `static` & `const` grammars in all contexts.
Mazdak Farrokhzad [Fri, 14 Feb 2020 14:56:05 +0000 (15:56 +0100)]
ast/parser: fuse `static` & `const` grammars in all contexts.

4 years agoast: make `= <expr>;` optional in free statics/consts.
Mazdak Farrokhzad [Fri, 14 Feb 2020 13:21:02 +0000 (14:21 +0100)]
ast: make `= <expr>;` optional in free statics/consts.

4 years agoAdd FIXME note
Yuki Okushi [Sat, 15 Feb 2020 19:36:44 +0000 (04:36 +0900)]
Add FIXME note

4 years agoremove no-longer-needed test
Ralf Jung [Sat, 15 Feb 2020 18:40:33 +0000 (19:40 +0100)]
remove no-longer-needed test

4 years agoAdd test for issue-68653
Yuki Okushi [Sat, 15 Feb 2020 17:55:03 +0000 (02:55 +0900)]
Add test for issue-68653

4 years agoAdd test for issue-63952
Yuki Okushi [Sat, 15 Feb 2020 17:54:51 +0000 (02:54 +0900)]
Add test for issue-63952

4 years agoAdd test for issue-62894
Yuki Okushi [Sat, 15 Feb 2020 17:54:33 +0000 (02:54 +0900)]
Add test for issue-62894

4 years agoadjust run-fail tests
Ralf Jung [Sat, 15 Feb 2020 18:02:36 +0000 (19:02 +0100)]
adjust run-fail tests

4 years agoAdd test for issue-51798
Yuki Okushi [Sat, 15 Feb 2020 17:54:16 +0000 (02:54 +0900)]
Add test for issue-51798

4 years agoAdd test for issue-39618
Yuki Okushi [Sat, 15 Feb 2020 17:53:58 +0000 (02:53 +0900)]
Add test for issue-39618

4 years agoPanic when hashing node IDs
John Kåre Alsaker [Sat, 15 Feb 2020 17:07:17 +0000 (18:07 +0100)]
Panic when hashing node IDs

4 years agoast: normalize `ForeignItemKind::Ty` & `AssocItemKind::TyAlias`.
Mazdak Farrokhzad [Fri, 14 Feb 2020 11:55:42 +0000 (12:55 +0100)]
ast: normalize `ForeignItemKind::Ty` & `AssocItemKind::TyAlias`.