]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoRollup merge of #61726 - cuviper:partition-for_each, r=scottmcm
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:14:12 +0000 (17:14 +0200)]
Rollup merge of #61726 - cuviper:partition-for_each, r=scottmcm

Use `for_each` in `Iterator::partition`

We already use this for `unzip`, but `partition` is not much different.

5 years agoRollup merge of #61724 - aschampion:128-bit-memcmp, r=sfackler
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:14:11 +0000 (17:14 +0200)]
Rollup merge of #61724 - aschampion:128-bit-memcmp, r=sfackler

core: use memcmp optimization for 128 bit integer slices

All other sized integer slices do this. From #61665.

5 years agoRollup merge of #61715 - RalfJung:test-ascii-lowercase, r=varkor
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:14:09 +0000 (17:14 +0200)]
Rollup merge of #61715 - RalfJung:test-ascii-lowercase, r=varkor

make sure make_ascii_lowercase actually leaves upper-case non-ASCII characters alone

Cc https://github.com/rust-lang/rust/pull/61677 @napen123

5 years agoRollup merge of #61707 - wesleywiser:awscli_retry, r=alexcrichton
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:14:08 +0000 (17:14 +0200)]
Rollup merge of #61707 - wesleywiser:awscli_retry, r=alexcrichton

Azure: retry failed awscli installs

Fixes #61604

r? @pietroalbini

5 years agoRollup merge of #61698 - davidtwco:ice-const-generic-length, r=varkor
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:14:04 +0000 (17:14 +0200)]
Rollup merge of #61698 - davidtwco:ice-const-generic-length, r=varkor

typeck: Fix const generic in repeat param ICE.

Fixes #61336. Turns out this wasn't related to #49147 after all.

r? @varkor

5 years agoRollup merge of #61686 - phansch:librustc_errors_docs, r=estebank
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:14:03 +0000 (17:14 +0200)]
Rollup merge of #61686 - phansch:librustc_errors_docs, r=estebank

librustc_errors: Add some more documentation

r? @estebank

5 years agoRollup merge of #61652 - JohnTitor:docs-improve-array, r=Centril
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:14:01 +0000 (17:14 +0200)]
Rollup merge of #61652 - JohnTitor:docs-improve-array, r=Centril

Mention slice patterns in array

Fixes #61650

r? @scottmcm

5 years agoRollup merge of #61606 - petrochenkov:legclean, r=pnkfelix
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:13:59 +0000 (17:13 +0200)]
Rollup merge of #61606 - petrochenkov:legclean, r=pnkfelix

Remove some legacy proc macro flavors

Namely
- `IdentTT` (`foo! ident { ... }`). Can be replaced with `foo! { ident ... }` or something similar.
- `MultiDecorator`. Can be replaced by `MultiModifier` (aka `LegacyAttr` after renaming).
- `DeclMacro`. It was a less powerful duplicate of `NormalTT` (aka `LegacyBang` after renaming) and can be replaced by it.

Stuff like this slows down any attempts to refactor the expansion infra, so it's desirable to retire it already.
I'm not sure whether a lang team decision is necessary, but would be nice to land this sooner because I have some further work in this area scheduled.

The documentation commit (https://github.com/rust-lang/rust/commit/a9397fd0d5eede4bbc0ada94bf92657ca8084cb3) describes how the remaining variants are different from each other and shows that there's actually some system behind them.

The last commit renames variants of `SyntaxExtension` in more systematic way.
- `ProcMacro` -> `Bang`
- `NormalTT` -> `LegacyBang`
- `AttrProcMacro` -> `Attr`
- `MultiModifier` -> `LegacyAttr`
- `ProcMacroDerive` -> `Derive`
- `BuiltinDerive` -> `LegacyDerive`

All the `Legacy*` variants are AST-based, as opposed to "modern" token-based variants.

5 years agoRollup merge of #61550 - jacobsun:patch-1, r=alexcrichton
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:13:58 +0000 (17:13 +0200)]
Rollup merge of #61550 - jacobsun:patch-1, r=alexcrichton

Windows 10 SDK is also required now.

5 years agoRollup merge of #61526 - lcnr:test_reorder, r=nikomatsakis
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:13:56 +0000 (17:13 +0200)]
Rollup merge of #61526 - lcnr:test_reorder, r=nikomatsakis

move some tests into subfolders

This reduces the size of the test folders without making the moved tests harder to find.

