about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2021-06-07ignore ui-fulldeps/session-derive-errors.rs on beta and stablePietro Albini-1/+22
The session-derive-errors test ensures the internal SessionDiagnostic derive macro outputs the right error messages when misused. The macro relies on the proc_macro2 crate though, which changes its span behavior depending on whether the channel is nightly or not. This caused test failures when bumping the channel from nightly to beta/stable. Since SessionDiagnostic is internal-only we don't care about its diagnostics quality outside of nightly, as the compiler itself is developed on nightly. Thus the easiest solution is to ignore that test on the beta and stable channels. This also implements `// only-{channel}` and `// ignore-{channel}` in compiletest to properly support the change.
2021-06-07:arrow_up: rust-analyzerLaurențiu Nicola-15/+19
2021-06-06Remove some last remants of {push,pop}_unsafe!Smitty-3/+1
These macros have already been removed, but there was still some code handling these macros. That code is now removed.
2021-06-06Auto merge of #84863 - ABouttefeux:libtest, r=m-ou-sebors-4/+7
Show test type during prints Test output can sometimes be confusing. For example doctest with the no_run argument are displayed the same way than test that are run. During #83857 I got the feedback that test output can be confusing. For the moment test output is ``` test $DIR/test-type.rs - f (line 12) ... ignored test $DIR/test-type.rs - f (line 15) ... ok test $DIR/test-type.rs - f (line 21) ... ok test $DIR/test-type.rs - f (line 6) ... ok ``` I propose to change output by indicating the test type as ``` test $DIR/test-type.rs - f (line 12) ... ignored test $DIR/test-type.rs - f (line 15) - compile ... ok test $DIR/test-type.rs - f (line 21) - compile fail ... ok test $DIR/test-type.rs - f (line 6) ... ok ``` by indicating the test type after the test name (and in the case of doctest after the function name and line) and before the "...". ------------ Note: this is a proof of concept, the implementation is probably not optimal as the properties added in `TestDesc` are only use in the display and does not represent actual change of behavior, maybe `TestType::DocTest` could have fields
2021-06-06Don't pass -Z unstable-options by default for UI testsJoshua Nelson-0/+6
- Pass it explicitly where appropriate - Update stderr files and warnings; it turns that unstable-options has far-reaching effects on diagnostics.
2021-06-06Auto merge of #79608 - alessandrod:bpf, r=nagisabors-0/+5
BPF target support This adds `bpfel-unknown-none` and `bpfeb-unknown-none`, two new no_std targets that generate little and big endian BPF. The approach taken is very similar to the cuda target, where `TargetOptions::obj_is_bitcode` is enabled and code generation is done by the linker. I added the targets to `dist-various-2`. There are [some tests](https://github.com/alessandrod/bpf-linker/tree/main/tests/assembly) in bpf-linker and I'm planning to add more. Those are currently not ran as part of rust CI.
2021-06-04Revert clippy's path to the copy intrinsics (part of reverting PR 81238).Felix S. Klock II-2/+2
2021-06-04rustdoc: Print a warning if the diff when comparing to old nightlies is emptyJoshua Nelson-9/+21
This avoids confusing situations where it's unclear whether there's a bug in the diff tool or not: ``` 26: @has check failed `XPATH PATTERN` did not match // @has - '//code/a[@href="{{channel}}/std/primitive.i32.html"]' 'i32' Encountered 6 errors ------------------------------------------ info: generating a diff against nightly rustdoc failures: [rustdoc] rustdoc/primitive-reexport.rs ```
2021-06-04Remove `doc(include)`Joshua Nelson-19/+3
2021-06-04Auto merge of #85984 - JohnTitor:rollup-rq0g9ph, r=JohnTitorbors-14/+13
Rollup of 8 pull requests Successful merges: - #85717 (Document `From` impls for cow.rs) - #85850 (Remove unused feature gates) - #85888 (Fix typo in internal documentation for `TrustedRandomAccess`) - #85889 (Restoring the `num_def_ids` function in the CStore API ) - #85899 (jsondocck small cleanup) - #85937 (Fix bad suggestions for code from proc_macro) - #85963 (Show `::{{constructor}}` in std::any::type_name().) - #85977 (Fix linkcheck script from getting out of sync.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-06-04Rollup merge of #85977 - ehuss:linkcheck-nightly, r=Mark-SimulacrumYuki Okushi-5/+5
Fix linkcheck script from getting out of sync. When there are changes to the linkcheck script, the CI jobs used in the books would download the latest version on master, but run it against nightly. During that 24 hour window, the CI can fail if the script has changes that are incompatible with the last nightly. This fixes it so that it downloads the linkchecker that matches the version of nightly. This also includes a fix to build with release to make it run much faster (I forgot to add this in #85652).
2021-06-04Rollup merge of #85899 - klensy:jsondocck-f, r=Mark-SimulacrumYuki Okushi-9/+8
jsondocck small cleanup updated `shlex` (there was some fix https://github.com/comex/rust-shlex/commit/6db4704fcad8393dd6947b1d31720327546a84a2) replaced `lazy_static` with `once_cell` removed `serde` direct dependency (`serde_json` will pull it)
2021-06-04Auto merge of #85954 - flip1995:clippyup, r=Manishearthbors-1305/+2367
Update Clippy Bi-weekly Clippy update. r? `@Manishearth`
2021-06-03Build linkcheck script as release to run faster.Eric Huss-1/+1
2021-06-03Fix linkcheck script from getting out of sync.Eric Huss-4/+4
2021-06-03Auto merge of #85958 - hyd-dev:miri, r=RalfJungbors-7/+11
Update Miri Fixes #85946. r? `@RalfJung`
2021-06-03Update Mirihyd-dev-7/+11
2021-06-03Merge commit '3ae8faff4d46ad92f194c2a4b941c3152a701b31' into clippyupflip1995-1305/+2367
2021-06-03Rollup merge of #85926 - ehuss:update-cargo, r=ehussYuki Okushi-0/+0
Update cargo 10 commits in e931e4796b61de593aa1097649445e535c9c7ee0..0cecbd67323ca14a7eb6505900d0d7307b00355b 2021-05-24 16:17:27 +0000 to 2021-06-01 20:09:13 +0000 - Configure hosts separately from targets when --target is specified. (rust-lang/cargo#9322) - Add some validation to rustc-link-arg (rust-lang/cargo#9523) - Implement suggestions for unknown features in workspace (rust-lang/cargo#9420) - Extract common `make_dep_path` to cargo_util (rust-lang/cargo#9529) - Add a note about rustflags compatibility. (rust-lang/cargo#9524) - Consolidate doc collision detection. (rust-lang/cargo#9526) - Add `--depth` option for `cargo-tree` (rust-lang/cargo#9499) - `cargo tree -e no-proc-macro` to hide procedural macro dependencies (rust-lang/cargo#9488) - Update to semver 1.0.0 (rust-lang/cargo#9508) - Update tar dependency to 0.4.35 (rust-lang/cargo#9517)
2021-06-03Auto merge of #84834 - GuillaumeGomez:sidebar-unification, r=jshabors-0/+7
Sidebar unification This PR does a few things: * Put crates list at all levels (before, it was only on the "top" items) * Fix bug in module sidebar: the list of items was from the parent module. The other changes (on bootstrap mostly) were to allow to generate multiple crates in a same folder so that we can ensure that clicking on the crates in the sidebar works as expected. I added a rustdoc-gui test to ensure everything is where it should be. r? `@jyn514`
2021-06-01Update cargoEric Huss-0/+0
2021-06-01Replace h3 and h4 containing invalid DOMGuillaume Gomez-1/+1
2021-06-01replace lazy_static with once_cell, drop direct dependency on serdeklensy-8/+7
2021-06-01updated shlex for jsondocckklensy-1/+1
2021-06-01Auto merge of #85856 - lnicola:rust-analyzer-2021-05-31, r=jonas-schievinkbors-0/+24
:arrow_up: rust-analyzer
2021-05-31Bump Miri for const_err changesAaron Hill-9/+7
r? @RalfJung
2021-05-31:arrow_up: rust-analyzerLaurențiu Nicola-0/+24
2021-05-31Add some commented options that could be useful for other contributors in ↵Guillaume Gomez-0/+7
rustdoc-gui tool
2021-05-30Rollup merge of #85781 - badboy:document-aarch-ios-sim-support, r=AmanieuGuillaume Gomez-1/+1
Add documentation for aarch64-apple-ios-sim target Documentation as requested for [MCP 428](https://github.com/rust-lang/compiler-team/issues/428) to promote this target to Tier 2. Currently it calls out that it's Tier 3. That should be changed if this target is promoted, but this PR could also land before that. Note: probably should get signoff from the compiler team based on that MCP.
2021-05-30Auto merge of #85786 - GuillaumeGomez:error-code-checker-improvement, ↵bors-9/+18
r=Mark-Simulacrum Error code checker improvement Just realized that some error codes shouldn't be ignored anymore. So I updated the script to ensure that if an error code is tested and ignored, it will trigger an error.
2021-05-29tier-check: Check for lines with '[' such as those containing linksJan-Erik Rediger-1/+1
2021-05-29BPF: misc minor review fixesAlessandro Decina-6/+2
2021-05-29Auto merge of #85798 - hyd-dev:miri, r=RalfJungbors-8/+8
Update Miri Fixes #85780.
2021-05-29Update Mirihyd-dev-8/+8
2021-05-28Auto merge of #85607 - LeSeulArtichaut:thir-unsafeck-closures, r=nikomatsakisbors-1/+1
Make closures inherit their parent's "safety context" Fixes rust-lang/project-thir-unsafeck#9, ~~blocked on #85273~~. r? `@nikomatsakis`
2021-05-28Clean up error codes from being ignoredGuillaume Gomez-6/+5
2021-05-28Add checks to ensure the error_codes checker is "clean"Guillaume Gomez-3/+13
2021-05-27Test THIR unsafeck for unsafe ops in closuresLeSeulArtichaut-1/+1
2021-05-27Remove unused tidy dep exceptionsbjorn3-10/+0
2021-05-26Auto merge of #85652 - ehuss:linkchecker-perf, r=Mark-Simulacrumbors-227/+505
Optimize linkchecker and add report. This makes three changes to the linkchecker: * Adds a report displayed after it finishes. * Improves the performance by caching all filesystem access. The linkchecker can take over a minute to run on some systems, and this should make it about 2-3 times faster. * Added a few tests.
2021-05-26Update RLSIgor Matuszewski-0/+0
2021-05-25Update cargoEric Huss-0/+0
2021-05-25Auto merge of #85634 - RalfJung:miri, r=RalfJungbors-7/+9
update Miri Fixes https://github.com/rust-lang/rust/issues/85591
2021-05-25Auto merge of #84985 - pietroalbini:bootstrap-1.54, r=Mark-Simulacrumbors-2/+0
Bump bootstrap compiler to beta 1.53.0 This PR bumps the bootstrap compiler to version 1.53.0 beta, as part of our usual release process (this was supposed to be Wednesday's step, but creating the beta release took longer than expected). The PR also includes the "Bootstrap: skip rustdoc fingerprint for building docs" commit, see the reasoning [on Zulip](https://zulip-archive.rust-lang.org/241545trelease/88450153betabootstrap.html). r? `@Mark-Simulacrum`
2021-05-24Add some tests for the linkchecker.Eric Huss-0/+187
2021-05-24Optimize linkchecker by caching all filesystem access.Eric Huss-172/+214
This should improve performance 2-3x depending on the system.
2021-05-24update MiriRalf Jung-7/+9
2021-05-24remove cfg(bootstrap)Pietro Albini-2/+0
2021-05-24:arrow_up: rust-analyzerLaurențiu Nicola-24/+0
2021-05-23Add BPF targetAlessandro Decina-0/+9
This change adds the bpfel-unknown-none and bpfeb-unknown-none targets which can be used to generate little endian and big endian BPF