summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2021-02-10bootstrap: fix wrong docs installation pathPietro Albini-1/+1
2021-02-10bootstrap: Locate llvm-dwp based on llvm-config bindirDavid Tolnay-2/+5
2021-02-08this is 1.50.0 stablePietro Albini-1/+1
2021-02-08lexer: Avoid some span arithmetic in `emit_unescape_error`Vadim Petrochenkov-0/+19
2021-02-05Rename `panic_fmt` lint to `non_fmt_panic`.Mara Bos-3/+3
2021-02-05Auto merge of #81257 - ↵bors-10747/+10745
pnkfelix:issue-80949-short-term-resolution-via-revert-of-pr-78373, r=matthewjasper Revert 78373 ("dont leak return value after panic in drop") Short term resolution for issue #80949. Reopen #47949 after this lands. (We plan to fine-tune PR #78373 to not run into this problem.)
2021-02-05Auto merge of #81229 - m-ou-se:solaris-workaround, r=pietroalbinibors-5/+13
Work around missing -dev packages in solaris docker image. This should hopefully make the `dist-various-2` docker build work again on CI, which is now blocking everything from getting merged. r? `@pietroalbini`
2021-02-04Rollup merge of #81288 - camelid:fix-trait-item-vis, r=jyn514Jonas Schievink-2/+51
rustdoc: Fix visibility of trait and impl items Fixes #81274. r? `@jyn514`
2021-02-04[beta] Update cargoEric Huss-0/+0
2021-02-04Rollup merge of #81556 - nikomatsakis:forbidden-lint-groups-lint, r=pnkfelixMara Bos-24/+417
introduce future-compatibility warning for forbidden lint groups We used to ignore `forbid(group)` scenarios completely. This changed in #78864, but that led to a number of regressions (#80988, #81218). This PR introduces a future compatibility warning for the case where a group is forbidden but then an individual lint within that group is allowed. We now issue a FCW when we see the "allow", but permit it to take effect. r? ``@Mark-Simulacrum``
2021-02-04Rollup merge of #81532 - estebank:ice-ice-baby, r=pnkfelixMara Bos-0/+20
Remove incorrect `delay_span_bug` The following code is supposed to compile ```rust use std::ops::BitOr; pub trait IntWrapper { type InternalStorage; } impl<T> BitOr for dyn IntWrapper<InternalStorage = T> where Self: Sized, T: BitOr + BitOr<Output = T>, { type Output = Self; fn bitor(self, _other: Self) -> Self { todo!() } } ``` Before this change it would ICE. In #70998 the removed logic was added to provide better suggestions, and the `delay_span_bug` guard was added to protect against a potential logic error when returning traits. As it happens, there are cases, like the one above, where traits can indeed be returned, so valid code was being rejected. Fix (but not close) #80207.
2021-02-04Auto merge of #81055 - matthewjasper:non-fatal-overflow, r=nikomatsakisbors-1/+60
Make hitting the recursion limit in projection non-fatal This change was originally made in #80246 to avoid future (effectively) infinite loop bugs in projections, but wundergraph relies on rustc recovering here. cc #80953 r? `@nikomatsakis`
2021-02-04Auto merge of #81762 - pietroalbini:fix-install-msys2, r=m-ou-sebors-1/+3
CI: only copy python.exe to python3.exe if the latter does not exist We're copying the binary to make sure we can call `python3.exe` around, but it seems like the base image of GitHub Actions changed, copying the file before we do so. This PR changes the CI script to only copy the file if it doesn't already exist. r? `@m-ou-se` cc `@Mark-Simulacrum`
2021-01-20Add `@!has` checks to ensure private items don't have `pub`Camelid-0/+4
2021-01-20Add FIXME for visibility of a moduleCamelid-0/+3
2021-01-20Add note on panic behaviorCamelid-0/+2
2021-01-20Small refactorCamelid-4/+3
2021-01-20Remove FIXMECamelid-1/+0
Co-authored-by: Joshua Nelson <jyn514@gmail.com>
2021-01-20Update `find_nearest_parent_module`Camelid-12/+15
2021-01-20Extract local variableCamelid-8/+4
2021-01-20Simplify loop and remove old debugging codeCamelid-14/+5
Co-authored-by: Joshua Nelson <jyn514@gmail.com>
2021-01-20Add missing code to `find_closest_parent_module`Camelid-25/+25
2021-01-20Merge `pub-restricted` and `visibility` testCamelid-39/+34
2021-01-20Prefer `pub(crate)` over no modifierCamelid-8/+8
2021-01-20Handle `pub(super)`Camelid-1/+9
2021-01-20Fix bugs; fix and add testsCamelid-87/+110
2021-01-20rustdoc: Render visibilities succinctlyCamelid-22/+38
2021-01-20Update mdbookEric Huss-1/+1
2021-01-20bootstrap: fix x.py install not working with relative prefixPietro Albini-55/+44
2021-01-20bootstrap: use the correct paths during ./x.py installPietro Albini-81/+45
2021-01-20bootstrap: change the dist outputs to GeneratedTarballPietro Albini-48/+64
The struct will allow to store more context on the generated tarballs.
2021-01-20bootstrap: never delete the tarball temporary directoryPietro Albini-9/+3
Files in the temporary directory are used by ./x.py install.
2021-01-20bootstrap: extract from any compression algorithm during distcheckPietro Albini-5/+2
2021-01-19update RLS and rustfmtCaleb Cartwright-6/+0
2021-01-12[beta] Update cargoEric Huss-0/+0
2021-01-04Merge commit '4bd77a19f39165fe9b8be2f7271d4197bd4f42eb' into betaflip1995-119/+85
2020-12-31Prevent caching projections in the case of cyclesMatthew Jasper-14/+123
When normalizing a projection which results in a cycle, we would cache the result of `project_type` without the nested obligations (because they're not needed for inference). This would result in the nested obligations only being handled once in fulfill, which would avoid the cycle error. Fixes #79714, a regresion from #79305 caused by the removal of `get_paranoid_cache_value_obligation`.
2020-12-31Make recursion limit fatal in projectMatthew Jasper-2/+1
This avoid the hang/oom from #79714
2020-12-31Use package name for top-level directory in bare tarballsMark Rousskov-1/+7
This fixes a bug introduced by #79788.
2020-12-31Bootstrap from released compilerMark Rousskov-2/+2
2020-12-29Permit unstable features during PGO benchmarksMark Rousskov-0/+2
2020-12-29Ignore failures of RLS on aarch64 WindowsMark Rousskov-1/+7
2020-12-29Update fulldeps testMark Rousskov-29/+18
2020-12-29Prepare 1.50 betaMark Rousskov-5/+5
2020-12-25Auto merge of #80296 - ↵bors-19/+37
wesleywiser:revert_missing_fragment_specifier_hard_error, r=Mark-Simulacrum Revert missing fragment specifier hard error Closes #76605 Reopens #40107 r? `@Mark-Simulacrum`
2020-12-25Auto merge of #80226 - ThePuzzlemaker:issue-80004-fix, r=jyn514,petrochenkovbors-12/+24
Highlight edition-specific keywords correctly in code blocks, accounting for code block edition modifiers Previously, edition-specific keywords (such as `async` and `await`) were not highlighted in code blocks, regardless of what edition was set. With this PR, this issue is fixed. Now, the following behavior happens: - When a code block is explicitly set to edition X, keywords from edition X are highlighted - When a code block is explicitly set to a version that does not contain those keywords from edition X (e.g. edition Y), keywords from edition X are **not** highlighted - When a code block has no explicit edition, keywords from the edition passed via `--edition` to rustdoc are highlighted For example, a project set with `edition = "2015"` in its `Cargo.toml` would not highlight `async`/`await` unless the code block was set to `edition2018`. Additionally, a project set with `edition = "2018"` in its `Cargo.toml` *would* highlight `async`/`await` unless the code block was set to a version that did not contain those keywords (e.g. `edition2015`). This PR fixes #80004. r? `@jyn514`
2020-12-25Auto merge of #80187 - 0dvictor:nativelib, r=bjorn3bors-0/+6
Exclude unnecessary info from CodegenResults `foreign_module` and `wasm_import_module` are not needed for linking, and hence can be removed from CodegenResults. Fixes #77857
2020-12-25Auto merge of #80364 - Dylan-DPC:rollup-0y96okz, r=Dylan-DPCbors-47/+110
Rollup of 11 pull requests Successful merges: - #79213 (Stabilize `core::slice::fill`) - #79999 (Refactored verbose print into a function) - #80160 (Implemented a compiler diagnostic for move async mistake) - #80274 (Rename rustc_middle::lint::LintSource) - #80280 (Add installation commands to `x` tool README) - #80319 (Fix elided lifetimes shown as `'_` on async functions) - #80327 (Updated the match with the matches macro) - #80330 (Fix typo in simplify_try.rs) - #80340 (Don't unnecessarily override attrs for Module) - #80342 (Fix typo) - #80352 (BTreeMap: make test cases more explicit on failure) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2020-12-25Rollup merge of #80340 - jyn514:less-modules-attrs, r=GuillaumeGomezDylan DPC-14/+3
Don't unnecessarily override attrs for Module They were never changed from the default, which you can get with `tcx.get_attrs()`.
2020-12-25Rollup merge of #80319 - jyn514:async-lifetimes, r=tmandryDylan DPC-2/+67
Fix elided lifetimes shown as `'_` on async functions Closes https://github.com/rust-lang/rust/issues/63037. r? `@tmandry` on the implementation, `@Darksonn` on the test cases.