Is this kind of change desired/worth the effort?

5 years agoRollup merge of #61518 - czipperz:const-fn-doc-disallow-loops, r=Centril
Mazdak Farrokhzad [Tue, 11 Jun 2019 15:13:54 +0000 (17:13 +0200)]
Rollup merge of #61518 - czipperz:const-fn-doc-disallow-loops, r=Centril

Add loops to doc list of things not stable in const fn

Closes #61508

5 years agoAuto merge of #60463 - mjbshaw:transparent, r=varkor,rkruppe
bors [Tue, 11 Jun 2019 11:06:38 +0000 (11:06 +0000)]
Auto merge of #60463 - mjbshaw:transparent, r=varkor,rkruppe

Implement RFC 2645 (transparent enums and unions)

Tracking issue: #60405

5 years agoAuto merge of #61673 - RalfJung:miri-no-hard-float, r=eddyb,oli-obk
bors [Tue, 11 Jun 2019 08:15:12 +0000 (08:15 +0000)]
Auto merge of #61673 - RalfJung:miri-no-hard-float, r=eddyb,oli-obk

Miri: convert to/from apfloat instead of host floats

Cc @oli-obk @eddyb

5 years agoAuto merge of #61492 - RalfJung:const-qualif-comments, r=eddyb
bors [Tue, 11 Jun 2019 05:24:41 +0000 (05:24 +0000)]
Auto merge of #61492 - RalfJung:const-qualif-comments, r=eddyb

Const qualification comments

I extracted some const-qualif knowledge from @eddyb. This is my attempt to turn that into comments.

Cc @oli-obk  @eddyb

5 years agoImplement RFC 2645 (transparent enums and unions)
Michael Bradshaw [Wed, 22 May 2019 14:31:09 +0000 (07:31 -0700)]
Implement RFC 2645 (transparent enums and unions)

Tracking issue: #60405

5 years agoAuto merge of #61052 - jsgf:emit-save-analysis-notifications, r=alexcrichton
bors [Tue, 11 Jun 2019 02:25:39 +0000 (02:25 +0000)]
Auto merge of #61052 - jsgf:emit-save-analysis-notifications, r=alexcrichton

Emit save analysis notifications

Addresses issue https://github.com/rust-lang/rust/issues/61047

5 years agoAuto merge of #60793 - Xanewok:raw-string-cleanup, r=petrochenkov
bors [Mon, 10 Jun 2019 23:32:12 +0000 (23:32 +0000)]
Auto merge of #60793 - Xanewok:raw-string-cleanup, r=petrochenkov

lexer: Disallow bare CR in raw byte strings

Handles bare CR ~but doesn't translate `\r\n` to `\n` yet in raw strings yet~ and translates CRLF to LF in raw strings.

As a side-note I think it'd be good to change the `unescape_` to return plain iterators to reduce some boilerplate (e.g. `has_error` could benefit from collecting `Result<T>` and aborting early on errors) but will do that separately, unless I missed something here that prevents it.

@matklad @petrochenkov thoughts?

5 years agoUse `for_each` in `Iterator::partition`
Josh Stone [Mon, 10 Jun 2019 21:06:56 +0000 (14:06 -0700)]
Use `for_each` in `Iterator::partition`

We already use this for `unzip`, but `partition` is not much different.

5 years agosyntax: Rename variants of `SyntaxExtension` for consistency
Vadim Petrochenkov [Thu, 6 Jun 2019 23:30:01 +0000 (02:30 +0300)]
syntax: Rename variants of `SyntaxExtension` for consistency

5 years agosyntax: Improve documentation of `SyntaxExtension`
Vadim Petrochenkov [Thu, 6 Jun 2019 22:59:27 +0000 (01:59 +0300)]
syntax: Improve documentation of `SyntaxExtension`

5 years agosyntax: Remove `SyntaxExtension::DeclMacro`
Vadim Petrochenkov [Thu, 6 Jun 2019 21:37:47 +0000 (00:37 +0300)]
syntax: Remove `SyntaxExtension::DeclMacro`

It's a less powerful duplicate of `SyntaxExtension::NormalTT`

5 years agosyntax: Use `MultiItemModifier` for built-in derives
Vadim Petrochenkov [Thu, 6 Jun 2019 20:21:44 +0000 (23:21 +0300)]
syntax: Use `MultiItemModifier` for built-in derives

