]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoUpdate test/ui/parser for bare_trait_object warnings
memoryruins [Tue, 28 May 2019 18:45:27 +0000 (14:45 -0400)]
Update test/ui/parser for bare_trait_object warnings

5 years agoSet bare_trait_objects lint to warn
memoryruins [Tue, 28 May 2019 18:42:14 +0000 (14:42 -0400)]
Set bare_trait_objects lint to warn

5 years agorustbuild: Tweak how stage1 compilers are selected
Alex Crichton [Tue, 28 May 2019 17:00:53 +0000 (10:00 -0700)]
rustbuild: Tweak how stage1 compilers are selected

This commit furthers the previous one to ensure that we don't build an
extra stage of the compiler in CI. A test has been added to rustbuild to
ensure that this doesn't regress, and then in debugging this test it was
hunted down that the `dist::Std` target was the one erroneously pulling
in the wrong compiler.

The `dist::Std` step was updated to instead account for the "full
bootstrap" or not flag, ensuring that the correct compiler for compiling
the final standard library was used. This was another use of the
`force_use_stage1` function which was in theory supposed to be pretty
central, so existing users were all evaluated and a new function,
`Builder::compiler_for`, was introduced. All existing users of
`force_use_stage1` have been updated to use `compiler_for`, where the
semantics of `compiler_for` are similar to that of `compiler` except
that it doesn't guarantee the presence of a sysroot for the arguments
passed (as they may be modified).

Perhaps one day we can unify `compiler` and `compiler_for`, but the
usage of `Builder::compiler` is so ubiquitous it would take quite some
time to evaluate whether each one needs the sysroot or not, so it's
hoped that can be done in parallel.

5 years agoAuto merge of #61274 - Centril:rollup-23dekk4, r=Centril
bors [Tue, 28 May 2019 17:38:01 +0000 (17:38 +0000)]
Auto merge of #61274 - Centril:rollup-23dekk4, r=Centril

Rollup of 4 pull requests

Successful merges:

 - #61123 (Allow to specify profiling data output directory as -Zself-profile argument.)
 - #61159 (split core::ptr module into multiple files)
 - #61164 (rename Scalar::Bits to Scalar::Raw and bits field to data)
 - #61250 (Remove special case for *ios* builds in run-make-fulldeps/print-target-list Makefile)

Failed merges:

r? @ghost

5 years agoRevert "Disable solaris target since toolchain no longer builds"
Bastian Germann [Tue, 28 May 2019 17:30:46 +0000 (19:30 +0200)]
Revert "Disable solaris target since toolchain no longer builds"

This reverts commit e764f475ca7fffd6167ea991afc7d1b2b3f642dc.
Fixes #61174.

5 years agoChanges the type `mir::Mir` into `mir::Body`
Claude-Alban RANÉLY-VERGÉ-DÉPRÉ [Fri, 17 May 2019 21:55:04 +0000 (23:55 +0200)]
Changes the type `mir::Mir` into `mir::Body`

The commit should have changed comments as well.
At the time of writting, it passes the tidy and check tool.

Revisions asked by eddyb :
- Renamed of all the occurences of {visit/super}_mir
- Renamed test structures `CachedMir` to `Cached`

Fixing the missing import on `AggregateKind`

5 years agoimplicit `Option`-returning doctests
Andre Bogus [Tue, 28 May 2019 17:10:39 +0000 (19:10 +0200)]
implicit `Option`-returning doctests

This distinguishes `Option` and `Result`-returning doctests with
implicit `main` method, where the former tests must end with
`Some(())`.

5 years agoRename Place::local to Place::local_or_deref_local
Santiago Pastorino [Mon, 27 May 2019 21:37:18 +0000 (23:37 +0200)]
Rename Place::local to Place::local_or_deref_local

5 years agoUse closure to avoid self.describe_place(...).unwrap_or_else(...) repetition
Santiago Pastorino [Tue, 28 May 2019 14:47:59 +0000 (16:47 +0200)]
Use closure to avoid self.describe_place(...).unwrap_or_else(...) repetition

