about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-05-03Add a fast code path to optimize `confusable_idents` lint for ASCII code base.Charles Lew-4/+49
2020-05-03Implement `confusable_idents` lint.Charles Lew-8/+151
2020-05-02Auto merge of #70655 - oli-obk:subrepo_funness, r=Mark-Simulacrumbors-140/+114583
Make clippy a git subtree instead of a git submodule r? @eddyb cc #70651 documentation at https://github.com/rust-lang/rust/pull/70654
2020-05-02Auto merge of #71795 - RalfJung:rollup-yqxfi5a, r=RalfJungbors-80/+154
Rollup of 6 pull requests Successful merges: - #71712 (Miri: port error backtraces to std::backtrace) - #71736 (bootstrap: also apply unused-attributes hack without deny_warnings) - #71738 (remove AllocId generalization of Pointer) - #71739 (remove obsolete comment) - #71781 (Uncomment test code for failure to use `Box::pin`) - #71782 (Use a non-existent test path instead of clobbering /dev/null) Failed merges: r? @ghost
2020-05-02Rollup merge of #71782 - cuviper:leave-dev-null-alone, r=Mark-SimulacrumRalf Jung-4/+8
Use a non-existent test path instead of clobbering /dev/null Fixes #71502. r? @Mark-Simulacrum
2020-05-02Rollup merge of #71781 - estebank:box-pin-test, r=tmandryRalf Jung-16/+95
Uncomment test code for failure to use `Box::pin` Close #69083.
2020-05-02Rollup merge of #71739 - tshepang:master, r=Dylan-DPCRalf Jung-1/+0
remove obsolete comment Referenced was removed in 9f492fefef8d9a75f6dc27c834561fe977ca70c5
2020-05-02Rollup merge of #71738 - RalfJung:pointer-no-alloc-id, r=oli-obkRalf Jung-40/+34
remove AllocId generalization of Pointer This was only needed for the "snapshot" machinery, which is gone. r? @oli-obk
2020-05-02Rollup merge of #71736 - RalfJung:silence-spurious-unused, r=Mark-SimulacrumRalf Jung-6/+6
bootstrap: also apply unused-attributes hack without deny_warnings This is a follow-up to https://github.com/rust-lang/rust/pull/70881 that also silences these warnings when deny_warnings is off. They otherwise spam my screen during development and make it hard to see actual warnings. Cc @eddyb r? @Mark-Simulacrum
2020-05-02Rollup merge of #71712 - RalfJung:error-backtrace, r=oli-obkRalf Jung-13/+11
Miri: port error backtraces to std::backtrace No need to pull in an external dependency if libstd already includes this feature (using the same dependency internally, but... still). r? @oli-obk
2020-05-02Add 'src/tools/clippy/' from commit 'd2708873ef711ec8ab45df1e984ecf24a96cd369'Oliver Scherer-0/+114475
git-subtree-dir: src/tools/clippy git-subtree-mainline: 06c44816c1532e5ff08ad072f581fc068eb60e2e git-subtree-split: d2708873ef711ec8ab45df1e984ecf24a96cd369
2020-05-02Delete the clippy submoduleOliver Scherer-11/+0
2020-05-02Also build clippy with `./x.py check`Oliver Scherer-69/+75
2020-05-02Gate on clippy on CIOliver Scherer-60/+33
2020-05-02Auto merge of #70170 - eddyb:wf-early-exit, r=nikomatsakisbors-43/+45
wf: handle "livelock" checking before reaching `WfPredicates::compute`. For `wf::obligations`'s "livelock" handling, this PR shouldn't cause any behavioral changes, as the check moved to it should be equivalent to the old one in `WfPredicates::compute`. However, it fixes #70168 by making *other* users of `WfPredicates::compute` (that is, `wf::predicate_obligations` and `compute`'s own upvar handling) correct for `ty::Infer`, in that they now get a `WellFormed(ty::Infer(_))` obligation instead of silently ignoring the type. r? @nikomatsakis
2020-05-02Auto merge of #71716 - alexcrichton:bitcode-follow-up, r=nnethercotebors-48/+39
Rename `bitcode-in-rlib` option to `embed-bitcode` This commit finishes work first pioneered in #70458 and started in #71528. The `-C bitcode-in-rlib` option, which has not yet reached stable, is renamed to `-C embed-bitcode` since that more accurately reflects what it does now anyway. Various tests and such are updated along the way as well. This'll also need to be backported to the beta channel to ensure we don't accidentally stabilize `-Cbitcode-in-rlib` as well.
2020-05-02Auto merge of #71776 - Dylan-DPC:rollup-k1iuuow, r=Dylan-DPCbors-1777/+105
Rollup of 5 pull requests Successful merges: - #71018 (handle ConstValue::ByRef in relate) - #71758 (Remove leftover chalk types) - #71760 (Document unsafety for `*const T` and `*mut T`) - #71761 (doc: reference does not exist, probably a typo) - #71762 (doc: this resulted in a link pointing to a non-existent target) Failed merges: - #71726 (Suggest deref when coercing `ty::Ref` to `ty::RawPtr` with arbitrary mutability) r? @ghost
2020-05-01Uncomment test code for failure to use `Box::pin`Esteban Küber-16/+95
Close #69083.
2020-05-01Use a non-existent test path instead of clobbering /dev/nullJosh Stone-4/+8
2020-05-01Rollup merge of #71762 - tshepang:typo, r=jonas-schievinkDylan DPC-1/+1
doc: this resulted in a link pointing to a non-existent target
2020-05-01Rollup merge of #71761 - tshepang:missing-target, r=jonas-schievinkDylan DPC-1/+1
doc: reference does not exist, probably a typo
2020-05-01Rollup merge of #71760 - LeSeulArtichaut:document-unsafety, r=Mark-SimulacrumDylan DPC-4/+8
Document unsafety for `*const T` and `*mut T` Helps with #66219 r? @Mark-Simulacrum
2020-05-01Rollup merge of #71758 - jackh726:chalk-remove, r=jackh726Dylan DPC-1768/+5
Remove leftover chalk types Split out from #69406 Since the other PR is having memory problems with `parallel-compiler = true`, figured I should split this out. Surprisingly, this actually changes some errors, and I'm not quite sure why. r? @nikomatsakis
2020-05-01Rollup merge of #71018 - lcnr:custom-const-param, r=eddybDylan DPC-3/+90
handle ConstValue::ByRef in relate fixes #68615 r? @eddyb
2020-05-01Auto merge of #69808 - cjgillot:vtbl, r=pnkfelixbors-103/+240
Avoid duplicating code for each query There are at the moment roughly 170 queries in librustc. The way `ty::query` is structured, a lot of code is duplicated for each query. I suspect this to be responsible for a part of librustc'c compile time. The first part of this PR reduces the amount of code generic on the query, replacing it by code generic on the key-value types. I can split it out if needed. In a second part, the non-inlined methods in the `QueryAccessors` and `QueryDescription` traits are made into a virtual dispatch table. This allows to reduce even more the number of generated functions. This allows to save 1.5s on check build, and 10% on the size of the librustc.rlib. (Attributed roughly half and half). My computer is not good enough to measure properly compiling time. I have no idea of the effect on performance. A perf run may be required. cc #65031
2020-05-01Remove leftover chalk typesJack Huey-1768/+5
2020-05-01doc: this resulted in a link pointing to a non-existent targetTshepang Lekhonkhobe-1/+1
2020-05-01doc: reference does not exist, probably a typoTshepang Lekhonkhobe-1/+1
2020-05-01Document unsafety for `*const T` and `*mut T`LeSeulArtichaut-4/+8
2020-05-01Rollup merge of #71755 - tshepang:fix-comment, r=jonas-schievinkDylan DPC-1/+1
fix doc reference Should of been in e0ce9f8c0a97e5949c9cadd220279d6969289daa, but that had a typo.
2020-05-01Rollup merge of #71752 - tshepang:more-readable, r=jonas-schievinkDylan DPC-2/+6
make Stability doc a more readable (and fix rustdoc warning)
2020-05-01Rollup merge of #71749 - RalfJung:miri-error-print, r=oli-obkDylan DPC-2/+2
fix Miri error message padding I screwed up in the previous PR, and accidentally padded with spaces instead of 0s... r? @oli-obk
2020-05-01Rollup merge of #71747 - spastorino:safety-scheme-around-consts-cleanup, ↵Dylan DPC-19/+3
r=oli-obk Remove deadcode in eval_mir_constant_to_operand r? @oli-obk @RalfJung
2020-05-01Rollup merge of #71744 - tshepang:obsolete-comment, r=Dylan-DPCDylan DPC-6/+0
remove obsolete comment Referenced was removed in 8770d0f34a9bee2691517ab95803a277c453dfda
2020-05-01Rename `bitcode-in-rlib` option to `embed-bitcode`Alex Crichton-48/+39
This commit finishes work first pioneered in #70458 and started in #71528. The `-C bitcode-in-rlib` option, which has not yet reached stable, is renamed to `-C embed-bitcode` since that more accurately reflects what it does now anyway. Various tests and such are updated along the way as well. This'll also need to be backported to the beta channel to ensure we don't accidentally stabilize `-Cbitcode-in-rlib` as well.
2020-05-01fix doc referenceTshepang Lekhonkhobe-1/+1
Should of been in e0ce9f8c0a97e5949c9cadd220279d6969289daa, but that had a typo.
2020-05-01make Stability docs a bit more readable, and fix some rustdoc warningsTshepang Lekhonkhobe-2/+6
2020-05-01Restrict access.Camille GILLOT-1/+1
2020-05-01Inline a few things.Camille GILLOT-1/+8
2020-05-01Monomorphise the interface.Camille GILLOT-29/+72
2020-05-01Move the DepNode construction to librustc_query_system.Camille GILLOT-36/+46
2020-05-01Monomorphise try_execute_query.Camille GILLOT-43/+38
2020-05-01fix Miri error message paddingRalf Jung-2/+2
2020-05-01Monomorphise try_start.Camille GILLOT-18/+26
2020-05-01Monomorphise try_execute_anon_query.Camille GILLOT-15/+34
2020-05-01Remove deadcode in eval_mir_constant_to_operandSantiago Pastorino-19/+3
2020-05-01Monomorphise load_from_disk_and_cache_in_memory.Camille GILLOT-18/+45
2020-05-01Monomorphise force_query_with_job.Camille GILLOT-13/+41
2020-05-01Auto merge of #71742 - matthiaskrgr:submodule_upd, r=Dylan-DPCbors-0/+0
submodules: update cargo from 90931d9b3 to 258c89644 Changes: ```` Remove unnecessary loop in `maybe_spurious` Fix error with git repo discovery and symlinks. Allow failure when setting file mtime. Support multiple `--target` flags on the CLI build-std: Don't treat std like a "local" package. Allow `cargo package --list` even for things that don't package. ```` I'd like to get https://github.com/rust-lang/cargo/pull/8186 into nightly asap. :) r? @ehuss
2020-05-01remove obsolete commentsTshepang Lekhonkhobe-6/+0
Referenced was removed in 8770d0f34a9bee2691517ab95803a277c453dfda