about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2021-02-21Rollup merge of #81833 - the8472:parallel-bootstrap-rustfmt, r=Mark-SimulacrumYuki Okushi-18/+63
parallelize x.py test tidy Running tidy on individual commits when rewriting git history was somewhat of an annoyance, so I have parallelized it a bit. running `time ./x.py test tidy` with warm IO caches: old: ``` real 0m11.123s user 0m14.495s sys 0m5.227s ``` new: ``` real 0m1.834s user 0m13.545s sys 0m3.094s ``` There's further room for improvement (<0.9s should be feasible) but that would require bigger changes.
2021-02-21Auto merge of #79100 - a1phyr:better_assert_eq, r=m-ou-sebors-816/+230
Improve assert_eq! and assert_ne! This PR improves `assert_eq!` and `assert_ne!` by moving the panicking code in an external function. It does not change the fast path, but the move of the formatting in the cold path (the panic) may have a positive effect on in instruction cache use and with inlining. Moreover, the use of trait objects instead of generic may improve compile times for `assert_eq!`-heavy code. Godbolt link: ~~https://rust.godbolt.org/z/TYa9MT~~ \ Updated: https://rust.godbolt.org/z/bzE84x
2021-02-20rustdoc: Remove unnecessary `Cell` around `param_env`Camelid-9/+6
2021-02-20Use has for non-regexesMichael Howell-6/+6
2021-02-20Fix formatting for description rustdoc UI testsMichael Howell-9/+14
2021-02-20Add rustdoc UI tests for new description behaviourMichael Howell-0/+31
2021-02-20Revert changes to all.htmlMichael Howell-6/+1
This code wasn't actually working, and trying to SEO optimize that page is pointless anyway.
2021-02-21Auto merge of #82253 - RalfJung:miri, r=RalfJungbors-10/+7
update Miri Fixes Miri breakage (no issue was created as the toolstate tracking is currently broken: https://github.com/rust-lang/rust/issues/82254)
2021-02-20Add a chapter on the test harness.Eric Huss-1/+286
2021-02-20Cut off plain text descriptions after headersMichael Howell-0/+2
Before: The Rust Standard LibraryThe Rust Standard Library is the foundation of portable Rust software, a set of minimal and battle-tested shared abstractions for the broader Rust ecosystem. It offers core types, like `Vec<T>` and `Option<T>`, library-defined operations on language primitives, standard macros, I/O and multithreading, among many other things. After: The Rust Standard Library
2021-02-20Use the first paragraph, instead of cookie-cutter text, for rustdoc descriptionsMichael Howell-2/+10
Fixes #82283
2021-02-20Fix some Python2->3 error in publish_toolstate.py by type-checking itkennytm-16/+34
2021-02-20Use the new name for `split-debuginfo`Joshua Nelson-11/+3
2021-02-20Don't apply semicolon in expressions from macros yetMark Rousskov-2/+8
std_detect is still using this and as it's in a submodule updating it will be a pain. We can catch this either after a stdarch submodule bump or just on the next cycle.
2021-02-20Update the bootstrap compilerJoshua Nelson-51/+45
Note this does not change `core::derive` since it was merged after the beta bump.
2021-02-20remove redundant box wrapperThe8472-4/+4
2021-02-20limit rustfmt parallelism by taking -j into accountThe8472-3/+3
2021-02-20parallelize x.py test tidyThe8472-19/+64
old: ``` real 0m11.123s user 0m14.495s sys 0m5.227s ``` new: ``` real 0m2.767s user 0m13.014s sys 0m1.691s ```
2021-02-20iOS simulator: pick the target based on the environment variableJan-Erik Rediger-1/+1
LLVM picks the right things to put into the compiled object file based on the target deployment version. We need to communicate it through the target triple. Only with that LLVM will use the right commands in the file to make it look and behave like code compiled for the arm64 iOS simulator target.
2021-02-20Auto merge of #82341 - GuillaumeGomez:rollup-t7y7tyg, r=GuillaumeGomezbors-9/+78
Rollup of 7 pull requests Successful merges: - #80595 (`impl PartialEq<Punct> for char`; symmetry for #78636) - #81991 (Fix panic in 'remove semicolon' when types are not local) - #82176 (fix MIR fn-ptr pretty-printing) - #82244 (Keep consistency in example for Stdin StdinLock) - #82260 (rustc: Show ``@path`` usage in stable) - #82316 (Fix minor mistake in LTO docs.) - #82332 (Don't generate src link on dummy spans) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-02-20Fix suggestion span and move suggestions into new subwindow.Reese Williams-18/+36
2021-02-20Rollup merge of #82332 - GuillaumeGomez:no-src-link-on-dummy-spans, r=jyn514Guillaume Gomez-0/+19
Don't generate src link on dummy spans Just realized that the "auto trait impls" had `[src]` links were leading to the crate root because they were dummy spans. This PR fixes this issue. cc `@jyn514` r? `@camelid`
2021-02-20Rollup merge of #82316 - ehuss:lto-doc-fix, r=GuillaumeGomezGuillaume Gomez-3/+3
Fix minor mistake in LTO docs. `-C lto=true` isn't a valid option.
2021-02-20Rollup merge of #81991 - osa1:issue81839, r=estebankGuillaume Gomez-6/+56
Fix panic in 'remove semicolon' when types are not local It's not possible to check if removing a semicolon fixes the type error when checking match arms and one or both of the last arm's and the current arm's return types are imported "opaque" types. In these cases we don't generate a "consider removing semicolon" suggestions. Fixes #81839 --- I'm not sure how to add a test for this. I think the test would need at least two crates. Do we have any existing tests that do this so that I can take a look?
2021-02-20Auto merge of #70951 - cjgillot:anarchy, r=oli-obkbors-3/+1
Move the query engine out of rustc_middle The handling of queries is moved to a trait `QueryEngine`. It replaces `query::Queries` in the `TyCtxt`, allowing to move the query engine out of librustc_middle. There are 2 modes to access the query engine: through `TyCtxt` and dynamic dispatch, or through a `QueryCtxt`. The `QueryCtxt` is required for everything touching the `OnDiskCache`. For now, I put it in librustc_incremental, which is very small. This may not be the best place. A significant part of the codegen time for librustc_middle is moved to the recipient crate. This PR may require a perf run. cc #65031 r? `@Zoxc`
2021-02-20Add test for no src links on dummy spansGuillaume Gomez-0/+12
2021-02-20Don't render [src] link on dummy spansGuillaume Gomez-0/+7
2021-02-20update MiriRalf Jung-10/+7
2021-02-20Make "missing field" error message more naturalr00ster91-12/+12
2021-02-20Update LLVM to pull in fixes to llvm-dwpSimonas Kazlauskas-0/+3
Includes https://github.com/rust-lang/llvm-project/pull/90 in particular.
2021-02-20Test CU directory is the work_dirSimonas Kazlauskas-0/+9
Make sure that we don't regress setting of the CU directory to the working directory.
2021-02-20Take into account target default syntaxasquared31415-12/+35
2021-02-19Fix minor mistake in LTO docs.Eric Huss-3/+3
`-C lto=true` isn't a valid option.
2021-02-19Re-minify normalize.css.Jacob Hoffman-Andrews-349/+2
This bypasses tidy's complaints about tab indent. Also, this lets us remove comments while keeping the MIT license comment.
2021-02-19Update normalize.css to 8.0.1Jacob Hoffman-Andrews-232/+158
From https://github.com/necolas/normalize.css/releases/tag/8.0.1.
2021-02-19Replace normalize.css 3.0.0 with unminified version.Jacob Hoffman-Andrews-2/+423
This is in preparation to upgrade to 8.0.1, so the next commit can contain more meaningful diffs.
2021-02-20Implement using @set valuesNixon Enraght-Moony-6/+19
2021-02-20Implement @setNixon Enraght-Moony-0/+26
2021-02-19Lower condition of `if` expression before it's "then" blockEsteban Küber-0/+27
Fix #82290, fix #82250.
2021-02-20Add @is command to jsondocckNixon Enraght-Moony-11/+27
2021-02-19Add tests for !Sized trait displayGuillaume Gomez-0/+17
2021-02-19Show negative implementation of Sized traitGuillaume Gomez-90/+125
2021-02-19added aarch64_apple_ios_sim as a rustc targetRicky (deg4uss3r)-0/+1
2021-02-19Support `pub` on `macro_rules`Vadim Petrochenkov-24/+170
2021-02-19Move try_print_query_stack to rustc_interface.Camille GILLOT-3/+1
2021-02-19Move try_print_query_stack to rustc_interface.Camille GILLOT-3/+1
2021-02-19Auto merge of #82020 - jyn514:mut-passes, r=camelid,GuillaumeGomezbors-326/+284
Make `Clean` take &mut DocContext - Take `FnMut` in `rustc_trait_selection::find_auto_trait_generics` - Take `&mut DocContext` in most of `clean` - Collect the iterator in auto_trait_impls instead of iterating lazily; the lifetimes were really bad. This combined with https://github.com/rust-lang/rust/pull/82018 should hopefully help with https://github.com/rust-lang/rust/pull/82014 by allowing `cx.cache.exported_traits` to be modified in `register_res`. Previously it had to use interior mutability, which required either adding a RefCell to `cache.exported_traits` on *top* of the existing `RefCell<Cache>` or mixing reads and writes between `cx.exported_traits` and `cx.cache.exported_traits`. I don't currently have that working but I expect it to be reasonably easy to add after this.
2021-02-19[intra-doc links] Don't check feature gates of items re-exported across cratesJoshua Nelson-0/+11
It should be never break another crate to re-export a public item. Note that this doesn't check the feature gate at *all* for other crates: - Feature-gates aren't currently serialized, so the only way to check the gate is with ad-hoc attribute checking. - Checking the feature gate twice (once when documenting the original crate and one when documenting the current crate) seems not great. This should still catch using the feature most of the time though, since people tend to document their own crates.
2021-02-19Add deref definition location1000teslas-0/+40
Update conflict_errors.rs Add deref definition location
2021-02-19remove checkboxes from s390x-unknown-linux-musl tripletAriadne Conill-1/+1