summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-09-23[stable] 1.38.0 releaseMark Rousskov-1/+1
2019-09-21ci: split aws credentials in two separate users with scoped permsPietro Albini-7/+10
This commit changes our CI to use two separate IAM users to authenticate with AWS: * ci--rust-lang--rust--sccache: has access to the rust-lang-ci-sccache2 S3 bucket and its credentials are available during the whole build. * ci--rust-lang--rust--upload: has access to the rust-lang-ci2 S3 bucket and its credentials are available just during the upload step. The new tokens are available in the `prod-credentials` library.
2019-09-21Regression tests for fn ptr and `#[structural_match]` as discussed in #63479.Felix S. Klock II-0/+171
2019-09-21Make fn ptr always structural match, regardless of whether formal types are.Felix S. Klock II-1/+7
Fix #63479.
2019-09-13Update LLVM submoduleNikita Popov-0/+0
2019-09-13Include compiler-rt in the source tarballMatthew Maurer-0/+1
In #60981 we switched to using src/llvm-project/compiler-rt inside compiler-builtins rather than a separate copy of it. In order to have the "c" feature turn on in builds from the source tarball, we need to include that path in its creation. fixes #64239
2019-09-13Update xLTO compatibility table in rustc book.Michael Woerister-0/+1
2019-09-13Turn `soft_unstable` into a future-compatibility lintVadim Petrochenkov-1/+9
2019-09-13Support "soft" feature-gating using a lintVadim Petrochenkov-27/+58
Use it for feature-gating `#[bench]`
2019-09-13add regression testEsteban Küber-0/+32
2019-09-13Account for doc comments coming from proc macros without spansEsteban Küber-13/+14
2019-09-13pprust: Do not print spaces before some tokensVadim Petrochenkov-15/+24
2019-09-13Force #[unwind(aborts)] in test/codegen/c-variadic.rsJosh Stone-0/+6
2019-09-13Revert "Allow a dirty MirBuilt for make_extern and make_method_extern"Josh Stone-2/+2
This reverts commit b4a6f597934f16f89e27058a32a514c9572f148f.
2019-09-13Permit unwinding through FFI by defaultMark Rousskov-1/+3
See #58794 for context.
2019-09-03bump clippyPietro Albini-12/+21
2019-09-02Rollup merge of #64046 - Mark-Simulacrum:beta-next, r=pietroalbiniPietro Albini-3/+3
2019-09-02expand: Do not do questionable span adjustment before eagerly expanding an ↵Vadim Petrochenkov-15/+3
expression Maybe it made sense when it was introduced, but now it's doing something incorrect.
2019-09-02expand: Keep the correct current expansion ID for eager expansionsVadim Petrochenkov-8/+15
Solve the problem of `ParentScope` entries for eager expansions not exising in the resolver map by creating them on demand.
2019-09-02Add a regression test for issue #63460Vadim Petrochenkov-0/+22
2019-09-02Add a test for an opaque macro eagerly expanding its argumentsVadim Petrochenkov-0/+26
2019-09-02ci: move libc mirrors to the rust-lang-ci-mirrors bucketPietro Albini-1/+1
2019-09-02debuginfo: always include disambiguator in type namesPhilip Craig-20/+18
2019-09-02debuginfo: give unique names to closure and generator typesPhilip Craig-5/+72
Closure types have been moved to the namespace where they are defined, and both closure and generator type names now include the disambiguator. This fixes an exception when lldb prints nested closures. Fixes #57822
2019-09-02Update rust-installer to limit memory useJosh Stone-0/+0
2019-08-31Use released stable for betaMark Rousskov-3/+3
2019-08-27[BETA] Update cargoEric Huss-0/+0
2019-08-21ci: move mirrors to their standalone bucketPietro Albini-23/+25
Currently mirrors are stored in the rust-lang-ci2 S3 bucket along with CI toolchains. This is problematic for multiple reasons: - CI IAM credentials are allowed to both edit and delete those files. A malicious user gaining access to those credentials would be able to change our mirrored dependencies, possibly backdooring the compiler. - Contents of the rust-lang-ci2 bucket are disposable except for the mirrors' content. When we implement backups for S3 buckets we'd have to replicate just that part of the bucket, complicating the backup logic and increasing the chance of mistakes. A standalone bucket will be way easier to backup. This commit switches our CI to use the new rust-lang-ci-mirrors bucket.
2019-08-21review commentsEsteban Küber-12/+9
2019-08-21review comment: remove unecessary error in testEsteban Küber-12/+4
2019-08-21Do not ICE when synthesizing spans falling inside unicode charsEsteban Küber-0/+28
2019-08-13prepare beta for rust 1.38.0Pietro Albini-5/+5
2019-08-12Auto merge of #63483 - RalfJung:invalid-value, r=Centrilbors-74/+224
Improve invalid_value lint message The lint now explains which type is involved and why it cannot be initialized this way. It also points at the innermost struct/enum field that has an offending type, if any. See https://github.com/erlepereira/x11-rs/issues/99#issuecomment-520311911 for how this helps in some real-world code hitting this lint.
2019-08-12more informative error message from invalid_value lintRalf Jung-74/+224
2019-08-12Rollup merge of #63480 - OptimisticPeach:patch-1, r=CentrilMazdak Farrokhzad-1/+1
Fixes #63477 Adds a closing parenthesis.
2019-08-12Rollup merge of #63474 - adamAndMath:master, r=CentrilMazdak Farrokhzad-0/+74
Add tests for issue #53598 and #57700 Closes #53598 and #57700
2019-08-12Rollup merge of #63473 - adrian-budau:master, r=CentrilMazdak Farrokhzad-0/+38
Regression test for #56870 Closes #56870.
2019-08-12Rollup merge of #63461 - tommilligan:doc-var-panic, r=joshtriplettMazdak Farrokhzad-0/+12
docs: add stdlib env::var(_os) panic Closes #63456
2019-08-12Rollup merge of #63449 - petrochenkov:builtinagain, r=eddybMazdak Farrokhzad-37/+20
resolve: Remove remaining special cases from built-in macros Edition and definition sites of the macros are now also taken from the `#[rustc_builtin_macro]` definitions in `libcore`. --- The edition switch may be a breaking change for `Rustc{Encodable,Decodable}` derives if they are used in combination with the unstable crate `serialize` from sysroot like this ```rust extern crate serialize; use serialize as rustc_serialize; #[derive(RustcEncodable)] struct S; ``` (see the updated `ui-fulldeps` tests).
2019-08-12Rollup merge of #63431 - andjo403:revert_mir_simplification, r=matthewjasperMazdak Farrokhzad-23/+30
Revert "Simplify MIR generation for logical ops" This reverts commit e38e954a0d249f88d0a55504f70d6055e865a931. llvm were not able to optimize the code that well with the simplified mir. Closes: #62993
2019-08-12Rollup merge of #63406 - ↵Mazdak Farrokhzad-58/+168
jakubadamw:resolve-inconsistent-names-suggest-qualified-path, r=petrochenkov Suggest using a qualified path in patterns with inconsistent bindings A program like the following one: ```rust enum E { A, B, C } fn f(x: E) -> bool { match x { A | B => false, C => true } } ``` is rejected by the compiler due to `E` variant paths not being in scope. In this case `A`, `B` are resolved as pattern bindings and consequently the pattern is considered invalid as the inner or-patterns do not bind to the same set of identifiers. This is expected but the compiler errors that follow could be surprising or confusing to some users. This commit adds a help note explaining that if the user desired to match against variants or consts, they should use a qualified path. The help note is restricted to cases where the identifier starts with an upper-case sequence so as to reduce the false negatives. Since this happens during resolution, there's no clean way to check what it is the patterns match against. The syntactic criterium, however, is in line with the convention that's assumed by the `non-camel-case-types` lint. Fixes #50831.
2019-08-12Rollup merge of #63297 - RalfJung:ptr_offset, r=dtolnayMazdak Farrokhzad-34/+128
Improve pointer offset method docs Cc @rkruppe @gnzlbg
2019-08-12Rollup merge of #62108 - Zoxc:sharded-queries, r=oli-obkMazdak Farrokhzad-26/+28
Use sharded maps for queries Based on https://github.com/rust-lang/rust/pull/61779. r? @Gankro
2019-08-12Fixes #63477OptimisticPeach-1/+1
Adds a closing parenthesis.
2019-08-12Auto merge of #63469 - Centril:refactor-parser, r=petrochenkovbors-6192/+6325
libsyntax: Refactor `parser.rs` into reasonably sized logical units Here we split `parser.rs` (~7.9 KLOC) into more reasonably sized files (all < 1.8 KLOC): - `./src/libsyntax/parse/` - `parser.rs` - `parser/` - `pat.rs` - `expr.rs` - `stmt.rs` - `ty.rs` - `path.rs` - `generics.rs` - `item.rs` - `module.rs` Closes https://github.com/rust-lang/rust/issues/60015. r? @petrochenkov
2019-08-11Auto merge of #63472 - Xanewok:update-rls, r=Mark-Simulacrumbors-0/+0
Update RLS This update includes the ability to warn on deprecated config keys. It's important to be able to warn the user whenever they're using an old configuration rather than giving them a cryptic "unknown configuration error" cc https://github.com/rust-lang/rls-vscode/issues/639 Since we removed a config value in the current nightly, it'd be very good if this change can make also make it before cutting the next release.
2019-08-11Move tests into type-alias-impl-traitAdam-0/+0
2019-08-11Add test for issue 53598 and 57700Adam-0/+74
2019-08-11Regression test for #56870Adrian Budau-0/+38
2019-08-11Rollup merge of #63464 - Mark-Simulacrum:deref-instance, r=eddybMark Rousskov-7/+7
Copy ty::Instance instead of passing by reference ty::Instance is small and Copy, we should not be adding additional indirection. Fixes #63409. r? @eddyb