]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agomake the armebv7r target more consistent with the armv7r one
Jorge Aparicio [Fri, 24 Aug 2018 17:16:41 +0000 (19:16 +0200)]
make the armebv7r target more consistent with the armv7r one

by removing the redundant +v7 feature

5 years agoadd armv7r-none-eabi target
Jorge Aparicio [Fri, 24 Aug 2018 17:16:20 +0000 (19:16 +0200)]
add armv7r-none-eabi target

5 years agoAdd target for Little-endian ARM Cortex-R4F/R5F MCUs
Paolo Teti [Fri, 24 Aug 2018 08:39:30 +0000 (10:39 +0200)]
Add target for Little-endian ARM Cortex-R4F/R5F MCUs

Similar to `armebv7r-none-eabihf`, but for Little-endian MCUs.

As example TI RM4x/RM5x are Little-endian Cortex-R4F/R5F MCUs.

CI/Dockerfile is intentionally in the disabled folder.

5 years agoAuto merge of #53619 - japaric:panic-handler, r=SimonSapin
bors [Sun, 26 Aug 2018 04:02:19 +0000 (04:02 +0000)]
Auto merge of #53619 - japaric:panic-handler, r=SimonSapin

add #[panic_handler]; deprecate #[panic_implementation]

r? @SimonSapin
cc #44489

5 years agoAuto merge of #53567 - alexcrichton:update-cargo, r=Mark-Simulacrum
bors [Sun, 26 Aug 2018 00:58:07 +0000 (00:58 +0000)]
Auto merge of #53567 - alexcrichton:update-cargo, r=Mark-Simulacrum

Update Cargo submodule

Also update Cargo's dependencies while we're at it

5 years agoUpdate Cargo submodule
Alex Crichton [Tue, 21 Aug 2018 17:23:47 +0000 (10:23 -0700)]
Update Cargo submodule

Also update Cargo's dependencies while we're at it

5 years agoAuto merge of #53612 - mark-i-m:anon_param_disallowed_2018, r=petrochenkov
bors [Sat, 25 Aug 2018 22:50:12 +0000 (22:50 +0000)]
Auto merge of #53612 - mark-i-m:anon_param_disallowed_2018, r=petrochenkov

Remove anonymous trait params from 2018 and beyond

cc @Centril @nikomatsakis
cc #41686 rust-lang/rfcs#2522 #53272

This PR removes support for anonymous trait parameters syntactically in rust 2018 and onward.

TODO:
- [x] Add tests

5 years agoAuto merge of #53701 - Xanewok:update-rls, r=kennytm
bors [Sat, 25 Aug 2018 19:30:10 +0000 (19:30 +0000)]
Auto merge of #53701 - Xanewok:update-rls, r=kennytm

Update RLS

Continuation of https://github.com/rust-lang/rust/pull/53610.
Workspaces are tricky - the `json_internal` problem was only reproducible in Rust CI (not sure why it was only relevant to Windows?) and it seems that this was fixed by updating serde_json workspace-wide.

Tested locally in Rust repo and it seems to be working.

Nightlies are currently shipping without RLS, so it'd be great to include this in the next nightlies if possible.

5 years agoBump serde_json 1.0.24 -> 1.0.25
Igor Matuszewski [Sat, 25 Aug 2018 16:17:55 +0000 (18:17 +0200)]
Bump serde_json 1.0.24 -> 1.0.25

