about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2021-07-15tweak pointer out-of-bounds error messageRalf Jung-22/+23
2021-07-15Add test for sidebar display value on mobileGuillaume Gomez-0/+10
2021-07-15Do not hide the sidebar on mobile, move it outside of the viewport insteadGuillaume Gomez-4/+6
2021-07-15Auto merge of #83319 - tmiasko:packed-aligned, r=jackh726bors-1/+26
Layout error instead of an ICE for packed and aligned types Fixes #83107.
2021-07-15Auto merge of #87152 - flip1995:clippyup, r=Manishearthbors-607/+2225
Update Clippy r? `@Manishearth`
2021-07-15Add regression test for type declaration layout overflowGuillaume Gomez-0/+15
2021-07-15Fix layout overflow in type declarationGuillaume Gomez-0/+3
2021-07-15Layout error instead of an ICE for packed and aligned typesTomasz Miąsko-1/+26
2021-07-15Get the right place typeRoxane-0/+68
2021-07-15Suggest full enum variant for local modulesAlik Aslanyan-0/+26
2021-07-15Rollup merge of #87154 - GuillaumeGomez:rev-attr-a, r=JohnTitorYuki Okushi-2/+1
Fix misuse of rev attribute on <a> tag The `rev` attribute is supposed to talk about "ownership" as far as I could found out. This attribute seems not very well defined in the HTML spec and its usage in rustdoc is suboptimal. It was found out in https://github.com/rust-lang/rust/pull/87149. r? `@JohnTitor`
2021-07-15Rollup merge of #87147 - ehuss:update-cargo, r=ehussYuki Okushi-0/+0
Update cargo 13 commits in 3ebb5f15a940810f250b68821149387af583a79e..66a6737a0c9f3a974af2dd032a65d3e409c77aac 2021-07-02 20:35:38 +0000 to 2021-07-14 20:54:28 +0000 - Add format option to `cargo tree` to print the lib_name (rust-lang/cargo#9663) - Prefer patched versions of dependencies (rust-lang/cargo#9639) - When a dependency does not have a version, git or path, fails directly (rust-lang/cargo#9686) - Spot the crate typo easily (rust-lang/cargo#9665) - remove unnecessary 'collect' (rust-lang/cargo#9616) - Make it easier to run testsuite with a custom toolchain. (rust-lang/cargo#9679) - Serialize `cargo fix` (rust-lang/cargo#9677) - Don't recommend filing issues on rust-lang/cargo for Cargo.toml errors. (rust-lang/cargo#9658) - Update nightly failure notification. (rust-lang/cargo#9657) - Update Windows env uppercase key check. (rust-lang/cargo#9654) - Unignore fix_edition_2021. (rust-lang/cargo#9662) - Warning when using features in patch (rust-lang/cargo#9666) - Unify cargo and rustc's error reporting (rust-lang/cargo#9655)
2021-07-15Rollup merge of #87134 - BoxyUwU:cgd-self-ty-error, r=lcnrYuki Okushi-18/+55
Make SelfInTyParamDefault wording not be specific to type defaults r? ```@lcnr```
2021-07-15Rollup merge of #86947 - m-ou-se:assert-matches-to-submodule, r=yaahcYuki Okushi-7/+11
Move assert_matches to an inner module Fixes #82913
2021-07-15Rollup merge of #86478 - ehuss:future-incompat-test, r=oli-obkYuki Okushi-10/+26
Add -Zfuture-incompat-test to assist with testing future-incompat reports. This adds a `-Zfuture-incompat-test` cli flag to assist with testing future-incompatible reports. This flag causes all lints to be treated as a future-incompatible lint, and will emit a report for them. This is being added so that Cargo's testsuite can reliably test the reporting infrastructure. Right now, Cargo relies on using array_into_iter as a test subject. Since the breaking "future incompatible" lints are never intended to last forever, this means Cargo's testsuite would always need to keep changing to choose different lints (for example, #86330 proposed dropping that moniker for array_into_iter). With this flag, Cargo's tests can trigger any lint and check for the report.
2021-07-15Fix misuse of rev attribute on <a> tagGuillaume Gomez-2/+1
2021-07-15[debuginfo] Make use of spaces and separators in debuginfo names more uniform.Michael Woerister-19/+19
2021-07-15Merge commit '54a20a02ecd0e1352a871aa0990bcc8b8b03173e' into clippyupflip1995-607/+2225
2021-07-15[debuginfo] Emit associated type bindings in trait object type names.Michael Woerister-7/+11
2021-07-14Update cargoEric Huss-0/+0
2021-07-15Auto merge of #86876 - jyn514:56935-target-crate-num, r=petrochenkovbors-0/+20
Reuse CrateNum for proc-macro crates even when cross-compiling Proc-macros are always compiled for the host, so this should be the same in every way as recompiling the crate. I am not sure why the previous code special-cased the target, since the compiler properly gives an error when trying to load a crate for a different host: ``` error[E0461]: couldn't find crate `dependency` with expected target triple x86_64-unknown-linux-gnu --> /home/joshua/rustc4/src/test/ui/cfg-dependent.rs:8:2 | LL | dependency::is_64(); | ^^^^^^^^^^ | = note: the following crate versions were found: crate `dependency`, target triple i686-unknown-linux-gnu: /home/joshua/rustc4/build/x86_64-unknown-linux-gnu/test/ui/cfg-dependent/auxiliary/libdependency.so ``` I think another possible fix is to remove the check altogether. But I'm not sure, and this fix works, so I'm not making the larger change here. Fixes https://github.com/rust-lang/rust/issues/56935. r? `@petrochenkov` cc `@alexcrichton`
2021-07-14Reuse CrateNum for proc-macro crates even when cross-compilingJoshua Nelson-0/+20
Proc-macros are always compiled for the host, so this should be the same in every way as recompiling the crate. I am not sure why the previous code special-cased the target, since the compiler properly gives an error when trying to load a crate for a different host: ``` error[E0461]: couldn't find crate `dependency` with expected target triple x86_64-unknown-linux-gnu --> /home/joshua/rustc4/src/test/ui/cfg-dependent.rs:8:2 | LL | dependency::is_64(); | ^^^^^^^^^^ | = note: the following crate versions were found: crate `dependency`, target triple i686-unknown-linux-gnu: /home/joshua/rustc4/build/x86_64-unknown-linux-gnu/test/ui/cfg-dependent/auxiliary/libdependency.so ``` I think another possible fix is to remove the check altogether. But I'm not sure, and this fix works, so I'm not making the larger change here.
2021-07-15add assertions on existing tests with missing doc sourceFrançois Mockers-0/+2
2021-07-14Fix tests for i686Wesley Wiser-3/+3
2021-07-14OOPSEllen-9/+9
2021-07-14Auto merge of #87133 - GuillaumeGomez:rollup-pfz9jbk, r=GuillaumeGomezbors-37/+120
Rollup of 6 pull requests Successful merges: - #87027 (expand: Support helper attributes for built-in derive macros) - #87056 (Fix codeblocks overflow) - #87117 (Shrink the CrateStore dynamic interface.) - #87120 (rustdoc: Remove unnecessary `extern crate` aliases) - #87125 (Fix Ayu theme `<code>` color) - #87130 (Update browser-ui-test package version) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-07-14Change type param -> generic paramEllen-18/+55
2021-07-14Rollup merge of #87130 - GuillaumeGomez:update-browser-ui-test, ↵Guillaume Gomez-1/+1
r=Mark-Simulacrum Update browser-ui-test package version It adds a check to prevent to have empty CSS values in `assert-css` command. r? `@Mark-Simulacrum`
2021-07-14Rollup merge of #87125 - GuillaumeGomez:ayu-code-color, r=notriddleGuillaume Gomez-1/+15
Fix Ayu theme <code> color Fixes #87072 (the second regression). r? `@notriddle`
2021-07-14Rollup merge of #87120 - jyn514:rustdoc-cleanup, r=CraftSpiderGuillaume Gomez-16/+12
rustdoc: Remove unnecessary `extern crate` aliases
2021-07-14Rollup merge of #87056 - GuillaumeGomez:fix-codeblocks-overflow, r=notriddleGuillaume Gomez-19/+56
Fix codeblocks overflow Fixes #87043. Instead of completely relying on `pulldown-cmark` (and its potential changes), I decided to move the generation of codeblocks HTML directly in rustdoc so we can unify the DOM and the CSS classes. r? `@Nemo157`
2021-07-14Rollup merge of #87027 - petrochenkov:builderhelp, r=oli-obkGuillaume Gomez-0/+36
expand: Support helper attributes for built-in derive macros This is needed for https://github.com/rust-lang/rust/pull/86735 (derive macro `Default` should have a helper attribute `default`). With this PR we can specify helper attributes for built-in derives using syntax `#[rustc_builtin_macro(MacroName, attributes(attr1, attr2, ...))]` which mirrors equivalent syntax for proc macros `#[proc_macro_derive(MacroName, attributes(attr1, attr2, ...))]`. Otherwise expansion infra was already ready for this. The attribute parsing code is shared between proc macro derives and built-in macros (`fn parse_macro_name_and_helper_attrs`).
2021-07-14bless mir-opt, codegen, and remaining ui testsRalf Jung-146/+140
2021-07-14more precise message for the ptr access check on derefRalf Jung-3/+3
2021-07-14test dynamic check for ptr-int-casts (unleashed)Ralf Jung-3/+21
2021-07-14adjust testsRalf Jung-200/+163
2021-07-14Add -Zfuture-incompat-test to assist with testing future-incompat reports.Eric Huss-10/+26
2021-07-14Auto merge of #87082 - michaelwoerister:const-in-debuginfo-type-names-fix, ↵bors-2/+28
r=oli-obk,wesleywiser Handle non-integer const generic parameters in debuginfo type names. This PR fixes an ICE introduced by https://github.com/rust-lang/rust/pull/85269 which started emitting const generic arguments for debuginfo names but did not cover the case where such an argument could not be evaluated to a flat string of bits. The fix implemented in this PR is very basic: If `try_eval_bits()` fails for the constant in question, we fall back to generating a stable hash of the constant and emit that instead. This way we get a (virtually) unique name and side step the problem of generating a string representation of a potentially complex value. The downside is that the generated name will be rather opaque. E.g. the regression test adds a function `const_generic_fn_non_int<()>` which is then rendered as `const_generic_fn_non_int<{CONST#fe3cfa0214ac55c7}>`. I think it's an open question how to deal with this more gracefully. I'd be interested in ideas on how to do this better. r? `@wesleywiser` cc `@dpaoliello` (do you see any problems with this approach?) cc `@Mark-Simulacrum` & `@nagisa` (who I've seen comment on debuginfo issues recently -- anyone else?) Fixes https://github.com/rust-lang/rust/issues/86893
2021-07-14Warn about useless assignments of variables/fields to themselvesFabian Wolff-0/+97
2021-07-14Update browser-ui-test package versionGuillaume Gomez-1/+1
2021-07-14Handle non-integer const generic parameters in debuginfo type names.Michael Woerister-2/+28
2021-07-14Add GUI test to check ayu <code> colorsGuillaume Gomez-0/+14
2021-07-14Fix color for <code> which are not in doc blocksGuillaume Gomez-1/+1
2021-07-14Add test for codeblocks overflowGuillaume Gomez-0/+22
2021-07-14Fix display for non-rust code blocksGuillaume Gomez-19/+34
2021-07-14ExprUseVisitor::Delegate consume only when movingAman Arora-14/+9
2021-07-14Add test for copy type in move closureAman Arora-1/+62
2021-07-13Remove useless alias from `rustc_span` to itselfJoshua Nelson-1/+1
2021-07-13Remove renaming of `test` crateJoshua Nelson-15/+11
This is leftover from when `doctest` used to be called `test`. Remove it now, it's unnecessary and makes the code harder to read.
2021-07-14Rollup merge of #87102 - GuillaumeGomez:go-to-first-feature, ↵Yuki Okushi-0/+20
r=Manisheart,notriddle Add GUI test for "go to first" feature It adds a test for #85876 to ensure the feature is working as expected and prevent potential regression. cc ```@jeanlucthumm``` r? ```@Manishearth```