about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-07-12assign tracking issueRalf Jung-9/+9
2020-07-05add (unchecked) indexing methods to raw pointers and NonNullRalf Jung-15/+103
2020-07-05make unchecked slice indexing helper methods use raw pointersRalf Jung-129/+134
2020-07-05call the mut version as_mut_ptr and also add an as_ptr-like method to ↵Ralf Jung-2/+23
NonNull slices
2020-07-05add as_ptr method to raw slicesRalf Jung-0/+42
2020-07-04Auto merge of #72978 - matklad:ship-rust-analyzer, r=Mark-Simulacrumbors-3/+177
ship rust analyzer This successfully builds rust-analyzer as a part of rust repo. I haven't yet added required changes to dist.rs -- seems like I just have to copy-paste quite a bit of code I don't really understand :-)
2020-07-04Auto merge of #74019 - Manishearth:rollup-2st3jsk, r=Manishearthbors-121/+1857
Rollup of 12 pull requests Successful merges: - #73140 (Fallback to xml.etree.ElementTree) - #73670 (Add `format_args_capture` feature) - #73693 (Use exhaustive match in const_prop.rs) - #73845 (Use &raw in A|Rc::as_ptr) - #73861 (Create E0768) - #73881 (Standardize bibliographic citations in rustc API docs) - #73925 (Improve comments from #72617, as suggested by RalfJung) - #73949 ([mir-opt] Fix mis-optimization and other issues with the SimplifyArmIdentity pass) - #73984 (Edit docs for rustc_data_structures::graph::scc) - #73985 (Fix "getting started" link) - #73997 (fix typo) - #73999 (Bump mingw-check CI image from Ubuntu 16.04 to 18.04.) Failed merges: - #74000 (add `lazy_normalization_consts` feature gate) r? @ghost
2020-07-03Rollup merge of #73999 - eddyb:svv-prereq, r=Mark-SimulacrumManish Goregaokar-1/+1
Bump mingw-check CI image from Ubuntu 16.04 to 18.04. I chose 18.04 because we use it for other builders, and it's enough to get a version of MinGW that can build `libssh2-sys`. This is a prereq for #73902, where `libssh2-sys` shows up as an indirect dependency of `x.py check src/tools/semverver` (through `src/tools/cargo`, which we don't currently `x.py check` because it's not in-tree). See also https://github.com/rust-lang/rust/pull/73902#issuecomment-652414502. r? @Mark-Simulacrum cc @mati865
2020-07-03Rollup merge of #73997 - rust-lang:lcnr-patch-1, r=jonas-schievinkManish Goregaokar-1/+1
fix typo r? @Dylan-DPC
2020-07-03Rollup merge of #73984 - pierwill:pierwill-tarjan, r=jonas-schievinkManish Goregaokar-4/+6
Edit docs for rustc_data_structures::graph::scc - Add newline to provide concise module summary - Add wikipedia link - Italicize O notation
2020-07-03Rollup merge of #73949 - wesleywiser:simplify_try_fixes, r=oli-obkManish Goregaokar-35/+1411
[mir-opt] Fix mis-optimization and other issues with the SimplifyArmIdentity pass This does not yet attempt re-enabling the pass, but it does resolve a number of issues with the pass. r? @oli-obk I believe this closes #73223.
2020-07-03Rollup merge of #73925 - eduardosm:improve-pr72617-comments, r=RalfJungManish Goregaokar-4/+10
Improve comments from #72617, as suggested by RalfJung r? @RalfJung
2020-07-03Rollup merge of #73881 - pierwill:pierwill-citations, r=jonas-schievinkManish Goregaokar-16/+14
Standardize bibliographic citations in rustc API docs See #73877.
2020-07-03Rollup merge of #73861 - GuillaumeGomez:create-e0767, r=Dylan-DPCManish Goregaokar-9/+33
Create E0768 r? @Dylan-DPC
2020-07-03Rollup merge of #73845 - CAD97:weak-as-unsized-ptr, r=RalfJungManish Goregaokar-44/+59
Use &raw in A|Rc::as_ptr This PR uses `&raw` for offsetting `*mut [A]RcInner<T> -> *mut T`. Additionally, this updates the implementation of `Weak::as_ptr` to support unsized `T`, though it does not yet relax the bounds of `Weak::as_ptr`/`into_raw`/`from_raw` to accept unsized `T`.
2020-07-03Rollup merge of #73693 - wesleywiser:const_prop_exhaustive_match, r=oli-obkManish Goregaokar-1/+13
Use exhaustive match in const_prop.rs Addresses a comment left by @RalfJung on #73613 r? @RalfJung
2020-07-03Rollup merge of #73670 - davidhewitt:format-args-capture, r=varkorManish Goregaokar-5/+305
Add `format_args_capture` feature This is the initial implementation PR for [RFC 2795](https://github.com/rust-lang/rfcs/pull/2795). Note that, as dicussed in the tracking issue (#67984), the feature gate has been called `format_args_capture`. Next up I guess I need to add documentation for this feature. I've not written any docs before for rustc / std so I would appreciate suggestions on where I should add docs.
2020-07-03Rollup merge of #73140 - tmiasko:element-tree, r=GuillaumeGomezManish Goregaokar-1/+4
Fallback to xml.etree.ElementTree The xml.etree.cElementTree has been deprecated since Python 3.3 and removed in Python 3.9 https://bugs.python.org/issue36543.
2020-07-04Update UI testsGuillaume Gomez-8/+11
2020-07-04Create new E0768 error code for "no valid digits found for number" errorGuillaume Gomez-1/+22
2020-07-03Auto merge of #73650 - pietroalbini:ci-aarch64-gnu, r=Mark-Simulacrumbors-3250/+136
Add Docker image to run AArch64 Linux tests This PR adds a Docker image to run the AArch64 Linux test suite on a native AArch64 host platform, which will be used in the future to run the test suite in our CI. The image will also be useful for ARM folks to ensure internally that the bugfixes they submit work. This will be the first Docker image designed to run on a non-x86_64 host platform, and to prevent surprising behavior this PR moves all images requiring a x86_64 host in the `src/ci/docker/host-x86_64` directory. Paths and scripts are changed accordingly, and a helpful error message is added when someone tries to run an image on the wrong architecture: ``` Invalid image: aarch64-gnu Note: the image exists for the aarch64 host architecture Note: the current host architecture is x86_64 ``` The old emulated and disabled `aarch64-gnu` builder is also removed in this PR. This PR is best reviewed commit-by-commit. r? @Mark-Simulacrum
2020-07-03Edit docs for rustc_data_structures::graph::sccpierwill-4/+6
- Add newline to provide concise module summary - Add wikipedia link - Italicize O notation
2020-07-03Ignore test with panic on wasm targetsDavid Hewitt-0/+2
2020-07-03Bump mingw-check CI image from Ubuntu 16.04 to 18.04.Eduard-Mihai Burtescu-1/+1
2020-07-03fix typoBastian Kauschke-1/+1
2020-07-03Add rust-analyzer submoduleAleksey Kladov-3/+177
The current plan is that submodule tracks the `release` branch of rust-analyzer, which is updated once a week. rust-analyzer is a workspace (with a virtual manifest), the actual binary is provide by `crates/rust-analyzer` package. Note that we intentionally don't add rust-analyzer to `Kind::Test`, for two reasons. *First*, at the moment rust-analyzer's test suite does a couple of things which might not work in the context of rust repository. For example, it shells out directly to `rustup` and `rustfmt`. So, making this work requires non-trivial efforts. *Second*, it seems unlikely that running tests in rust-lang/rust repo would provide any additional guarantees. rust-analyzer builds with stable and does not depend on the specifics of the compiler, so changes to compiler can't break ra, unless they break stability guarantee. Additionally, rust-analyzer itself is gated on bors, so we are pretty confident that test suite passes.
2020-07-03ci: remove the emulated aarch64-gnu imagePietro Albini-3179/+0
2020-07-03ci: add native aarch64-gnu docker builderPietro Albini-2/+38
2020-07-03ci: include the architecture in the docker cache keyPietro Albini-0/+4
We're starting to include native aarch64 machines in our CI, but before this commit the architecture wasn't included in the cache key for our Docker images. This means there could be conflicts between images produced on different architectures, hurting our CI times. This commit fixes the problem by including the output of `uname -m` in the cache key.
2020-07-03ci: provide feedback when running an image on the wrong host archPietro Albini-0/+22
2020-07-03ci: move all x86_64 runners to the host-x86_64 directoryPietro Albini-70/+73
We need to add runners designed for an aarch64 host system, and it'd be nice to return an error message if someone tries to run an image designed for an host architecture in another one. To start the work on this, this commit moves all the existing builders in the host-x86_64 directory, and changes the run.sh script to look up the image in the correct directory based on the host architecture.
2020-07-03Auto merge of #73897 - ehuss:update-cargo, r=ehussbors-0/+0
Update cargo, rls ## cargo 14 commits in c26576f9adddd254b3dd63aecba176434290a9f6..fede83ccf973457de319ba6fa0e36ead454d2e20 2020-06-23 16:21:21 +0000 to 2020-07-02 21:51:34 +0000 - Fix overflow error on 32-bit. (rust-lang/cargo#8446) - Exclude the target directory from backups using CACHEDIR.TAG (rust-lang/cargo#8378) - CONTRIBUTING.md: Link to Zulip rather than Discord (rust-lang/cargo#8436) - Update built-in help for features (rust-lang/cargo#8433) - Update core-foundation requirement from 0.7.0 to 0.9.0 (rust-lang/cargo#8432) - Parse `# env-dep` directives in dep-info files (rust-lang/cargo#8421) - Move string interning to util (rust-lang/cargo#8419) - Expose built cdylib artifacts in the Compilation structure (rust-lang/cargo#8418) - Remove unused serde_derive dependency from the crates.io crate (rust-lang/cargo#8416) - Remove unused remove_dir_all dependency (rust-lang/cargo#8412) - Improve git error messages a bit (rust-lang/cargo#8409) - Improve the description of Config.home_path (rust-lang/cargo#8408) - Improve support for non-`master` main branches (rust-lang/cargo#8364) - Document that OUT_DIR in JSON messages is an absolute path (rust-lang/cargo#8403) ## rls 2020-06-19 15:36:00 +0200 to 2020-06-30 23:34:52 +0200 - Update cargo (rust-lang-nursery/rls#1686)
2020-07-03Auto merge of #73882 - nnethercote:avoid-unwrap_or_else-in-allocate_in, ↵bors-3/+14
r=Amanieu Avoid `unwrap_or_else` in `RawVec::allocate_in`. This reduces the amount of LLVM IR generated by up to 1 or 2%. r? @Amanieu
2020-07-02Fix missing return in `optimization_applies()`Wesley Wiser-0/+1
2020-07-02Fix debuginfo so that it points to the correct localWesley Wiser-111/+126
2020-07-02[mir-opt] Prevent mis-optimization when SimplifyArmIdentity runsWesley Wiser-97/+192
If temporaries are used beyond just the temporary chain, then we can't optimize out the reads and writes.
2020-07-02Add test for simplify-try misoptimizationWesley Wiser-0/+1265
2020-07-02Standardize bibliographic citations in rustc API docspierwill-16/+14
2020-07-02Update cargoEric Huss-0/+0
2020-07-02Update rlsEric Huss-0/+0
2020-07-02Update cargoEric Huss-0/+0
2020-07-02Rollup merge of #73975 - pierwill:patch-3, r=jonas-schievinkManish Goregaokar-0/+3
Document rustc_ast::ast::Pat
2020-07-02Rollup merge of #73957 - RalfJung:btree-min-max, r=shepmasterManish Goregaokar-0/+1
disable BTree min_max test in Miri for now Until https://github.com/rust-lang/rust/issues/73915 is fixed, better skip this test in Miri so that we can test the others at least.
2020-07-02Rollup merge of #73952 - ehuss:docker-dev, r=Mark-SimulacrumManish Goregaokar-2/+31
Add option for local docker testing. This adds the option `--dev` to `src/ci/docker/run.sh` so that it will enter an interactive environment for local testing. I have often needed this for testing things, but I always needed to edit this script. I wanted the ability to interact in the environment, run different commands, inspect errors, etc.
2020-07-02Rollup merge of #73753 - eddyb:extraneous-lifetime, r=ManishearthManish Goregaokar-1267/+1143
Use 'tcx for references to AccessLevels wherever possible. Most of the changes are just fallout from removing a lifetime parameter from structs, and mostly in clippy. r? @Manishearth
2020-07-02Rollup merge of #73726 - ↵Manish Goregaokar-120/+427
davidtwco:issue-73541-labelled-break-through-closure-async, r=petrochenkov resolve: disallow labelled breaks/continues through closures/async blocks Fixes #73541. This PR modifies name resolution to prohibit labelled breaks/continues through closures or async blocks, fixing an ICE. In addition, it improves the diagnostics surrounding labelled breaks/continues through closures or async blocks by informing the user if the label exists in an parent scope and telling them that won't work. r? @petrochenkov (resolve) cc @estebank (diagnostic changes) @tmandry (issue is from `wg-async-foundations`)
2020-07-02Rollup merge of #73724 - CryZe:wasm-saturating-casts, r=alexcrichtonManish Goregaokar-507/+932
Use WASM's saturating casts if they are available WebAssembly supports saturating floating point to integer casts behind a target feature. The feature is already available on many browsers. Beginning with 1.45 Rust will start defining the behavior of floating point to integer casts to be saturating as well. For this Rust constructs additional checks on top of the `fptoui` / `fptosi` instructions it emits. Here we introduce the possibility for the codegen backend to construct saturating casts itself and only fall back to constructing the checks ourselves if that is not possible. Resolves part of #73591
2020-07-02Document rustc_ast::ast::Patpierwill-0/+3
2020-07-02Note Weak.ptr never dangles soonerCAD97-0/+2
2020-07-03Use 'tcx for references to AccessLevels wherever possible.Eduard-Mihai Burtescu-1267/+1143