This fixes 'cannot find macro `json_internal!` in this scope' RLS
compilation error in Rust CI, presumably due to a local macro fix in
serde_json 1.0.25
(https://github.com/serde-rs/json/commit/e40cbad70b39a0dd7975be8e5ad9018e2d45f791)

5 years agoUpdate RLS
Igor Matuszewski [Sat, 25 Aug 2018 16:08:00 +0000 (18:08 +0200)]
Update RLS

5 years agoAuto merge of #53584 - mcr431:Fix-#53525, r=varkor
bors [Sat, 25 Aug 2018 13:00:20 +0000 (13:00 +0000)]
Auto merge of #53584 - mcr431:Fix-#53525, r=varkor

Fix #53525  - Unify E0243, E0244, E0087, E0088, E0089, and E0090 into E0107

Fix #53525

This pr merges all errors related to too many or too few generic arguments in types and functions. E0243, E0244, E0087, E0088, E0089, E0090 errors will no longer be emitted and E0107 will be used instead.

5 years agoAuto merge of #53385 - matklad:stabilize-find-map, r=KodrAus
bors [Sat, 25 Aug 2018 08:53:04 +0000 (08:53 +0000)]
Auto merge of #53385 - matklad:stabilize-find-map, r=KodrAus

Stablize Iterator::find_map

Stabilization PR for https://github.com/rust-lang/rust/issues/49602

5 years agoAuto merge of #53609 - bemeurer:tidy-ctfe, r=RalfJung
bors [Sat, 25 Aug 2018 06:48:14 +0000 (06:48 +0000)]
Auto merge of #53609 - bemeurer:tidy-ctfe, r=RalfJung

Tidy CFTE/MIRI

Fixes #53596

5 years agoAuto merge of #53577 - GuillaumeGomez:rustdoc-substring-search, r=QuietMisdreavus
bors [Sat, 25 Aug 2018 02:40:14 +0000 (02:40 +0000)]
Auto merge of #53577 - GuillaumeGomez:rustdoc-substring-search, r=QuietMisdreavus

Search a substring instead of start of string in rustdoc search

Fixes #49762.

r? @QuietMisdreavus

5 years agoAuto merge of #53225 - nikomatsakis:nll-type-annot, r=pnkfelix
bors [Fri, 24 Aug 2018 22:42:00 +0000 (22:42 +0000)]
Auto merge of #53225 - nikomatsakis:nll-type-annot, r=pnkfelix

MIR: support user-given type annotations on fns, structs, and enums

This branch adds tooling to track user-given type annotations on functions, structs, and enum variant expressions. The user-given types are passed onto NLL which then enforces them.

cc #47184 — not a complete fix, as there are more cases to cover

r? @eddyb
cc @rust-lang/wg-compiler-nll

5 years agofix tests
Mark Mansi [Fri, 24 Aug 2018 20:47:25 +0000 (15:47 -0500)]
fix tests

5 years agooops
Mark Mansi [Wed, 22 Aug 2018 21:43:32 +0000 (16:43 -0500)]
oops

5 years agoAdd/update tests for 2015, 2018, rustfix
Mark Mansi [Wed, 22 Aug 2018 20:07:27 +0000 (15:07 -0500)]
Add/update tests for 2015, 2018, rustfix

5 years agoStart working on a test
Mark Mansi [Wed, 22 Aug 2018 19:08:29 +0000 (14:08 -0500)]
Start working on a test

5 years agofix compile error
Mark Mansi [Wed, 22 Aug 2018 18:58:46 +0000 (13:58 -0500)]
fix compile error

5 years agoRemove anon trait params from 2018 and beyond
Mark Mansi [Wed, 22 Aug 2018 18:43:04 +0000 (13:43 -0500)]
Remove anon trait params from 2018 and beyond

5 years agoAuto merge of #53460 - JoshBrudnak:master, r=estebank
bors [Fri, 24 Aug 2018 19:21:27 +0000 (19:21 +0000)]
Auto merge of #53460 - JoshBrudnak:master, r=estebank

Fix compile panic on non existent type return

Reverted the change https://github.com/rust-lang/rust/commit/28a76a90009d605349babcd2755962ab93913327#diff-4ed25c00aceb84666fca639cf8101c7cL1069 which was panicking when returning a type that cannot be found in the current scope and added testing for the compile error.

For example:
```rust
fn addition() -> Wrapper<impl A> {}
```
Where Wrapper is undefined in the scope.

5 years agoaddress pnkfelix nits
Niko Matsakis [Thu, 23 Aug 2018 21:37:41 +0000 (17:37 -0400)]
address pnkfelix nits

5 years agopacify the mercilous tidy: adt-nullary-enums test
Niko Matsakis [Thu, 9 Aug 2018 17:08:18 +0000 (13:08 -0400)]
pacify the mercilous tidy: adt-nullary-enums test

5 years agopacify the mercilous tidy: adt user-ty
Niko Matsakis [Thu, 9 Aug 2018 17:07:57 +0000 (13:07 -0400)]
pacify the mercilous tidy: adt user-ty

5 years agopacify the mercilous tidy: user-ty on rvalue assignments
Niko Matsakis [Thu, 9 Aug 2018 17:07:45 +0000 (13:07 -0400)]
pacify the mercilous tidy: user-ty on rvalue assignments

5 years agopacify the mercilous tidy: doc comment for `is_identity`
Niko Matsakis [Thu, 9 Aug 2018 17:07:23 +0000 (13:07 -0400)]
pacify the mercilous tidy: doc comment for `is_identity`

5 years agopacify the mercilous tidy: canonical ignore comments
Niko Matsakis [Thu, 9 Aug 2018 17:07:11 +0000 (13:07 -0400)]
pacify the mercilous tidy: canonical ignore comments

5 years agoufcs with annot in position 1 and 2
Niko Matsakis [Thu, 9 Aug 2018 16:32:00 +0000 (12:32 -0400)]
ufcs with annot in position 1 and 2

5 years agorename test case
Niko Matsakis [Thu, 9 Aug 2018 16:25:01 +0000 (12:25 -0400)]
rename test case

the 3 is because the type arguments are in the 3rd position

5 years agoinclude ADT user-ty in output
Niko Matsakis [Thu, 9 Aug 2018 16:24:52 +0000 (12:24 -0400)]
include ADT user-ty in output

5 years agoadd test for method ufcs notation
Niko Matsakis [Thu, 9 Aug 2018 16:18:29 +0000 (12:18 -0400)]
add test for method ufcs notation

5 years agosupport user-given types in adts
Niko Matsakis [Thu, 9 Aug 2018 15:56:53 +0000 (11:56 -0400)]
support user-given types in adts

5 years agosupport user annotations in fns, methods
Niko Matsakis [Thu, 9 Aug 2018 10:58:28 +0000 (06:58 -0400)]
support user annotations in fns, methods

5 years agoequate the `user_ty` of a constant with its declared `ty`
Niko Matsakis [Thu, 9 Aug 2018 10:23:52 +0000 (06:23 -0400)]
equate the `user_ty` of a constant with its declared `ty`

5 years agoadd a `user_ty` annotation to `Constant`
Niko Matsakis [Thu, 9 Aug 2018 10:18:00 +0000 (06:18 -0400)]
add a `user_ty` annotation to `Constant`

5 years agoadd a `user_substs` table and store the annotations in there
Niko Matsakis [Wed, 8 Aug 2018 22:10:19 +0000 (18:10 -0400)]
add a `user_substs` table and store the annotations in there

5 years agoadd a `user_substs` map into the typeck tables
Niko Matsakis [Wed, 8 Aug 2018 19:59:31 +0000 (15:59 -0400)]
add a `user_substs` map into the typeck tables

5 years agoAuto merge of #53662 - kennytm:rollup, r=kennytm
bors [Fri, 24 Aug 2018 17:02:23 +0000 (17:02 +0000)]
Auto merge of #53662 - kennytm:rollup, r=kennytm

Rollup of 16 pull requests

Successful merges:

 - #53311 (Window Mutex: Document that we properly initialize the SRWLock)
 - #53503 (Discourage overuse of mem::forget)
 - #53545 (Fix #50865: ICE on impl-trait returning functions reaching private items)
 - #53559 (add macro check for lint)
 - #53562 (Lament the invincibility of the Turbofish)
 - #53563 (use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into())
 - #53592 (docs: minor stylistic changes to str/string docs)
 - #53594 (Update RELEASES.md to include clippy-preview)
 - #53600 (Fix a grammatical mistake in "expected generic arguments" errors)
 - #53614 (update nomicon and book)
 - #53617 (tidy: Stop requiring a license header)
 - #53618 (Add missing fmt examples)
 - #53636 (Prefer `.nth(n)` over `.skip(n).next()`.)
 - #53644 (Use SmallVec for SmallCStr)
 - #53664 (Remove unnecessary closure in rustc_mir/build/mod.rs)
 - #53666 (Added rustc_codegen_llvm to compiler documentation.)

5 years agoRollup merge of #53666 - davidtwco:issue-51737, r=Mark-Simulacrum
kennytm [Fri, 24 Aug 2018 15:27:57 +0000 (23:27 +0800)]
Rollup merge of #53666 - davidtwco:issue-51737, r=Mark-Simulacrum

Added rustc_codegen_llvm to compiler documentation.

Fixes #51737.

5 years agoRollup merge of #53545 - FelixMcFelix:fix-50865-beta, r=petrochenkov
kennytm [Fri, 24 Aug 2018 15:27:16 +0000 (23:27 +0800)]
Rollup merge of #53545 - FelixMcFelix:fix-50865-beta, r=petrochenkov

Fix #50865: ICE on impl-trait returning functions reaching private items

Adds a test case as suggested in #50865, and implements @petrochenkov's suggestion. Fixes #50865.

Impl-trait-returning functions are marked under a new (low) access level, which they propagate rather than `AccessLevels::Reachable`. `AccessLevels::is_reachable` returns false for such items (leaving stability analysis unaffected), these items may still be visible to the lints phase however.

5 years agoAuto merge of #53044 - SergioBenitez:stable-attr-literals, r=petrochenkov
bors [Fri, 24 Aug 2018 14:48:29 +0000 (14:48 +0000)]
Auto merge of #53044 - SergioBenitez:stable-attr-literals, r=petrochenkov

Stabilize 'attr_literals' feature.

RFC Issue: rust-lang/rfcs#1559
Tracking Issue: rust-lang/rust#34981

Reference PR: https://github.com/rust-lang-nursery/reference/pull/388.

5 years agoupdates tests to use new error code
Matthew Russo [Wed, 22 Aug 2018 01:12:23 +0000 (21:12 -0400)]
updates tests to use new error code

5 years agoRemoving GenericArgMismatchErrorCode.
Matthew Russo [Wed, 22 Aug 2018 01:09:48 +0000 (21:09 -0400)]
Removing GenericArgMismatchErrorCode.

5 years agoMerging error code descriptions into E0107 and adding "no longer
Matthew Russo [Tue, 21 Aug 2018 01:34:55 +0000 (21:34 -0400)]
Merging error code descriptions into E0107 and adding "no longer
emitted" messages to the others.

5 years agoRollup merge of #53664 - IsaacWoods:fix_53608, r=oli-obk
kennytm [Fri, 24 Aug 2018 11:25:41 +0000 (19:25 +0800)]
Rollup merge of #53664 - IsaacWoods:fix_53608, r=oli-obk

Remove unnecessary closure in rustc_mir/build/mod.rs

Fixes #53608

5 years agoRollup merge of #53644 - llogiq:smallvec-for-small-c-str, r=estebank
kennytm [Fri, 24 Aug 2018 08:44:51 +0000 (16:44 +0800)]
Rollup merge of #53644 - llogiq:smallvec-for-small-c-str, r=estebank

Use SmallVec for SmallCStr

This reuses the awesome optimizations from Servo's `SmallVec` to speed up `SmallCStr`.

5 years agoRollup merge of #53636 - frewsxcv:frewsxcv-nth, r=rkruppe
kennytm [Fri, 24 Aug 2018 08:44:50 +0000 (16:44 +0800)]
Rollup merge of #53636 - frewsxcv:frewsxcv-nth, r=rkruppe

Prefer `.nth(n)` over `.skip(n).next()`.

Found by clippy.

5 years agoRollup merge of #53618 - GuillaumeGomez:fmt-examples, r=QuietMisdreavus
kennytm [Fri, 24 Aug 2018 08:44:47 +0000 (16:44 +0800)]
Rollup merge of #53618 - GuillaumeGomez:fmt-examples, r=QuietMisdreavus

Add missing fmt examples

r? @QuietMisdreavus

5 years agoRollup merge of #53617 - joshtriplett:tidy-no-license-header, r=Mark-Simulacrum
kennytm [Fri, 24 Aug 2018 08:44:44 +0000 (16:44 +0800)]
Rollup merge of #53617 - joshtriplett:tidy-no-license-header, r=Mark-Simulacrum

tidy: Stop requiring a license header

Previously approved in rust-lang/rust#43498 ; update tidy to match.

5 years agoRollup merge of #53614 - RalfJung:nomicon, r=kennytm
kennytm [Fri, 24 Aug 2018 08:44:42 +0000 (16:44 +0800)]
Rollup merge of #53614 - RalfJung:nomicon, r=kennytm

update nomicon and book

5 years agoRollup merge of #53600 - varkor:expected-generic-arg-s, r=eddyb
kennytm [Fri, 24 Aug 2018 08:44:40 +0000 (16:44 +0800)]
Rollup merge of #53600 - varkor:expected-generic-arg-s, r=eddyb

Fix a grammatical mistake in "expected generic arguments" errors

r? @eddyb

5 years agoRollup merge of #53594 - rust-lang:Aaronepower-patch-1, r=Mark-Simulacrum
kennytm [Fri, 24 Aug 2018 08:44:39 +0000 (16:44 +0800)]
Rollup merge of #53594 - rust-lang:Aaronepower-patch-1, r=Mark-Simulacrum

Update RELEASES.md to include clippy-preview

[Rendered](https://github.com/rust-lang/rust/blob/Aaronepower-patch-1/RELEASES.md#misc)

r? @Mark-Simulacrum

5 years agoRollup merge of #53592 - matthiaskrgr:str_doc, r=alexcrichton
kennytm [Fri, 24 Aug 2018 08:44:38 +0000 (16:44 +0800)]
Rollup merge of #53592 - matthiaskrgr:str_doc, r=alexcrichton

docs: minor stylistic changes to str/string docs

std::string::String.repeat(): slightly rephrase to be more in-line with other descriptions.

add ticks around a few keywords in other descriptions.

5 years agoAuto merge of #53653 - petrochenkov:moreregr, r=Mark-Simulacrum
bors [Fri, 24 Aug 2018 11:22:11 +0000 (11:22 +0000)]
Auto merge of #53653 - petrochenkov:moreregr, r=Mark-Simulacrum

Address two regressions

Remove assert checking that expansion data is immutable until I have time to investigate why it's firing, cc https://github.com/rust-lang/rust/issues/52363
Turn the error for module-relative access to macro-expanded `macro_export` macros into a deprecation lint, closes https://github.com/rust-lang/rust/issues/53495

5 years agoAdded rustc_codegen_llvm to compiler documentation.
David Wood [Fri, 24 Aug 2018 11:09:34 +0000 (13:09 +0200)]
Added rustc_codegen_llvm to compiler documentation.

5 years agoRemove unnecessary closure in rustc_mir/build/mod.rs
Isaac Woods [Fri, 24 Aug 2018 10:20:30 +0000 (11:20 +0100)]
Remove unnecessary closure in rustc_mir/build/mod.rs

5 years agoRollup merge of #53563 - matthiaskrgr:String, r=varkor
kennytm [Fri, 24 Aug 2018 08:44:35 +0000 (16:44 +0800)]
Rollup merge of #53563 - matthiaskrgr:String, r=varkor

use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()

5 years agoRollup merge of #53562 - varkor:bastion-of-the-turbofish, r=nagisa
kennytm [Fri, 24 Aug 2018 08:44:34 +0000 (16:44 +0800)]
Rollup merge of #53562 - varkor:bastion-of-the-turbofish, r=nagisa

Lament the invincibility of the Turbofish

Here a test case is added to ensure that any others attempting to drive the Turbofish to extinction have second thoughts. Previously the [entire test suite would succeed](https://github.com/rust-lang/rust/pull/53511) if generic arguments were accepted without disambiguation, making for [confusing and heartbreaking circumstances](https://github.com/rust-lang/rfcs/pull/2527).

5 years agoRollup merge of #53559 - Dylan-DPC:fix/missing-doc-lint, r=kennytm
kennytm [Fri, 24 Aug 2018 08:44:32 +0000 (16:44 +0800)]
Rollup merge of #53559 - Dylan-DPC:fix/missing-doc-lint, r=kennytm

add macro check for lint

Fixes #53537

5 years agoRollup merge of #53503 - kornelski:master, r=dtolnay
kennytm [Fri, 24 Aug 2018 08:44:31 +0000 (16:44 +0800)]
Rollup merge of #53503 - kornelski:master, r=dtolnay

Discourage overuse of mem::forget

Some uses of `mem::forget` have been replaced by better methods of `Box`, so I've removed obsoleted use-cases from these docs.

I've removed emphasis on leaking, because it's not obvious `mem::forget` does not guarantee leaking of memory: memory of stack-allocated objects and values partially moved out of `Box` will still be freed. That's a potential error when used to pass objects to FFI, so it's better to direct users to `Box::into_raw` instead.

5 years agoRollup merge of #53311 - RalfJung:windows-mutex, r=retep998
kennytm [Fri, 24 Aug 2018 08:44:30 +0000 (16:44 +0800)]
Rollup merge of #53311 - RalfJung:windows-mutex, r=retep998

Window Mutex: Document that we properly initialize the SRWLock

See https://github.com/rust-lang/rust/issues/35836

5 years agoStabilize 'attr_literals' feature.
Sergio Benitez [Fri, 3 Aug 2018 22:05:05 +0000 (15:05 -0700)]
Stabilize 'attr_literals' feature.

5 years agoTurn the error for module-relative access to macro-expanded `macro_export` macros...
Vadim Petrochenkov [Thu, 23 Aug 2018 23:51:41 +0000 (02:51 +0300)]
Turn the error for module-relative access to macro-expanded `macro_export` macros into a deprecation lint

5 years agoAdd a test for reset expansion info
Vadim Petrochenkov [Thu, 23 Aug 2018 23:26:50 +0000 (02:26 +0300)]
Add a test for reset expansion info

5 years agoRevert "hygiene: Make sure expansion info is set at most once for a given `Mark`"
Vadim Petrochenkov [Thu, 23 Aug 2018 23:21:52 +0000 (02:21 +0300)]
Revert "hygiene: Make sure expansion info is set at most once for a given `Mark`"

This reverts commit b15785b67133b5017f141d1fda1dd3dcf331b4b4.

5 years agoAuto merge of #53638 - flip1995:clippy, r=nrc
bors [Thu, 23 Aug 2018 22:52:29 +0000 (22:52 +0000)]
Auto merge of #53638 - flip1995:clippy, r=nrc

Update clippy

r? @oli-obk @Manishearth

5 years agoUpdate clippy again
flip1995 [Thu, 23 Aug 2018 21:31:55 +0000 (23:31 +0200)]
Update clippy again

5 years agoUse SmallVec for SmallCStr
Andre Bogus [Thu, 23 Aug 2018 18:22:22 +0000 (20:22 +0200)]
Use SmallVec for SmallCStr

5 years agoAuto merge of #53588 - tristanburgess:52985_diagnostics_no_concrete_type_behind_exist...
bors [Thu, 23 Aug 2018 20:34:12 +0000 (20:34 +0000)]
Auto merge of #53588 - tristanburgess:52985_diagnostics_no_concrete_type_behind_existential_type, r=oli-obk

52985 diagnostics no concrete type behind existential type

@oli-obk FYI. See below for new cycle error generated.

```rust
error[E0391]: cycle detected when processing `Foo`
 --> /dev/staging/existential_type_no_concrete_type_nouse_potential.rs:3:1
  |
3 | existential type Foo: Copy;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
note: ...which requires processing `bar`...
 --> /dev/staging/existential_type_no_concrete_type_nouse_potential.rs:6:23
  |
6 |   fn bar(x: Foo) -> Foo {
  |  _______________________^
7 | |     x
8 | | }
  | |_^
  = note: ...which again requires processing `Foo`, completing the cycle

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.
```

5 years agoupdate the unstable book
Jorge Aparicio [Thu, 23 Aug 2018 19:44:45 +0000 (21:44 +0200)]
update the unstable book

5 years agofix new ui test
Jorge Aparicio [Thu, 23 Aug 2018 19:43:55 +0000 (21:43 +0200)]
fix new ui test

5 years agofix tidy
Jorge Aparicio [Thu, 23 Aug 2018 11:52:43 +0000 (13:52 +0200)]
fix tidy

5 years agoadd #[panic_handler]; deprecate #[panic_implementation]
Jorge Aparicio [Wed, 22 Aug 2018 22:40:32 +0000 (00:40 +0200)]
add #[panic_handler]; deprecate #[panic_implementation]

5 years agoAdd missing fmt examples
Guillaume Gomez [Wed, 22 Aug 2018 21:43:30 +0000 (23:43 +0200)]
Add missing fmt examples

5 years agofix testcase
dylan_DPC [Thu, 23 Aug 2018 17:51:54 +0000 (23:21 +0530)]
fix testcase

5 years agoAuto merge of #53571 - MaloJaffre:vecdeque-emergency, r=RalfJung
bors [Thu, 23 Aug 2018 17:13:44 +0000 (17:13 +0000)]
Auto merge of #53571 - MaloJaffre:vecdeque-emergency, r=RalfJung

Fix unsoundness for VecDeque

 See individual commit for more details.

r? @RalfJung.

Fixes https://github.com/rust-lang/rust/issues/53566, fixes https://github.com/rust-lang/rust/issues/53529

5 years agoFixed multi-line function signatures
Bernardo Meurer [Thu, 23 Aug 2018 16:34:21 +0000 (09:34 -0700)]
Fixed multi-line function signatures

5 years agoSmall style fixes
Bernardo Meurer [Thu, 23 Aug 2018 16:26:37 +0000 (09:26 -0700)]
Small style fixes

5 years agoMore tidy fixes to CTFE
Bernardo Meurer [Thu, 23 Aug 2018 16:21:40 +0000 (09:21 -0700)]
More tidy fixes to CTFE

5 years agoFix stylistic mistakes
Bernardo Meurer [Thu, 23 Aug 2018 15:45:59 +0000 (08:45 -0700)]
Fix stylistic mistakes

5 years agoFixup long code lines
Bernardo Meurer [Wed, 22 Aug 2018 19:59:14 +0000 (16:59 -0300)]
Fixup long code lines

5 years agoReflow and fixup comments
Bernardo Meurer [Wed, 22 Aug 2018 19:58:39 +0000 (16:58 -0300)]
Reflow and fixup comments

5 years agoFixed long strings
Bernardo Meurer [Wed, 22 Aug 2018 19:54:05 +0000 (16:54 -0300)]
Fixed long strings

5 years agoAdd license header to CTFE/MIRI
Bernardo Meurer [Wed, 22 Aug 2018 19:52:01 +0000 (16:52 -0300)]
Add license header to CTFE/MIRI

5 years agoRemoved librustc/mir/interpret and librustc_mir/interpreter from tidy skip list
Bernardo Meurer [Wed, 22 Aug 2018 16:15:30 +0000 (09:15 -0700)]
Removed librustc/mir/interpret and librustc_mir/interpreter from tidy skip list

5 years agoAuto merge of #53384 - gootorov:use-servo-smallvec, r=michaelwoerister
bors [Thu, 23 Aug 2018 14:40:22 +0000 (14:40 +0000)]
Auto merge of #53384 - gootorov:use-servo-smallvec, r=michaelwoerister

Use optimized SmallVec implementation

This PR replaces current SmallVec implementation with the one from the Servo project.

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

r? @Mark-Simulacrum

5 years agoDiscourage overuse of mem::forget
Kornel [Sun, 19 Aug 2018 18:46:05 +0000 (19:46 +0100)]
Discourage overuse of mem::forget

5 years agoUpdate clippy
flip1995 [Thu, 23 Aug 2018 14:00:04 +0000 (16:00 +0200)]
Update clippy

5 years agoPrefer `.nth(n)` over `.skip(n).next()`.
Corey Farwell [Thu, 23 Aug 2018 13:35:49 +0000 (09:35 -0400)]
Prefer `.nth(n)` over `.skip(n).next()`.

Found by clippy.

5 years agoLight restructuring.
Kyle Simpson [Thu, 23 Aug 2018 09:52:08 +0000 (10:52 +0100)]
Light restructuring.

5 years agoAuto merge of #52602 - scottmcm:tryblock-expr, r=nikomatsakis
bors [Thu, 23 Aug 2018 11:46:24 +0000 (11:46 +0000)]
Auto merge of #52602 - scottmcm:tryblock-expr, r=nikomatsakis

Implement try block expressions

I noticed that `try` wasn't a keyword yet in Rust 2018, so...

~~Fix​es https://github.com/rust-lang/rust/issues/52604~~ That was fixed by PR https://github.com/rust-lang/rust/pull/53135
cc https://github.com/rust-lang/rust/issues/31436 https://github.com/rust-lang/rust/issues/50412

5 years agoAuto merge of #53459 - petrochenkov:stabmore, r=nrc
bors [Thu, 23 Aug 2018 08:38:22 +0000 (08:38 +0000)]
Auto merge of #53459 - petrochenkov:stabmore, r=nrc

Stabilize a few secondary macro features

- `tool_attributes` - closes https://github.com/rust-lang/rust/issues/44690
- `proc_macro_path_invoc` - this feature was created due to issues with tool attributes (https://github.com/rust-lang/rust/issues/51277), those issues are now fixed (https://github.com/rust-lang/rust/pull/52841)
- partially `proc_macro_gen` - this feature was created due to issue https://github.com/rust-lang/rust/issues/50504, the issue is now fixed (https://github.com/rust-lang/rust/pull/51952), so proc macros can generate modules. They still can't generate `macro_rules` items though due to unclear hygiene interactions.

5 years agouse String::new() instead of String::from(""), "".to_string(), "".to_owned() or ...
Matthias Krüger [Thu, 23 Aug 2018 08:14:52 +0000 (10:14 +0200)]
use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()

5 years agoUse optimized SmallVec implementation
Igor Gutorov [Mon, 13 Aug 2018 19:15:16 +0000 (22:15 +0300)]
Use optimized SmallVec implementation

5 years agoAuto merge of #53235 - varkor:gat_impl_where, r=estebank
bors [Thu, 23 Aug 2018 06:34:11 +0000 (06:34 +0000)]
Auto merge of #53235 - varkor:gat_impl_where, r=estebank

Feature gate where clauses on associated type impls

Fixes #52913. This doesn't address the core problem, which is tracked by https://github.com/rust-lang/rust/issues/47206. However, it fixes the stable-to-stable regression: you now have to enable `#![feature(generic_associated_types)]` to trigger the weird behaviour.

5 years agoAuto merge of #53520 - nnethercote:merge-IdxSet-IdxSetBuf, r=nikomatsakis
bors [Thu, 23 Aug 2018 02:54:24 +0000 (02:54 +0000)]
Auto merge of #53520 - nnethercote:merge-IdxSet-IdxSetBuf, r=nikomatsakis

Merge `IdxSet` and `IdxSetBuf`

Because it simplifies things.

@r? nikomatsakis

5 years ago52985: formatting PR files
Tristan Burgess [Wed, 22 Aug 2018 04:24:03 +0000 (00:24 -0400)]
52985: formatting PR files

5 years ago52985: better cycle error for existential types
Tristan Burgess [Wed, 22 Aug 2018 04:02:07 +0000 (00:02 -0400)]
52985: better cycle error for existential types
  - Original cycle error diagnostics PR'd against this issue caught
panic-causing error while resolving std::mem::transmute calls
  - Now, catch invalid use case of not providing a concrete sized type
behind existential type in definining use case.
  - Update relevant test to reflect this new error

52985: revert normalize query changes
      - PR 53588 invalidates 53316, causing a correct cycle error to occur
    with a good span.
      - Don't need to revert the whole merge as the test files are
    still fine, just need to revert the normalize query changes.
      - It should now be correct that infinite recursion detected during
    normalize query type folding is a bug, should have been caught earlier
    (when resolving the existential type's defining use cases).

52985: code review impl
  - Only cause cycle error if anonymous type resolves to anonymous type
that has the same def id (is the same type) as the original (parent)
type.
  - Add test case to cover this case for existential types.

52985: remove Ty prefix from TyAnon
  - To align with changes per commit 6f637da50c56a22f745fd056691da8c86824cd9b

5 years agoLament the invincibility of the Turbofish
varkor [Tue, 21 Aug 2018 13:44:36 +0000 (14:44 +0100)]
Lament the invincibility of the Turbofish