5 years agosyntax: Remove `SyntaxExtension::MultiDecorator` and `MultiItemDecorator`
Vadim Petrochenkov [Thu, 6 Jun 2019 18:38:27 +0000 (21:38 +0300)]
syntax: Remove `SyntaxExtension::MultiDecorator` and `MultiItemDecorator`

5 years agoAuto merge of #61694 - Xanewok:update-rls, r=kennytm
bors [Mon, 10 Jun 2019 18:24:43 +0000 (18:24 +0000)]
Auto merge of #61694 - Xanewok:update-rls, r=kennytm

Update RLS

This includes https://github.com/rust-lang/rls/pull/1482 which should finally fix the spurious tests RLS in Rust CI (test-pass -> test-fail).

r? @oli-obk
cc @ehuss

5 years agosyntax: Remove `SyntaxExtension::IdentTT` and `IdentMacroExpander`
Vadim Petrochenkov [Thu, 6 Jun 2019 18:10:16 +0000 (21:10 +0300)]
syntax: Remove `SyntaxExtension::IdentTT` and `IdentMacroExpander`

5 years agocore: use memcmp optimization for 128 bit integer slices
Andrew Champion [Mon, 10 Jun 2019 17:08:05 +0000 (18:08 +0100)]
core: use memcmp optimization for 128 bit integer slices

5 years agoEmit artifact notifications for save-analysis output
Jeremy Fitzhardinge [Wed, 22 May 2019 17:37:33 +0000 (10:37 -0700)]
Emit artifact notifications for save-analysis output

Issue: https://github.com/rust-lang/rust/issues/61047

5 years agotypeck: Fix const generic in repeat param ICE.
David Wood [Sun, 9 Jun 2019 19:54:28 +0000 (20:54 +0100)]
typeck: Fix const generic in repeat param ICE.

This commit fixes an ICE that occured when a const generic was used in
a repeat expression. This was due to the code expecting the length of
the repeat expression to be const evaluatable to a constant, but a const
generic parameter is not (however, it can be made into a constant).

5 years agoDon't suggest using \r in raw strings
Igor Matuszewski [Mon, 10 Jun 2019 15:32:15 +0000 (17:32 +0200)]
Don't suggest using \r in raw strings

5 years agoAuto merge of #61716 - Centril:rollup-nxwf5ol, r=Centril
bors [Mon, 10 Jun 2019 11:15:07 +0000 (11:15 +0000)]
Auto merge of #61716 - Centril:rollup-nxwf5ol, r=Centril

Rollup of 5 pull requests

Successful merges:

 - #59600 (Replaced linear token counting macros with optimized implementation)
 - #61501 (get rid of real_intrinsics module)
 - #61570 (Fix issues with const argument inference)
 - #61683 (Haiku: the maximum stack size is 16 MB)
 - #61697 (submodules: update clippy from 71be6f62 to c0dbd34b)

Failed merges:

r? @ghost

5 years agoRollup merge of #61697 - matthiaskrgr:submodule_upd, r=Manishearth
Mazdak Farrokhzad [Mon, 10 Jun 2019 11:14:32 +0000 (13:14 +0200)]
Rollup merge of #61697 - matthiaskrgr:submodule_upd, r=Manishearth

submodules: update clippy from 71be6f62 to c0dbd34b

Changes:
````
travis: disable rls integration test.
rustup https://github.com/rust-lang/rust/pull/61669/
Add OUTER_EXPN_INFO lint
````

Should fix clippy toolstate

5 years agoRollup merge of #61683 - nielx:haiku-stack-limit, r=nagisa
Mazdak Farrokhzad [Mon, 10 Jun 2019 11:14:31 +0000 (13:14 +0200)]
Rollup merge of #61683 - nielx:haiku-stack-limit, r=nagisa

Haiku: the maximum stack size is 16 MB

This keeps the compiler from crashing every time it is invoked. No functional change on other platforms.

