summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2022-02-22Move `return_self_not_must_use` to `pedantic`xFrednet-6/+6
2022-02-21Soft-disable incremental compilationMark Rousskov-2/+33
This disables incremental compilation by default and adds a snippet to the compiler release notes explaining the rationale and encouraging testing.
2022-02-21Bump CI channelMark Rousskov-1/+1
2022-02-12ignore test on wasm32The 8472-0/+1
A fix applied to std::Path::hash triggers a miscompilation/assert in LLVM in this test on wasm32. The miscompilation appears to pre-existing. Reverting some previous changes done std::Path also trigger it and slight modifications such as changing the test path from "a" to "ccccccccccc" also make it pass, indicating it's very flaky. Since the fix is for a higher-tier platform than wasm it takes precedence.
2022-02-12Adjust clippy tests to account for unreachable! changesMark Rousskov-6/+3
2022-02-11Take in account the unreachable! macro in the non_fmt_panic lintLoïc BRANSTETT-30/+137
2022-02-11Fix invalid special casing of the unreachable! macroLoïc BRANSTETT-13/+50
2022-02-11backport llvm fix for issue 91671.Felix S. Klock II-0/+0
2022-02-11resolve lifetimes for const generic defaultsMichael Goulet-0/+36
2022-02-11Remove obsolete no-op #[main] attribute from compiler.Jeremy Banks-0/+35
2022-02-09[beta] Update cargoEric Huss-0/+0
Update includes: * https://github.com/rust-lang/cargo/pull/10377
2022-02-09Rollup merge of #93394 - m-ou-se:fix-93378, r=estebankMara Bos-0/+41
Don't allow {} to refer to implicit captures in format_args. Fixes #93378
2022-02-09Auto merge of #93081 - nikic:aarch64-fix, r=cuviperbors-0/+0
Update LLVM submodule Update LLVM to fix #92786.
2022-02-09Auto merge of #92983 - pietroalbini:pa-bump-runner-images, r=Mark-Simulacrumbors-1/+1
Update Linux runners to Ubuntu 20.04 r? `@Mark-Simulacrum`
2022-02-09Rollup merge of #92611 - Amanieu:asm-reference, r=m-ou-seMatthias Krüger-0/+36
Add links to the reference and rust by example for asm! docs and lints These were previously removed in #91728 due to broken links. cc ``@ehuss`` since this updates the rust-by-example submodule
2022-01-31Revert -Zbranch-protectionSimonas Kazlauskas-107/+0
This reverts commit d331cb710f0dd969d779510a49a3bafc7f78a54e, reversing changes made to 78fd0f633faaa5b6dd254fc1456735f63a1b1238. This is a fix for #92885 as discussed on Zulip[1]. [1] https://zulip-archive.rust-lang.org/stream/238009-t-compiler/meetings/topic/.5Bweekly.5D.202022-01-27.20.2354818.html#269588396
2022-01-27Handle implicit named arguments in `useless_format`Jason Newcomb-3/+42
2022-01-25Auto merge of #93014 - Kobzol:revert-92103-stable-hash-skip-zero-bytes, ↵bors-2/+2
r=the8472 Revert "Do not hash leading zero bytes of i64 numbers in Sip128 hasher" Reverts rust-lang/rust#92103. It had a (in retrospect, obvious) correctness problem where changing the order of two adjacent values would produce identical hashes, which is problematic in stable hashing (see [this comment](https://github.com/rust-lang/rust/pull/92103#issuecomment-1014625442)). I'll try to send the PR again with a fix for this issue. r? `@the8472`
2022-01-25Rollup merge of #93128 - pietroalbini:pa-verify-stable-version-number, ↵Matthias Krüger-0/+34
r=Mark-Simulacrum Add script to prevent point releases with same number as existing ones This will hopefully prevent what happened today with #93110 and #93121, where we built point release artifacts without changing version numbers, thus requiring another PR to change the version number. r? `@Mark-Simulacrum`
2022-01-25[beta] Update cargoEric Huss-0/+0
2022-01-20Add GUI test for rust logo style in the sidebarsGuillaume Gomez-0/+78
2022-01-20Fix style for rust logoGuillaume Gomez-3/+3
2022-01-20rustdoc: add intra-doc trait impl test for extern typesMahdi Dibaiee-2/+23
2022-01-20rustdoc: fix intra-link for generic trait implsMahdi Dibaiee-1/+31
2022-01-20fix(rustfmt): resolve generated file formatting issueCaleb Cartwright-5/+25
2022-01-17[beta] backport cargoWeihang Lo-0/+0
2022-01-17update the bootstrap compiler to the latest stablePietro Albini-340/+283
2022-01-13bump rlsPietro Albini-0/+0
2022-01-11fix unused warnings in rustfmtPietro Albini-5/+4
2022-01-10switch to the beta channelPietro Albini-1/+1
2022-01-08Auto merge of #91305 - camelid:rm-cond, r=GuillaumeGomezbors-3/+0
rustdoc: Remove apparently unnecessary conditional in `doc_value` I need to remove this conditional for #91072, but while it seems unnecessary, we are not certain. So, the plan is to first remove the conditional and see if any regressions pop up before doing the refactor. This way, it will be easier to revert if there are subtle regressions. r? `@jyn514`
2022-01-07Rollup merge of #92610 - GuillaumeGomez:css-class-instead-of-inline-style, ↵Eric Huss-2/+6
r=jsha Create CSS class instead of using inline style for search results I saw this change in the update you proposed in https://github.com/rust-lang/rust/pull/92404. :) r? ``@jsha``
2022-01-06Rollup merge of #92589 - ChrisDenton:break-loop, r=Mark-SimulacrumMatthias Krüger-1/+3
Break the loop A missing break statement lead to an infinite loop in bootstrap.py. I also added a short sleep so it's not constantly running at 100%. But I can remove that if it's not wanted. Fixes #76661
2022-01-06Rollup merge of #92417 - dtolnay:printimpl, r=jackh726Matthias Krüger-1/+7
Fix spacing and ordering of words in pretty printed Impl Follow-up to #92238 fixing one of the FIXMEs. ```rust macro_rules! repro { ($item:item) => { stringify!($item) }; } fn main() { println!("{}", repro!(impl<T> Struct<T> {})); println!("{}", repro!(impl<T> const Trait for T {})); } ``` Before:&ensp;`impl <T> Struct<T> {}` After:&ensp;`impl<T> Struct<T> {}` Before:&ensp;`impl const <T> Trait for T {}` :crying_cat_face: After:&ensp;`impl<T> const Trait for T {}`
2022-01-06Rollup merge of #92207 - tmiasko:delay-drop-elaboration-bug, r=jackh726Matthias Krüger-0/+82
Delay remaining `span_bug`s in drop elaboration This follows changes from #67967 and converts remaining `span_bug`s into delayed bugs, since for const items drop elaboration might be executed on a MIR which failed borrowck. Fixes #81708. Fixes #91816.
2022-01-06Auto merge of #92609 - matthiaskrgr:rollup-ldp47ot, r=matthiaskrgrbors-45/+228
Rollup of 7 pull requests Successful merges: - #92058 (Make Run button visible on hover) - #92288 (Fix a pair of mistyped test cases in `std::net::ip`) - #92349 (Fix rustdoc::private_doc_tests lint for public re-exported items) - #92360 (Some cleanups around check_argument_types) - #92389 (Regression test for borrowck ICE #92015) - #92404 (Fix font size for [src] links in headers) - #92443 (Rustdoc: resolve associated traits for non-generic primitive types) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-01-06Create CSS class instead of using inline style for search resultsGuillaume Gomez-2/+6
2022-01-06Rollup merge of #92443 - mdibaiee:90703/resolve-traits-of-primitive-types, ↵Matthias Krüger-30/+119
r=Manishearth Rustdoc: resolve associated traits for non-generic primitive types Fixes #90703 This seems to work: <img width="457" alt="image" src="https://user-images.githubusercontent.com/2807772/147774059-9556ff96-4519-409e-8ed0-c33ecc436171.png"> I'm just afraid I might have missed some cases / broken previous functionality. I also have not written tests yet, I will have to take a look to see where tests are and how they are structured, but any help there is also appreciated.
2022-01-06Rollup merge of #92404 - GuillaumeGomez:src-font-size, r=jshaMatthias Krüger-13/+19
Fix font size for [src] links in headers Fixes #90384. cc `@jsha` r? `@camelid`
2022-01-06Rollup merge of #92389 - chordtoll:test-92015, r=Mark-SimulacrumMatthias Krüger-0/+18
Regression test for borrowck ICE #92015 This issue has come up a few times. Creating a regression test. Closes #92015.
2022-01-06Rollup merge of #92360 - jackh726:param-heuristics-1, r=davidtwcoMatthias Krüger-0/+14
Some cleanups around check_argument_types Split out in ways from my rebase/continuation of #71827 Commits are mostly self-explanatory and these changes should be fairly straightforward
2022-01-06Rollup merge of #92349 - avitex:fix-rustdoc-private-doc-tests, r=GuillaumeGomezMatthias Krüger-1/+46
Fix rustdoc::private_doc_tests lint for public re-exported items Closes #72081 This involves changing the lint to check the access level is exported, rather than public. The [exported access level](https://github.com/rust-lang/rust/blob/e91ad5fc62bdee4a29c18baa5fad2ca42fc91bf4/compiler/rustc_middle/src/middle/privacy.rs#L24) accounts for public items and items accessible to other crates with the help of `pub use` re-exports. The pattern of re-exporting public items from a private module is usage seen in a number of popular crates.
2022-01-06Rollup merge of #92058 - jsha:run-on-hover, r=GuillaumeGomezMatthias Krüger-1/+12
Make Run button visible on hover This slightly reduces the noisiness of doc pages, making them easier to read. Demo: https://rustdoc.crud.net/jsha/run-on-hover/std/string/struct.String.html [Discussed on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/.22Run.22.20button.20visible.20on.20hover). Part of #59845
2022-01-06Revert "bootstrap: copy `llvm-dwp` to sysroot"David Wood-12/+1
This reverts commit 241160de72b5b55187ca54243e2a6e82e336d07c.
2022-01-06cg: use thorin instead of llvm-dwpDavid Wood-19/+86
`thorin` is a Rust implementation of a DWARF packaging utility that supports reading DWARF objects from archive files (i.e. rlibs) and therefore is better suited for integration into rustc. Signed-off-by: David Wood <david.wood@huawei.com>
2022-01-06sess/cg: re-introduce split dwarf kindDavid Wood-5/+19
In #79570, `-Z split-dwarf-kind={none,single,split}` was replaced by `-C split-debuginfo={off,packed,unpacked}`. `-C split-debuginfo`'s packed and unpacked aren't exact parallels to single and split, respectively. On Unix, `-C split-debuginfo=packed` will put debuginfo into object files and package debuginfo into a DWARF package file (`.dwp`) and `-C split-debuginfo=unpacked` will put debuginfo into dwarf object files and won't package it. In the initial implementation of Split DWARF, split mode wrote sections which did not require relocation into a DWARF object (`.dwo`) file which was ignored by the linker and then packaged those DWARF objects into DWARF packages (`.dwp`). In single mode, sections which did not require relocation were written into object files but ignored by the linker and were not packaged. However, both split and single modes could be packaged or not, the primary difference in behaviour was where the debuginfo sections that did not require link-time relocation were written (in a DWARF object or the object file). This commit re-introduces a `-Z split-dwarf-kind` flag, which can be used to pick between split and single modes when `-C split-debuginfo` is used to enable Split DWARF (either packed or unpacked). Signed-off-by: David Wood <david.wood@huawei.com>
2022-01-05Simplify :target CSS selectorGuillaume Gomez-12/+3
2022-01-05Break the loopChris Denton-1/+3
A missing break statement lead to an infinite loop in bootstrap.py.
2022-01-05Add test for [src] font-size in headersGuillaume Gomez-0/+12
2022-01-05Fix font size for [src] links in headersGuillaume Gomez-1/+4