5 years agois_union returns ty to avoid computing it twice
Santiago Pastorino [Tue, 28 May 2019 13:18:37 +0000 (15:18 +0200)]
is_union returns ty to avoid computing it twice

5 years agoUpdate src/libcore/mem.rs
Ralf Jung [Tue, 28 May 2019 16:20:24 +0000 (18:20 +0200)]
Update src/libcore/mem.rs

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
5 years agoRollup merge of #61250 - rye:print-target-list--rm-ios-case, r=alexcrichton
Mazdak Farrokhzad [Tue, 28 May 2019 16:15:41 +0000 (18:15 +0200)]
Rollup merge of #61250 - rye:print-target-list--rm-ios-case, r=alexcrichton

Remove special case for *ios* builds in run-make-fulldeps/print-target-list Makefile

Previous `TODO` comment in this file mentions [an issue that was closed](https://github.com/rust-lang/rust/issues/29812), and I was able to confirm locally that provided code in that issue no longer produces an ICE. Discussion on that issue seems to indicate this code was no longer needed as of 1.12.0.

I removed the `*ios*` branch from this `case` statement as it may cause confusion, then removed the case statement entirely as it only had a wildcard branch.

5 years agoRollup merge of #61164 - RalfJung:scalar, r=oli-obk
Mazdak Farrokhzad [Tue, 28 May 2019 16:15:39 +0000 (18:15 +0200)]
Rollup merge of #61164 - RalfJung:scalar, r=oli-obk

rename Scalar::Bits to Scalar::Raw and bits field to data

Also use this opportunity to seal some abstraction leaks (other modules constructing `Scalar::Bits` directly instead of using a constructor).

r? @oli-obk

5 years agoRollup merge of #61159 - RalfJung:ptr, r=alexcrichton
Mazdak Farrokhzad [Tue, 28 May 2019 16:15:38 +0000 (18:15 +0200)]
Rollup merge of #61159 - RalfJung:ptr, r=alexcrichton

split core::ptr module into multiple files

Cc @Centril

5 years agoRollup merge of #61123 - michaelwoerister:self-profile-dir, r=wesleywiser
Mazdak Farrokhzad [Tue, 28 May 2019 16:15:35 +0000 (18:15 +0200)]
Rollup merge of #61123 - michaelwoerister:self-profile-dir, r=wesleywiser

Allow to specify profiling data output directory as -Zself-profile argument.

The PR also makes `rustc` include the crate-name (if already available) in the output file name.

r? @wesleywiser

At some point we should add some basic tests for `-Zself-profile`.

5 years agomention that MaybeUninit is a bit like Option
Ralf Jung [Tue, 28 May 2019 16:04:37 +0000 (18:04 +0200)]
mention that MaybeUninit is a bit like Option

5 years agoAuto merge of #61246 - oli-obk:clippy, r=oli-obk
bors [Tue, 28 May 2019 14:42:27 +0000 (14:42 +0000)]
Auto merge of #61246 - oli-obk:clippy, r=oli-obk

Update clippy submodule

fixes #61240

5 years agoRename PgoGenerate to something more general.
Michael Woerister [Tue, 28 May 2019 14:13:59 +0000 (16:13 +0200)]
Rename PgoGenerate to something more general.

5 years agoAllow to specify profiling data output directory as -Zself-profile argument.
Michael Woerister [Fri, 24 May 2019 14:36:44 +0000 (16:36 +0200)]
Allow to specify profiling data output directory as -Zself-profile argument.

5 years agoMake test/codegen/pgo-instrumentation.rs work reliably on Windows.
Michael Woerister [Wed, 22 May 2019 08:35:14 +0000 (10:35 +0200)]
Make test/codegen/pgo-instrumentation.rs work reliably on Windows.

5 years agoEmit error when trying to use PGO in conjunction with unwinding on Windows.
Michael Woerister [Tue, 21 May 2019 10:11:23 +0000 (12:11 +0200)]
Emit error when trying to use PGO in conjunction with unwinding on Windows.

5 years agoAuto merge of #61258 - Centril:rollup-l2mof9t, r=Centril
bors [Tue, 28 May 2019 11:50:14 +0000 (11:50 +0000)]
Auto merge of #61258 - Centril:rollup-l2mof9t, r=Centril

Rollup of 9 pull requests

Successful merges:

 - #61084 (Clarify docs for unreachable! macro)
 - #61220 (Added error message for E0284)
 - #61227 (Use .await syntax instead of await!)
 - #61230 (avoid creating Boxes of uninitalized values in RawVec)
 - #61237 (Updated the Iterator docs with information about overriding methods.)
 - #61241 (Check place iterative)
 - #61242 (Make dest_needs_borrow iterate instead of recurse)
 - #61247 (Make eval_place iterate instead of recurse)
 - #61248 (Use Place::local)

Failed merges:

r? @ghost

5 years agoAlphabetized lines with Atom's Sort Lines package
Joseph Lyons [Tue, 28 May 2019 10:42:47 +0000 (06:42 -0400)]
Alphabetized lines with Atom's Sort Lines package

https://github.com/atom/sort-lines

5 years agoAdding mailmap for myself
Joseph Lyons [Tue, 28 May 2019 10:40:41 +0000 (06:40 -0400)]
Adding mailmap for myself

5 years agoFixing mailmap for Carol
Joseph Lyons [Tue, 28 May 2019 10:40:16 +0000 (06:40 -0400)]
Fixing mailmap for Carol

5 years agoUpdate clippy submodule
Oliver Scherer [Mon, 27 May 2019 20:49:37 +0000 (22:49 +0200)]
Update clippy submodule

5 years agoRollup merge of #61248 - spastorino:use-place-local-fn, r=oli-obk
Mazdak Farrokhzad [Tue, 28 May 2019 09:49:09 +0000 (11:49 +0200)]
Rollup merge of #61248 - spastorino:use-place-local-fn, r=oli-obk

Use Place::local

r? @oli-obk

5 years agoRollup merge of #61247 - spastorino:eval-place-iterate, r=wesleywiser
Mazdak Farrokhzad [Tue, 28 May 2019 09:49:08 +0000 (11:49 +0200)]
Rollup merge of #61247 - spastorino:eval-place-iterate, r=wesleywiser

Make eval_place iterate instead of recurse

r? @oli-obk

5 years agoRollup merge of #61242 - spastorino:dest-needs-borrow-iterate, r=oli-obk
Mazdak Farrokhzad [Tue, 28 May 2019 09:49:04 +0000 (11:49 +0200)]
Rollup merge of #61242 - spastorino:dest-needs-borrow-iterate, r=oli-obk

Make dest_needs_borrow iterate instead of recurse

r? @oli-obk

5 years agoRollup merge of #61241 - spastorino:check-place-iterative, r=oli-obk
Mazdak Farrokhzad [Tue, 28 May 2019 09:49:02 +0000 (11:49 +0200)]
Rollup merge of #61241 - spastorino:check-place-iterative, r=oli-obk

Check place iterative

r? @oli-obk

5 years agoRollup merge of #61237 - DevQps:expand-iterator-docs, r=Mark-Simulacrum
Mazdak Farrokhzad [Tue, 28 May 2019 09:49:00 +0000 (11:49 +0200)]
Rollup merge of #61237 - DevQps:expand-iterator-docs, r=Mark-Simulacrum

Updated the Iterator docs with information about overriding methods.

# Description

Updated the Iterator docs with information about overriding methods.

closes #60223

5 years agoRollup merge of #61230 - matklad:ub-comment, r=RalfJung
Mazdak Farrokhzad [Tue, 28 May 2019 09:48:58 +0000 (11:48 +0200)]
Rollup merge of #61230 - matklad:ub-comment, r=RalfJung

avoid creating Boxes of uninitalized values in RawVec

`RawVec<bool>::into_box` is definitely instant UB, if not all values are initialized.

See https://gankro.github.io/blah/initialize-me-maybe/

5 years agoRollup merge of #61227 - diwic:patch-2, r=Centril
Mazdak Farrokhzad [Tue, 28 May 2019 09:48:56 +0000 (11:48 +0200)]
Rollup merge of #61227 - diwic:patch-2, r=Centril

Use .await syntax instead of await!

Tiny doc fix.

5 years agoRollup merge of #61220 - imbrem:error_explanations, r=estebank
Mazdak Farrokhzad [Tue, 28 May 2019 09:48:55 +0000 (11:48 +0200)]
Rollup merge of #61220 - imbrem:error_explanations, r=estebank

Added error message for E0284

Work on #61137

5 years agoRollup merge of #61084 - blkerby:unreachable_doc, r=KodrAus
Mazdak Farrokhzad [Tue, 28 May 2019 09:48:53 +0000 (11:48 +0200)]
Rollup merge of #61084 - blkerby:unreachable_doc, r=KodrAus

Clarify docs for unreachable! macro

Fixes #60754.

5 years agolibrustc_errors: Move annotation collection to own impl
Philipp Hansch [Sat, 25 May 2019 19:45:51 +0000 (21:45 +0200)]
librustc_errors: Move annotation collection to own impl

Extracted from work on #59346. This moves the annotation collection to
the `FileWithAnnotatedLines` impl to allow re-use in a separate
EmitterWriter.

5 years agoAuto merge of #60955 - agnxy:rename-assoc, r=oli-obk,Centril
bors [Tue, 28 May 2019 05:28:13 +0000 (05:28 +0000)]
Auto merge of #60955 - agnxy:rename-assoc, r=oli-obk,Centril

Rename "Associated*" to "Assoc*"

This change is for #60163.

r? @oli-obk

5 years agoAuto merge of #61036 - michaelwoerister:pgo-xlto-test, r=alexcrichton
bors [Tue, 28 May 2019 01:56:44 +0000 (01:56 +0000)]
Auto merge of #61036 - michaelwoerister:pgo-xlto-test, r=alexcrichton

PGO - Add a smoketest for combining PGO with cross-language LTO.

This PR

- Adds a test making sure that PGO can be combined with cross-language LTO.
- Does a little cleanup on how the `pgo-use` flag is handled internally.
- Makes the compiler error if the `pgo-use` file given to `rustc` doesn't actually exist. LLVM only gives a warning and then just doesn't do PGO. Clang, on the other hand, does give an error in this case.
- Makes the build system also build `compiler-rt` when building LLDB. This way the Clang compiler that we get from building LLDB can perform PGO, which is something that the new test case wants to do. CI compile times shouldn't be affected too much.

5 years agoFix an sh error
Kristofer Rye [Tue, 28 May 2019 00:40:11 +0000 (19:40 -0500)]
Fix an sh error

Didn't think it was this particular about things, but I also should
have tested locally.

It makes sense, though---`\` followed by LF would eat it, so we'd have
`sysroot done` instead of `sysroot; done` as it is parsed.  This should
pass now.

Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
Tested-by: Kristofer Rye <kristofer.rye@gmail.com>
5 years agoIncorporated suggested changes
Jad Ghalayini [Mon, 27 May 2019 23:37:20 +0000 (19:37 -0400)]
Incorporated suggested changes

5 years agoAuto merge of #61078 - pietroalbini:nightly-next, r=Centril
bors [Mon, 27 May 2019 23:04:54 +0000 (23:04 +0000)]
Auto merge of #61078 - pietroalbini:nightly-next, r=Centril

Bump nightly to 1.37.0

r? @Mark-Simulacrum

5 years agoRemove now-dead case statement in print-target-list Makefile
Kristofer Rye [Mon, 27 May 2019 21:52:54 +0000 (16:52 -0500)]
Remove now-dead case statement in print-target-list Makefile

Since this case statement no longer has any branches, remove it.

Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
5 years agoRemove *ios* case from print-target-list Makefile
Kristofer Rye [Mon, 27 May 2019 21:44:16 +0000 (16:44 -0500)]
Remove *ios* case from print-target-list Makefile

Based on the TODO, this case was added to short-circuit for ios builds,
which is no longer necessary.

The comment in this Makefile mentions rust-lang/rust#29812 as a
dependency, but that issue has been since closed, with a statement that
the ICE of concern was resolved circa 1.12.

Here we remove this case, and just run the same branch for all targets.

Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
5 years agoUse Place::local
Santiago Pastorino [Mon, 27 May 2019 21:03:38 +0000 (23:03 +0200)]
Use Place::local

5 years agoMake eval_place iterate instead of recurse
Santiago Pastorino [Mon, 27 May 2019 20:47:30 +0000 (22:47 +0200)]
Make eval_place iterate instead of recurse

5 years agoBox::into_vec: use Box::into_raw instead of mem::forget
Ralf Jung [Mon, 27 May 2019 20:40:13 +0000 (22:40 +0200)]
Box::into_vec: use Box::into_raw instead of mem::forget

5 years agoMake check_place iterate instead of recurse
Santiago Pastorino [Mon, 27 May 2019 19:47:24 +0000 (21:47 +0200)]
Make check_place iterate instead of recurse

5 years agoMake dest_needs_borrow iterate instead of recurse
Santiago Pastorino [Mon, 27 May 2019 20:00:44 +0000 (22:00 +0200)]
Make dest_needs_borrow iterate instead of recurse

5 years agoAuto merge of #61140 - estebank:attr-diagnostics, r=michaelwoerister
bors [Mon, 27 May 2019 20:12:14 +0000 (20:12 +0000)]
Auto merge of #61140 - estebank:attr-diagnostics, r=michaelwoerister

Reword malformed attribute input diagnostics

- Handle empty `cfg_attr` attribute
- Reword empty `derive` attribute error
- Use consistend error message: "malformed `attrname` attribute input"
- Provide suggestions when possible
- Move note/help to label/suggestion
- Use consistent wording "ill-formed" -> "malformed"
- Move diagnostic logic out of parser

Split up from https://github.com/rust-lang/rust/pull/61026, where there's prior conversation.

5 years agoRemove unused tcx and mir params
Santiago Pastorino [Mon, 27 May 2019 19:40:22 +0000 (21:40 +0200)]
Remove unused tcx and mir params

5 years agoUpdate src/liballoc/boxed.rs
Aleksey Kladov [Mon, 27 May 2019 19:42:50 +0000 (22:42 +0300)]
Update src/liballoc/boxed.rs

Co-Authored-By: Ralf Jung <post@ralfj.de>
5 years agomake Box<str>::clone simpler & safer
Aleksey Kladov [Mon, 27 May 2019 06:43:20 +0000 (09:43 +0300)]
make Box<str>::clone simpler & safer

5 years agoAuto merge of #60827 - oli-obk:late_symbol, r=nnethercote
bors [Mon, 27 May 2019 15:36:32 +0000 (15:36 +0000)]
Auto merge of #60827 - oli-obk:late_symbol, r=nnethercote

Use `Symbol` more in lint APIs

r? @nnethercote

This will cause clippy breakage, but super trivial to fix since we can then remove the hacky `match_def_path` function that I added and go back to calling rustc's `match_def_path` method.

5 years agoOnly build clang_rt when RUSTBUILD_FORCE_CLANG_BASED_TESTS is set.
Michael Woerister [Mon, 27 May 2019 13:09:26 +0000 (15:09 +0200)]
Only build clang_rt when RUSTBUILD_FORCE_CLANG_BASED_TESTS is set.

5 years agoUpdated the Iterator docs with information about overriding methods.
Christian [Mon, 27 May 2019 14:17:39 +0000 (16:17 +0200)]
Updated the Iterator docs with information about overriding methods.

5 years agoStabilize bufreader_buffer feature
Lzu Tao [Mon, 27 May 2019 13:42:21 +0000 (13:42 +0000)]
Stabilize bufreader_buffer feature

5 years agoAuto merge of #59627 - LooMaclin:issue_57128_improve_miri_error_reporting_in_check_in...
bors [Mon, 27 May 2019 12:46:12 +0000 (12:46 +0000)]
Auto merge of #59627 - LooMaclin:issue_57128_improve_miri_error_reporting_in_check_in_alloc, r=RalfJung

Improve miri error reporting in check_in_alloc

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

r? @RalfJung @oli-obk

5 years agoFix unit test after pgo-use change.
Michael Woerister [Wed, 22 May 2019 13:41:56 +0000 (15:41 +0200)]
Fix unit test after pgo-use change.

5 years agoAdd a smoketest for combining PGO with xLTO.
Michael Woerister [Mon, 20 May 2019 09:43:38 +0000 (11:43 +0200)]
Add a smoketest for combining PGO with xLTO.

5 years agorustbuild: Also build compiler-rt when building LLDB. This allows clang-based run...
Michael Woerister [Wed, 22 May 2019 11:01:12 +0000 (13:01 +0200)]
rustbuild: Also build compiler-rt when building LLDB. This allows clang-based run-make tests to use PGO.

5 years agoPGO: Check that pgo-use file actually exists. LLVM seems to only emit an easy-to...
Michael Woerister [Wed, 22 May 2019 11:00:09 +0000 (13:00 +0200)]
PGO: Check that pgo-use file actually exists. LLVM seems to only emit an easy-to-overlook warning otherwise.

5 years agoUse a PathBuf instead of String for representing the pgo-use path internally.
Michael Woerister [Wed, 22 May 2019 10:58:56 +0000 (12:58 +0200)]
Use a PathBuf instead of String for representing the pgo-use path internally.

5 years agofactor out some common code and make the on-elimination truncation test debug-only
Ralf Jung [Sun, 26 May 2019 21:28:09 +0000 (23:28 +0200)]
factor out some common code and make the on-elimination truncation test debug-only

5 years agofix truncate and sign_extend for size == 0
Ralf Jung [Mon, 27 May 2019 07:40:13 +0000 (09:40 +0200)]
fix truncate and sign_extend for size == 0

5 years agoUse `Symbol` more in lint APIs
Oliver Scherer [Tue, 14 May 2019 13:58:22 +0000 (15:58 +0200)]
Use `Symbol` more in lint APIs

5 years agoTests for external linkage symbol collision check.
Felix S. Klock II [Mon, 27 May 2019 10:08:10 +0000 (12:08 +0200)]
Tests for external linkage symbol collision check.

Fix #61232

5 years agoAuto merge of #60967 - Zoxc:fix-syntax-sync, r=michaelwoerister
bors [Mon, 27 May 2019 09:49:18 +0000 (09:49 +0000)]
Auto merge of #60967 - Zoxc:fix-syntax-sync, r=michaelwoerister

Short circuit Send and Sync impls for TokenTree

Workaround to make the parallel compiler build after https://github.com/rust-lang/rust/pull/60444.

r? @nikomatsakis

5 years agoRegression test for issue #59548.
Felix S. Klock II [Fri, 24 May 2019 13:13:16 +0000 (15:13 +0200)]
Regression test for issue #59548.

5 years agoRefine the message to at least *mention* the attribute itself.
Felix S. Klock II [Fri, 24 May 2019 12:55:15 +0000 (14:55 +0200)]
Refine the message to at least *mention* the attribute itself.

Update pre-existing test's diagnostic output accordingly.

5 years agoAlways supply span to check_and_apply_linkage, sidestepping need to add `bug!`s to...
Felix S. Klock II [Fri, 24 May 2019 12:11:39 +0000 (14:11 +0200)]
Always supply span to check_and_apply_linkage, sidestepping need to add `bug!`s to rustc.

5 years agoMove existing `#[linkage]` tests to a subdirectory where I can add more tests.
Felix S. Klock II [Fri, 24 May 2019 12:59:19 +0000 (14:59 +0200)]
Move existing `#[linkage]` tests to a subdirectory where I can add more tests.

5 years agoavoid materializing unintialized Boxes in RawVec
Aleksey Kladov [Mon, 27 May 2019 06:43:20 +0000 (09:43 +0300)]
avoid materializing unintialized Boxes in RawVec

5 years agoShort circuit Send and Sync impls for TokenTree
John Kåre Alsaker [Sun, 19 May 2019 18:44:06 +0000 (20:44 +0200)]
Short circuit Send and Sync impls for TokenTree

5 years agoAuto merge of #61035 - nnethercote:avoid-more-symbol-interning, r=petrochenkov
bors [Mon, 27 May 2019 06:53:53 +0000 (06:53 +0000)]
Auto merge of #61035 - nnethercote:avoid-more-symbol-interning, r=petrochenkov

Avoid more symbol interning

r? @petrochenkov

5 years agoUse .await syntax instead of await!
diwic [Mon, 27 May 2019 05:27:13 +0000 (07:27 +0200)]
Use .await syntax instead of await!

5 years agoUse `Symbol` equality in `may_begin_with` and `parse_nt`.
Nicholas Nethercote [Thu, 23 May 2019 06:23:11 +0000 (16:23 +1000)]
Use `Symbol` equality in `may_begin_with` and `parse_nt`.

5 years agoUse `Symbol` equality in `check_ident_token`.
Nicholas Nethercote [Thu, 23 May 2019 06:11:52 +0000 (16:11 +1000)]
Use `Symbol` equality in `check_ident_token`.

5 years agoUse `Symbol` equality in `is_ident_named`.
Nicholas Nethercote [Thu, 23 May 2019 05:31:43 +0000 (15:31 +1000)]
Use `Symbol` equality in `is_ident_named`.

5 years agoAvoid some re-interning in `to_lit_token`.
Nicholas Nethercote [Thu, 23 May 2019 02:34:38 +0000 (12:34 +1000)]
Avoid some re-interning in `to_lit_token`.

5 years agoAdd `to_symbol` methods.
Nicholas Nethercote [Thu, 23 May 2019 02:22:43 +0000 (12:22 +1000)]
Add `to_symbol` methods.

5 years agoAuto merge of #61215 - paoloteti:armebv7r, r=alexcrichton
bors [Mon, 27 May 2019 03:58:56 +0000 (03:58 +0000)]
Auto merge of #61215 - paoloteti:armebv7r, r=alexcrichton

Docker: remove environment variable `CC_armebv7r_none_eabi`

`cc-rs` take care of selecting the tool-chain, so this `ENV` variable can be safely removed.

5 years agoPre-intern "0", "1", ..., "9", and use where appropriate.
Nicholas Nethercote [Wed, 22 May 2019 09:25:39 +0000 (19:25 +1000)]
Pre-intern "0", "1", ..., "9", and use where appropriate.

5 years agoPass symbols to `ExtCtxt::std_path` instead of strings.
Nicholas Nethercote [Wed, 22 May 2019 04:41:15 +0000 (14:41 +1000)]
Pass symbols to `ExtCtxt::std_path` instead of strings.

Because this function is hot.

Also remove the dead `ty_option` function.

5 years agoAvoid unnecessary internings.
Nicholas Nethercote [Wed, 22 May 2019 02:42:23 +0000 (12:42 +1000)]
Avoid unnecessary internings.

Most involving `Symbol::intern` on string literals.

5 years agoAvoid interning in `resolve_place_op`.
Nicholas Nethercote [Wed, 22 May 2019 00:15:32 +0000 (10:15 +1000)]
Avoid interning in `resolve_place_op`.

This function is hot for `keccak`.

5 years agoAuto merge of #61147 - estebank:suggest-as-ref, r=oli-obk
bors [Mon, 27 May 2019 01:10:22 +0000 (01:10 +0000)]
Auto merge of #61147 - estebank:suggest-as-ref, r=oli-obk

When encountering move error on an `Option`, suggest using `as_ref`

Fix #61109, cc #15457.

5 years agoAuto merge of #61214 - oli-obk:clippy, r=Manishearth
bors [Sun, 26 May 2019 21:38:04 +0000 (21:38 +0000)]
Auto merge of #61214 - oli-obk:clippy, r=Manishearth

Update clippy submodule

r? @Manishearth

5 years agoAdded error message for E0284
Jad Ghalayini [Sun, 26 May 2019 20:48:02 +0000 (16:48 -0400)]
Added error message for E0284

5 years agoAuto merge of #61213 - pietroalbini:fix-azure-multiple-checkouts, r=alexcrichton
bors [Sun, 26 May 2019 18:48:12 +0000 (18:48 +0000)]
Auto merge of #61213 - pietroalbini:fix-azure-multiple-checkouts, r=alexcrichton

azure: fix multiple checkouts on azure

We were checking out the rustc repo multiple times on auto macOS, and
that was causing an error on the Azure side since multiple checkouts are
apparently not supported. This removes the extra checkout.

r? @alexcrichton
fixes #61170

5 years agoAccount for short-hand init structs when suggesting conversion
Esteban Küber [Sun, 26 May 2019 18:39:48 +0000 (11:39 -0700)]
Account for short-hand init structs when suggesting conversion

5 years agoDocker: remove environment variable `CC_armebv7r_none_eabi`
Paolo Teti [Sun, 26 May 2019 17:31:40 +0000 (19:31 +0200)]
Docker: remove environment variable `CC_armebv7r_none_eabi`

`cc-rs` take care of selecting the tool-chain, so this ENV variable
can be safely removed.

5 years agoUpdate cargo lockfile
Oliver Scherer [Sun, 26 May 2019 17:21:54 +0000 (19:21 +0200)]
Update cargo lockfile

5 years agoUpdate clippy submodule
Oliver Scherer [Sun, 26 May 2019 16:59:51 +0000 (18:59 +0200)]
Update clippy submodule

5 years agoci: increase timeout on the auto branch in azure
Pietro Albini [Sun, 26 May 2019 16:35:32 +0000 (18:35 +0200)]
ci: increase timeout on the auto branch in azure

5 years agoci: fix multiple checkouts on azure
Pietro Albini [Sun, 26 May 2019 15:12:13 +0000 (17:12 +0200)]
ci: fix multiple checkouts on azure

We were checking out the rustc repo multiple times on auto macOS, and
that was causing an error on the Azure side since multiple checkouts are
apparently not supported. This removes the extra checkout.

5 years agoci: Attempt to skip a full rustc compile on dist*
Alex Crichton [Sun, 26 May 2019 14:39:14 +0000 (07:39 -0700)]
ci: Attempt to skip a full rustc compile on dist*

Currently when we're preparing cross-compiled compilers it can take
quite some time because we have to build the compiler itself three
different times. The first is the normal bootstrap, the second is a
second build for the build platform, and the third is the actual target
architecture compiler. The second compiler was historically built
exclusively for procedural macros, and long ago we didn't actually need
it.

This commit tries out avoiding that second compiled compiler, meaning we
only compile rustc for the build platform only once. Some local testing
shows that this is promising, but bors is of course the ultimate test!

5 years agoAuto merge of #61210 - Centril:rollup-ofr6h5b, r=Centril
bors [Sun, 26 May 2019 12:24:25 +0000 (12:24 +0000)]
Auto merge of #61210 - Centril:rollup-ofr6h5b, r=Centril

Rollup of 4 pull requests

Successful merges:

 - #61077 (Don't arena-allocate static symbols.)
 - #61102 (Move path for iterate)
 - #61120 (Make eval_place iterate instead of recurse)
 - #61205 (docs: fix typo #61197)

Failed merges:

r? @ghost

5 years agocentralize Scalar size sanity checks and also do them in release builds
Ralf Jung [Sun, 26 May 2019 12:13:12 +0000 (14:13 +0200)]
centralize Scalar size sanity checks and also do them in release builds

5 years agofix overflow error in signed wrapping offset
Ralf Jung [Sun, 26 May 2019 12:12:54 +0000 (14:12 +0200)]
fix overflow error in signed wrapping offset

5 years agoImprove miri's error reporting in check_in_alloc
Rust [Sun, 26 May 2019 11:44:58 +0000 (14:44 +0300)]
Improve miri's error reporting in check_in_alloc

Co-Authored-By: Ralf Jung <post@ralfj.de>