This patch is similar to the limitation that is in the [librustdoc/lib.rs](https://github.com/rust-lang/rust/blob/57e13e0325c1d41161a31de1f8520538ec2c575c/src/librustdoc/lib.rs#L89).

5 years agoRollup merge of #61570 - varkor:infer-const-arg, r=eddyb
Mazdak Farrokhzad [Mon, 10 Jun 2019 11:14:29 +0000 (13:14 +0200)]
Rollup merge of #61570 - varkor:infer-const-arg, r=eddyb

Fix issues with const argument inference

Fixes https://github.com/rust-lang/rust/issues/60724.
Fixes https://github.com/rust-lang/rust/issues/61346.

r? @eddyb

5 years agoRollup merge of #61501 - RalfJung:intrinsics, r=rkruppe
Mazdak Farrokhzad [Mon, 10 Jun 2019 11:14:28 +0000 (13:14 +0200)]
Rollup merge of #61501 - RalfJung:intrinsics, r=rkruppe

get rid of real_intrinsics module

instead import intrinsics locally in their wrapper functions.

(These functions are wrapper functions as a preparation to fixing https://github.com/rust-lang/rust/issues/53871.)

5 years agoRollup merge of #59600 - tobia:master, r=pnkfelix
Mazdak Farrokhzad [Mon, 10 Jun 2019 11:14:26 +0000 (13:14 +0200)]
Rollup merge of #59600 - tobia:master, r=pnkfelix

Replaced linear token counting macros with optimized implementation

There are currently two distinct token-counting macros in the source. Both implement the trivial algorithm, with linear complexity. They may or may not be adequate for their use case, but considering that other people are probably going to copy and paste them whenever they need a token-counting macro, I replaced them with an optimized implementation with logarithmic complexity.

5 years agocomments
Ralf Jung [Thu, 6 Jun 2019 10:52:01 +0000 (12:52 +0200)]
comments

5 years agoconst-correctness might be confusing for C++ people
Ralf Jung [Thu, 6 Jun 2019 10:50:05 +0000 (12:50 +0200)]
const-correctness might be confusing for C++ people

5 years agoavoid 'const-context' terminology
Ralf Jung [Thu, 6 Jun 2019 09:47:52 +0000 (11:47 +0200)]
avoid 'const-context' terminology

5 years agoreplace some mode comparisons by more readable function call, rename some Mode, and...
Ralf Jung [Mon, 3 Jun 2019 15:41:16 +0000 (17:41 +0200)]
replace some mode comparisons by more readable function call, rename some Mode, and more comments

5 years agosome more comments for const_qualif
Ralf Jung [Mon, 3 Jun 2019 15:34:41 +0000 (17:34 +0200)]
some more comments for const_qualif

5 years agomake sure to_ascii_lowercase actually leaves upper-case non-ASCII characters alone
Ralf Jung [Mon, 10 Jun 2019 10:42:43 +0000 (12:42 +0200)]
make sure to_ascii_lowercase actually leaves upper-case non-ASCII characters alone

5 years agoAddress review comments
Philipp Hansch [Mon, 10 Jun 2019 08:59:03 +0000 (10:59 +0200)]
Address review comments

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
5 years agolibrustc_errors: Add some more documentation
Philipp Hansch [Sun, 9 Jun 2019 10:04:40 +0000 (12:04 +0200)]
librustc_errors: Add some more documentation

5 years agoAuto merge of #61506 - imbrem:mir_body_renaming, r=eddyb
bors [Mon, 10 Jun 2019 08:07:22 +0000 (08:07 +0000)]
Auto merge of #61506 - imbrem:mir_body_renaming, r=eddyb

Changed usages of `mir` in librustc::mir and librustc_mir to `body`

Work on part 2 of #60229

5 years agoHaiku: the maximum stack size is 16 MB
Niels Sascha Reedijk [Sun, 27 Jan 2019 08:25:25 +0000 (09:25 +0100)]
Haiku: the maximum stack size is 16 MB

When one tries to create a thread with a requested stack size larger
than 16 MB, the call will fail and the compiler will bail out. Therefore
we should limit the size of the thread stack to 16 MB on Haiku.

5 years agoAuto merge of #61608 - Aaron1011:feature/weird-expr-yield, r=Centril
bors [Mon, 10 Jun 2019 05:17:12 +0000 (05:17 +0000)]
Auto merge of #61608 - Aaron1011:feature/weird-expr-yield, r=Centril

Add nested 'yield' expression to weird expressions test

5 years agoAdd an example
Yuki Okushi [Mon, 10 Jun 2019 04:30:45 +0000 (13:30 +0900)]
Add an example

5 years agoAuto merge of #61706 - petrhosek:bootstrap-cp-r, r=Mark-Simulacrum
bors [Mon, 10 Jun 2019 02:35:29 +0000 (02:35 +0000)]
Auto merge of #61706 - petrhosek:bootstrap-cp-r, r=Mark-Simulacrum

Use Build::read_dir instead of fs::read_dir in Build::cp_r

Build::read_dir does better error handling when the directory doesn't
exist; it actually prints the name of the directory rather than just
printing the underlying error "No such file or directory" which on
its own isn't very useful.

5 years agoReword const fn conditional and loop error text
Chris Gregory [Mon, 10 Jun 2019 02:02:28 +0000 (19:02 -0700)]
Reword const fn conditional and loop error text

5 years agoAzure: retry failed awscli installs
Wesley Wiser [Mon, 10 Jun 2019 01:28:47 +0000 (21:28 -0400)]
Azure: retry failed awscli installs

Fixes #61604

5 years agoUse Build::read_dir instead of fs::read_dir in Build::cp_r
Petr Hosek [Sun, 9 Jun 2019 23:57:17 +0000 (16:57 -0700)]
Use Build::read_dir instead of fs::read_dir in Build::cp_r

Build::read_dir does better error handling when the directory doesn't
exist; it actually prints the name of the directory rather than just
printing the underlying error "No such file or directory" which on
its own isn't very useful.

5 years agoAuto merge of #61229 - Centril:stabilize-repr_align_enum, r=nagisa
bors [Sun, 9 Jun 2019 23:50:04 +0000 (23:50 +0000)]
Auto merge of #61229 - Centril:stabilize-repr_align_enum, r=nagisa

Stabilize #![feature(repr_align_enum)] in Rust 1.37.0

On an `enum` item, you may now write:

```rust
#[repr(align(X))]
enum Foo {
    // ...
}
```

This has equivalent effects to first defining:

```rust
#[repr(align(X))]
struct AlignX<T>(T);
```

and then using `AlignX<Foo>` in `Foo`'s stead.

r? @nagisa

5 years agoChanged usages of `mir` in librustc::mir and librustc_mir to `body`
Jad Ghalayini [Mon, 3 Jun 2019 22:26:48 +0000 (18:26 -0400)]
Changed usages of `mir` in librustc::mir and librustc_mir to `body`

5 years agosubmodules: update clippy from 71be6f62 to c0dbd34b
Matthias Krüger [Sun, 9 Jun 2019 19:37:26 +0000 (21:37 +0200)]
submodules: update clippy from 71be6f62 to c0dbd34b

Changes:
````
travis: disable rls integration test.
rustup https://github.com/rust-lang/rust/pull/61669/
Add OUTER_EXPN_INFO lint
````

5 years agoAuto merge of #61691 - RalfJung:miri-slow, r=Centril
bors [Sun, 9 Jun 2019 17:47:48 +0000 (17:47 +0000)]
Auto merge of #61691 - RalfJung:miri-slow, r=Centril

Miri: disable a slow test

5 years agoUpdate RLS
Igor Matuszewski [Sun, 9 Jun 2019 14:14:52 +0000 (16:14 +0200)]
Update RLS

This includes https://github.com/rust-lang/rls/pull/1482 which should
finally fix the spurious tests in Rust CI (test-pass -> test-fail).

5 years agoUse char byte calculation using existing iterator
Igor Matuszewski [Sun, 9 Jun 2019 13:44:18 +0000 (15:44 +0200)]
Use char byte calculation using existing iterator

5 years agoActually translate CRLF in raw byte strings and unify unescape impl
Igor Matuszewski [Sun, 9 Jun 2019 12:43:31 +0000 (14:43 +0200)]
Actually translate CRLF in raw byte strings and unify unescape impl

5 years agoAdd a doc comment for scan_raw_string
Igor Matuszewski [Sun, 9 Jun 2019 12:20:29 +0000 (14:20 +0200)]
Add a doc comment for scan_raw_string

5 years agoAdd test for raw byte CRLF translation
Igor Matuszewski [Sun, 9 Jun 2019 12:15:31 +0000 (14:15 +0200)]
Add test for raw byte CRLF translation

5 years agoMiri: disable a slow test
Ralf Jung [Sun, 9 Jun 2019 11:58:32 +0000 (13:58 +0200)]
Miri: disable a slow test

5 years agoforgot about multivariant enum casts
Ralf Jung [Sun, 9 Jun 2019 11:53:44 +0000 (13:53 +0200)]
forgot about multivariant enum casts

5 years agomake floating point casts nicer with generics
Ralf Jung [Sun, 9 Jun 2019 10:31:19 +0000 (12:31 +0200)]
make floating point casts nicer with generics

5 years agoApply suggestions from code review
Ralf Jung [Sun, 9 Jun 2019 09:35:41 +0000 (11:35 +0200)]
Apply suggestions from code review

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
5 years agoAuto merge of #61677 - napen123:string-examples, r=sfackler
bors [Sun, 9 Jun 2019 07:48:10 +0000 (07:48 +0000)]
Auto merge of #61677 - napen123:string-examples, r=sfackler

Add examples for make_ascii_{uppercase, lowercase}

As the title says, this adds simple usage examples for make_ascii_uppercase and make_ascii_lowercase.

5 years agoAuto merge of #60932 - Centril:macro-at-most-once-2015, r=mark-i-m
bors [Sun, 9 Jun 2019 05:00:22 +0000 (05:00 +0000)]
Auto merge of #60932 - Centril:macro-at-most-once-2015, r=mark-i-m

Support ? Kleene macro operator in 2015

Closes https://github.com/rust-lang/rust/issues/56668.

See that issue for rationale and discussion.

Crater will be needed (done in https://github.com/rust-lang/rust/pull/60932#issuecomment-494188577, zero regressions) and then, if all goes well, FCP (in https://github.com/rust-lang/rust/pull/60932#issuecomment-494189802).

5 years agopacify tidy.
Mazdak Farrokhzad [Fri, 7 Jun 2019 23:39:29 +0000 (01:39 +0200)]
pacify tidy.

5 years agoFix typo in comment.
Mazdak Farrokhzad [Wed, 22 May 2019 03:58:29 +0000 (05:58 +0200)]
Fix typo in comment.

5 years agoFix inaccurate comments in '?' Kleene operator tests.
Mazdak Farrokhzad [Wed, 22 May 2019 03:52:47 +0000 (05:52 +0200)]
Fix inaccurate comments in '?' Kleene operator tests.

5 years agoSome more cleanup in libsyntax::ext::tt::quoted
Mazdak Farrokhzad [Wed, 22 May 2019 00:43:46 +0000 (02:43 +0200)]
Some more cleanup in libsyntax::ext::tt::quoted

5 years agoCleanups in parse_sep_and_kleene_op.
Mazdak Farrokhzad [Wed, 22 May 2019 00:38:19 +0000 (02:38 +0200)]
Cleanups in parse_sep_and_kleene_op.

5 years agoUpdate tests since ? macro op is supported on 2015.
Mazdak Farrokhzad [Sat, 18 May 2019 06:24:56 +0000 (08:24 +0200)]
Update tests since ? macro op is supported on 2015.

5 years agoSupport ? Kleene operator in 2015.
Mazdak Farrokhzad [Sat, 18 May 2019 06:23:52 +0000 (08:23 +0200)]
Support ? Kleene operator in 2015.

5 years agoAuto merge of #61653 - oli-obk:visit_place_recursion, r=spastorino
bors [Sun, 9 Jun 2019 02:07:44 +0000 (02:07 +0000)]
Auto merge of #61653 - oli-obk:visit_place_recursion, r=spastorino

get rid of visit_place recursion

r? @spastorino

this is groundwork for https://github.com/rust-lang/rust/pull/60913, since after that PR we won't be able to implement `visit_place` in a recursive manner without heavy cloning everywhere.

cc @eddyb this touches const qualif

5 years agoAdd examples for make_ascii_{uppercase, lowercase}
Napen123 [Sun, 9 Jun 2019 00:28:29 +0000 (18:28 -0600)]
Add examples for make_ascii_{uppercase, lowercase}

5 years agoAuto merge of #61672 - Centril:rollup-jxo89ir, r=Centril
bors [Sat, 8 Jun 2019 23:17:06 +0000 (23:17 +0000)]
Auto merge of #61672 - Centril:rollup-jxo89ir, r=Centril

Rollup of 6 pull requests

Successful merges:

 - #61646 (Remove useless allocations in macro_rules follow logic.)
 - #61658 (remove useless ident() functions in const tests)
 - #61660 (Minimize use of `#![feature(custom_attribute)]`)
 - #61666 (Add test for trait ICE)
 - #61669 ( syntax: Remove `Deref` impl from `Token`)
 - #61670 (Update RLS)

Failed merges:

r? @ghost

5 years agomake unary float negation slightly nicer
Ralf Jung [Sat, 8 Jun 2019 22:51:47 +0000 (00:51 +0200)]
make unary float negation slightly nicer

5 years agotrait-ize binary_float_op
Ralf Jung [Sat, 8 Jun 2019 22:41:20 +0000 (00:41 +0200)]
trait-ize binary_float_op

5 years agoTranslate CRLF -> LF in raw (byte) strings
Igor Matuszewski [Sat, 8 Jun 2019 22:33:21 +0000 (00:33 +0200)]
Translate CRLF -> LF in raw (byte) strings

5 years agoRollup merge of #61670 - Xanewok:update-rls, r=oli-obk
Mazdak Farrokhzad [Sat, 8 Jun 2019 22:20:39 +0000 (00:20 +0200)]
Rollup merge of #61670 - Xanewok:update-rls, r=oli-obk

Update RLS

This bumps the version to 1.37 and also doesn't build clippy by default (should reduce toolstate breakages, see https://github.com/rust-lang/rust/issues/59761#issuecomment-498616465 for more details)

r? @oli-obk

5 years agoRollup merge of #61669 - petrochenkov:tokderef2, r=oli-obk
Mazdak Farrokhzad [Sat, 8 Jun 2019 22:20:38 +0000 (00:20 +0200)]
Rollup merge of #61669 - petrochenkov:tokderef2, r=oli-obk

 syntax: Remove `Deref` impl from `Token`

Follow up to https://github.com/rust-lang/rust/pull/61541

r? @oli-obk

5 years agoRollup merge of #61666 - JohnTitor:add-test-for-ice, r=Centril
Mazdak Farrokhzad [Sat, 8 Jun 2019 22:20:36 +0000 (00:20 +0200)]
Rollup merge of #61666 - JohnTitor:add-test-for-ice, r=Centril

Add test for trait ICE

Closes #55266

5 years agoRollup merge of #61660 - petrochenkov:nocusta, r=Centril
Mazdak Farrokhzad [Sat, 8 Jun 2019 22:20:35 +0000 (00:20 +0200)]
Rollup merge of #61660 - petrochenkov:nocusta, r=Centril

Minimize use of `#![feature(custom_attribute)]`

Some preparations before resurrecting https://github.com/rust-lang/rust/pull/57921.

5 years agoRollup merge of #61658 - RalfJung:const-tests, r=oli-obk
Mazdak Farrokhzad [Sat, 8 Jun 2019 22:20:34 +0000 (00:20 +0200)]
Rollup merge of #61658 - RalfJung:const-tests, r=oli-obk

remove useless ident() functions in const tests

and replace the useful ones by black_box (with a comment)

r? @oli-obk

5 years agoRollup merge of #61646 - L117:master, r=Centril
Mazdak Farrokhzad [Sat, 8 Jun 2019 22:20:32 +0000 (00:20 +0200)]
Rollup merge of #61646 - L117:master, r=Centril

Remove useless allocations in macro_rules follow logic.

Closes  #61543

5 years agooffer ways to directly construct a Scalar from unsigned integers
Ralf Jung [Sat, 8 Jun 2019 21:53:10 +0000 (23:53 +0200)]
offer ways to directly construct a Scalar from unsigned integers

5 years agoScalar: only convert to/from soft-float types, not to/from hard-floats
Ralf Jung [Sat, 8 Jun 2019 21:30:33 +0000 (23:30 +0200)]
Scalar: only convert to/from soft-float types, not to/from hard-floats

5 years agoDon't use "base place" for different concepts
Oliver Scherer [Sat, 8 Jun 2019 21:24:37 +0000 (23:24 +0200)]
Don't use "base place" for different concepts

5 years agoDeduplicate some code
Oliver Scherer [Sat, 8 Jun 2019 21:23:10 +0000 (23:23 +0200)]
Deduplicate some code

5 years agoAddress review comments
Vadim Petrochenkov [Sat, 8 Jun 2019 20:55:09 +0000 (23:55 +0300)]
Address review comments

5 years agoProhibit bare CRs in raw byte strings
Igor Matuszewski [Mon, 13 May 2019 18:21:44 +0000 (20:21 +0200)]
Prohibit bare CRs in raw byte strings

5 years agoValidate and transcribe raw strings via unescape module
Igor Matuszewski [Mon, 13 May 2019 17:52:55 +0000 (19:52 +0200)]
Validate and transcribe raw strings via unescape module

5 years agoMove some run-pass attribute tests to ui
Vadim Petrochenkov [Sat, 8 Jun 2019 14:42:58 +0000 (17:42 +0300)]
Move some run-pass attribute tests to ui

5 years agoRemove some more `#![feature(custom_attribute)]`s
Vadim Petrochenkov [Sat, 8 Jun 2019 14:35:54 +0000 (17:35 +0300)]
Remove some more `#![feature(custom_attribute)]`s

5 years agoIntroduce `#[rustc_dummy]` attribute and use it in tests
Vadim Petrochenkov [Sat, 8 Jun 2019 08:36:43 +0000 (11:36 +0300)]
Introduce `#[rustc_dummy]` attribute and use it in tests

Unlike other built-in attributes, this attribute accepts any input

5 years agoTurn `#[allocator]` into a built-in attribute and rename it to `#[rustc_allocator]`
Vadim Petrochenkov [Sat, 8 Jun 2019 08:36:30 +0000 (11:36 +0300)]
Turn `#[allocator]` into a built-in attribute and rename it to `#[rustc_allocator]`

5 years agoRemove unused `#![feature(custom_attribute)]`s
Vadim Petrochenkov [Sat, 8 Jun 2019 08:35:30 +0000 (11:35 +0300)]
Remove unused `#![feature(custom_attribute)]`s

5 years agoAuto merge of #61529 - ehuss:update-books, r=GuillaumeGomez
bors [Sat, 8 Jun 2019 20:25:09 +0000 (20:25 +0000)]
Auto merge of #61529 - ehuss:update-books, r=GuillaumeGomez

Update books

## reference

2 commits in 862b669c395822bb0938781d74f860e5762ad4fb..f8ae436d936f6f4891d3c1bbb1af5865eb8aeadb
2019-05-04 23:41:35 -0700 to 2019-05-31 14:59:12 +0200
- Document that literals with any suffixes are valid as tokens (rust-lang-nursery/reference#612)
- Fix example code of derive macro (rust-lang-nursery/reference#611)

## book

2 commits in 29fe982990e43b9367be0ff47abc82fb2123fd03..62a8c6f25fbd981c80a046f3b04be9684749af3b
2019-05-15 17:48:40 -0400 to 2019-05-28 15:48:23 -0400
- Remove snapshots checked in layout
- Remove snapshots that I've approved in layout

## rust-by-example

5 commits in 811c697b232c611ed754d279ed20643a0c4096f6..18566f4dedc3ef5bf61f5f85685d5966db99cc11
2019-04-28 18:56:42 -0300 to 2019-05-30 19:23:24 -0300
- Fixed wording in the `Seconds` struct description. (rust-lang/rust-by-example#1195)
- Fix usage of the word "elision" (rust-lang/rust-by-example#1191)
- Reword "Flow Control" to "Flow of Control" (rust-lang/rust-by-example#1190)
- Copy edits to chapter 1 (rust-lang/rust-by-example#1189)
- Fix typo in a mod/visibility.md (rust-lang/rust-by-example#1188)

## rustc-guide

9 commits in 3cb727b62b953d59b4360d39aa68b6dc8f157655..3ac9cfc9c9ab2e366feebf18718112737f572352
2019-05-07 09:53:32 -0500 to 2019-06-02 19:36:58 -0500
- Update information about debuginfo configuration
- fix long line
- Fixed misspelling
- Add more info subsection with links to forge and rustc api docs (rust-lang/rustc-guide#324)
- Renamed the file and title of the diagnostics chapter.
- Added rustc phases diagram and explanation
- Mention running tests for subdirectories
- Fixed links broken by merging chalks rules and solve
- Add documentation about profile-guided optimization.

## embedded-book

1 commits in 9858872bd1b7dbba5ec27dc30d34eba00acd7ef9..f0c75b75f9c18537b78f5d17c1015247e9a49c86
2019-05-02 18:56:54 +0000 to 2019-06-03 10:49:02 +0000
- Qemu md changes  (rust-embedded/book#193)

5 years agoUpdate RLS
Igor Matuszewski [Sat, 8 Jun 2019 20:15:22 +0000 (22:15 +0200)]
Update RLS

5 years agosyntax: Move some `Token` methods around
Vadim Petrochenkov [Sat, 8 Jun 2019 19:38:39 +0000 (22:38 +0300)]
syntax: Move some `Token` methods around