dtolnay/cargo-expand 2023
Subcommand to show result of macro expansion
Cargo subcommand to download popular crates.
Cargo subcommand to manage a registry index.
Cargo subcommand to clone a repo from the registry.
Atom package to enhance column selection.
Tool for Anno 2205 layouts.
Enhanced word wrapping for the Atom editor.
The Rust package manager
PR opened rust-lang/triagebot
This adds the TRIAGEBOT_TEST_DISABLE_JOBS
environment variable which can be used to disable jobs from running. This can help with local testing.
This also rearranges the code to separate functions to make it a little cleaner.
pr created time in 3 hours
PR opened rust-lang/triagebot
Now that gh webhook
has been stabilized, I have updated the documentation to more clearly explain how to use it. I strongly recommend anyone doing local testing to use this method.
I also reorganized things a little to provide an overview with links to sections with more detail.
pr created time in 3 hours
PR opened rust-lang/triagebot
The code was not checking for any errors from the rate_limit response, and blissfully continuing if there was an error which can result in some confusing behavior.
pr created time in 3 hours
PR opened rust-lang/triagebot
This changes it so that the logs will display the body of the response when there is an API error. The body usually explains what was wrong, so this should make debugging issues easier.
pr created time in 3 hours
push eventehuss/triagebot-test
commit sha 9a00ee2312071126101bb900f363210d6f3d1402
Update triagebot.toml
push time in 3 hours
push eventehuss/triagebot-test
commit sha a98d65427617f6c73985c68a3eac373c94b29db0
Update triagebot.toml
push time in 3 hours
push eventehuss/triagebot-test
commit sha d00704542896874e8cfd1a30f4de7ceedeed40c9
Update triagebot.toml
push time in 3 hours
push eventehuss/rust
commit sha 2e17ac8bff99190c587db111862072e4cb6537a7
Auto merge of #2897 - RalfJung:rustup, r=RalfJung Rustup
commit sha 88d2125d2f084b605f7df7a4824784e70acfebcf
Auto merge of #14811 - Veykril:closure-hover, r=HKalbasi feat: Render hover actions for closure captures and sig Also special cases closures for ranged type hover to render the closure hover instead
commit sha 795fdf7d619b06ad508e2bd537ef5a4f9d5d4298
Simplify suggestion when returning bare dyn trait
commit sha 3db2bcf4ebb08f7fbe3de7fded45e96639ca3e68
Remove return type sized check hack from hir typeck
commit sha d0768aad62e13ec63cba9d857c8b3fe7657dfb33
Auto merge of #14812 - Veykril:highlight-trait-assoc, r=HKalbasi feat: Highlight used trait assoc items when cursor is on trait import or trait bound
commit sha 72a1796615a26b373c459ebfa79484987d53f1d8
Auto merge of #14819 - weihanglo:divided-by-zero, r=lnicola fix(analysis-stats): divided by zero error ## What does this PR try to resolve? 2023-05-15 rust-analyzer suffers from ``` thread 'main' panicked at 'attempt to divide by zero', crates/rust-analyzer/src/cli/analysis_stats.rs:230:56 ``` This commit <https://github.com/rust-lang/rust-analyzer/pull/14808/commits/51e8b8ff14de3507d5e21d80b750577da52b6fdd> might be the culprit. This PR uses `percentage` function to avoid the classic “division by zero” bug. ## Reproducer ```console cargo new ra-test pushd ra-test echo "pub type Foo = u32;" >> src/lib.rs rust-analyzer analysis-stats . ```
commit sha c4026bf9b97770f4b93394a4b2ef99d0a7be8814
Auto merge of #14818 - poliorcetics:type-hints-after-item, r=Veykril fix: place type inlay hints after the item and without left-padding **Before**:  **After**: 
commit sha a20a08f3e2d3fb2b68e277b10d0d8413ae74d762
Auto merge of #14824 - Veykril:ty-diag-unit, r=Veykril fix: Diagnose non-value return and break type mismatches Could definitely deserve more polished diagnostics, but this at least brings the message across for now.
commit sha b7b026bce672f3161df83d9d503ff32c393e3768
Auto merge of #14825 - HKalbasi:float-const-eval, r=Veykril Fix evaluating negative for floating point types fix #14704 Unary operators was missed from #14705
commit sha 07baa176c28530ad2b9bd6c73dd3c8f0f40e3266
Auto merge of #14828 - lowr:fix/macro_use_prelude_is_in_scope, r=Veykril fix: process `macro_use` prelude in semantic scope resolver Fixes #14826
commit sha c06f08896835d0162a1b328726578dbf886d888f
Auto merge of #14823 - Veykril:discriminant-inlays, r=Veykril fix: Discriminant hints only render for datacarrying enums with primitive repr
commit sha 83a4b0987f54afbfaad8fed61882231a6632bc71
Fix formatting of if let chain
commit sha d6dcfa5744034c178ea4174342618b915112e431
internal: Less file parsing for symbol index generation
commit sha c7b03491cdb40a3b900c7db3c4193d5cc704a7d7
Auto merge of #14834 - Veykril:ty-diag-unit, r=Veykril internal: Less file parsing for symbol index generation
commit sha 0028e73927fc4e3402c7243511936de0f2bc17bc
fix: Force disable augmentsSyntaxTokens capability on VSCode
commit sha 673008aaa2c47028affc3dbcc1d88afdb8e1d77b
Auto merge of #14822 - Veykril:augmentsSyntaxTokens-vscode, r=Veykril fix: Force disable augmentsSyntaxTokens capability on VSCode The default textmate grammar for rust in VSCode is pretty brittle, quite often coloring things very differently than we'd like to so we force full semantic highlighting by disabling that config.
commit sha 03fb1310c24e266bc9dd05357b60a4d2b6e976df
fix: Fix bind pat hint padding
commit sha 0a806fe7ad28efa2de22ed3c9d3233cd1ed08dd1
Auto merge of #14835 - Veykril:inlay-pad, r=Veykril fix: Fix bind pat hint padding
commit sha 261047d01932aac1b40e36076f88fc19f9fea218
Fix layout for `hir_ty::Ty` and friends
commit sha 1c0235e3fff040b23c812c0e78efb4bd5460702a
Auto merge of #14802 - HKalbasi:layout, r=HKalbasi Fix layout for `hir_ty::Ty` and friends
push time in 4 hours
push eventehuss/rust
commit sha 2e17ac8bff99190c587db111862072e4cb6537a7
Auto merge of #2897 - RalfJung:rustup, r=RalfJung Rustup
commit sha 88d2125d2f084b605f7df7a4824784e70acfebcf
Auto merge of #14811 - Veykril:closure-hover, r=HKalbasi feat: Render hover actions for closure captures and sig Also special cases closures for ranged type hover to render the closure hover instead
commit sha 795fdf7d619b06ad508e2bd537ef5a4f9d5d4298
Simplify suggestion when returning bare dyn trait
commit sha 3db2bcf4ebb08f7fbe3de7fded45e96639ca3e68
Remove return type sized check hack from hir typeck
commit sha d0768aad62e13ec63cba9d857c8b3fe7657dfb33
Auto merge of #14812 - Veykril:highlight-trait-assoc, r=HKalbasi feat: Highlight used trait assoc items when cursor is on trait import or trait bound
commit sha 72a1796615a26b373c459ebfa79484987d53f1d8
Auto merge of #14819 - weihanglo:divided-by-zero, r=lnicola fix(analysis-stats): divided by zero error ## What does this PR try to resolve? 2023-05-15 rust-analyzer suffers from ``` thread 'main' panicked at 'attempt to divide by zero', crates/rust-analyzer/src/cli/analysis_stats.rs:230:56 ``` This commit <https://github.com/rust-lang/rust-analyzer/pull/14808/commits/51e8b8ff14de3507d5e21d80b750577da52b6fdd> might be the culprit. This PR uses `percentage` function to avoid the classic “division by zero” bug. ## Reproducer ```console cargo new ra-test pushd ra-test echo "pub type Foo = u32;" >> src/lib.rs rust-analyzer analysis-stats . ```
commit sha c4026bf9b97770f4b93394a4b2ef99d0a7be8814
Auto merge of #14818 - poliorcetics:type-hints-after-item, r=Veykril fix: place type inlay hints after the item and without left-padding **Before**:  **After**: 
commit sha a20a08f3e2d3fb2b68e277b10d0d8413ae74d762
Auto merge of #14824 - Veykril:ty-diag-unit, r=Veykril fix: Diagnose non-value return and break type mismatches Could definitely deserve more polished diagnostics, but this at least brings the message across for now.
commit sha b7b026bce672f3161df83d9d503ff32c393e3768
Auto merge of #14825 - HKalbasi:float-const-eval, r=Veykril Fix evaluating negative for floating point types fix #14704 Unary operators was missed from #14705
commit sha 07baa176c28530ad2b9bd6c73dd3c8f0f40e3266
Auto merge of #14828 - lowr:fix/macro_use_prelude_is_in_scope, r=Veykril fix: process `macro_use` prelude in semantic scope resolver Fixes #14826
commit sha c06f08896835d0162a1b328726578dbf886d888f
Auto merge of #14823 - Veykril:discriminant-inlays, r=Veykril fix: Discriminant hints only render for datacarrying enums with primitive repr
commit sha 83a4b0987f54afbfaad8fed61882231a6632bc71
Fix formatting of if let chain
commit sha d6dcfa5744034c178ea4174342618b915112e431
internal: Less file parsing for symbol index generation
commit sha c7b03491cdb40a3b900c7db3c4193d5cc704a7d7
Auto merge of #14834 - Veykril:ty-diag-unit, r=Veykril internal: Less file parsing for symbol index generation
commit sha 0028e73927fc4e3402c7243511936de0f2bc17bc
fix: Force disable augmentsSyntaxTokens capability on VSCode
commit sha 673008aaa2c47028affc3dbcc1d88afdb8e1d77b
Auto merge of #14822 - Veykril:augmentsSyntaxTokens-vscode, r=Veykril fix: Force disable augmentsSyntaxTokens capability on VSCode The default textmate grammar for rust in VSCode is pretty brittle, quite often coloring things very differently than we'd like to so we force full semantic highlighting by disabling that config.
commit sha 03fb1310c24e266bc9dd05357b60a4d2b6e976df
fix: Fix bind pat hint padding
commit sha 0a806fe7ad28efa2de22ed3c9d3233cd1ed08dd1
Auto merge of #14835 - Veykril:inlay-pad, r=Veykril fix: Fix bind pat hint padding
commit sha 261047d01932aac1b40e36076f88fc19f9fea218
Fix layout for `hir_ty::Ty` and friends
commit sha 1c0235e3fff040b23c812c0e78efb4bd5460702a
Auto merge of #14802 - HKalbasi:layout, r=HKalbasi Fix layout for `hir_ty::Ty` and friends
push time in 4 hours
push eventehuss/rust
commit sha 477c8b3eb07142f477ddf5d3e7d4761f3c92ba9d
Bump README copyright
commit sha cad92b4c979760b088ffd18e6c89801668c944f2
Auto merge of #111107 - weihanglo:update-cargo, r=weihanglo Update cargo 16 commits in 9e586fbd8b931494067144623b76c37d213b1ab6..ac84010322a31f4a581dafe26258aa4ac8dea9cd 2023-04-25 22:09:11 +0000 to 2023-05-02 13:41:16 +0000 - docs(registry): Further specify owner-remove response (rust-lang/cargo#12056) (rust-lang/cargo#12068) - Remove repeated definite articles (rust-lang/cargo#12067) - Document that adding `#[non_exhaustive]` on existing items is breaking. (rust-lang/cargo#10877) - docs(commands): add missed preposition (rust-lang/cargo#12073) - Fix warning with unused mut (rust-lang/cargo#12065) - chore: move build-man workflow away from shell (rust-lang/cargo#12048) - feat: Add `-Zmsrv-policy` feature flag (rust-lang/cargo#12043) - chore: new xtask to check stale paths in autolabel defintions (rust-lang/cargo#12051) - cargo-tree: Handle -e no-proc-macro when building the graph (rust-lang/cargo#12044) - chore: update trigger_files in autolabel (rust-lang/cargo#12052) - fix broken markdown in docs (rust-lang/cargo#12049) - home: fix & enhance documentation (rust-lang/cargo#12047) - chore: Mark unpublished crates as such (rust-lang/cargo#12045) - Include rust-version in publish request (rust-lang/cargo#12041) - chore(xtask): Add `cargo xtask unpublished` (rust-lang/cargo#12039) - docs(ref): Specify 'rust_version' in Index format (rust-lang/cargo#12040) r? `@ghost`
commit sha 82cd953c7c43e64dae6f705ce2f07b291f0e22e3
Auto merge of #110846 - jdno:reduce-builder-sizes, r=pietroalbini Optimize builder sizes The infra-team is continuously monitoring the efficiency of the CI system in an effort to improve overall build times and resource usage. Some builders have used much less than their allocated resources, so we are testing smaller builder sizes for them. r? `@pietroalbini`
commit sha 6e377849c09a310b6eef50ebd91c1f014d41ab73
Correctly convert an NT path to a Win32 path This can be done by simply changing the `\??\` prefix to `\\?\` and then attempting to convert to a user path. Currently it simply strips off the prefix which could lead to the wrong path being returned (e.g. if it's not a drive path or if the path contains trailing spaces, etc).
commit sha 4603f0b8afb495ae56cd4c8f70d5d478d906ac54
Inline SocketAddr methods
commit sha 109a47fc9d63a5e093bd36423e290fe8bc18ae25
Use `from_wide_to_user_path` in `read_link`
commit sha 4fec8a35b647e8905a4ea8093002e3afe4b9b4e1
Constify slice flatten method
commit sha c2e0d43485eff8a73c61d9118cd8ed5a1a292007
Auto merge of #10734 - smoelius:patch-2, r=Alexendoo Update macros.rs (typo) r? `@Alexendoo` changelog: none
commit sha af5de855a33256ea6125f5654296698e507f86e0
Remove unnecessary Send bound
commit sha 6bb1f792db5536bcb4adbc7bcefa10cb5a827aed
cleanup nll generalizer
commit sha 9b99ff76b28605ad2e2c49e369721ae400e6a665
Auto merge of #110865 - cuviper:ct-ng-1.25, r=pietroalbini ci: upgrade and refactor crosstool-ng builders The first commit upgrades our builders from crosstool-ng 1.24.0 to 1.25.0. There are otherwise no changes intended to the toolchains we're using, but there are some minor version upgrades as a result, especially GCC 8.3.0 to 8.5.0. The newer crosstool-ng will position us well to make toolchain upgrades in the future though, as we were maxed out before and it now goes up to GCC 11. The second commit refactors our config management to only commit a "mini-defconfig" for each target, produced by `ct-ng savedefconfig`. This makes it much clearer which settings we're actually changing, and also makes it easier to ensure consistency for things like mirror management.
commit sha 97eab4db84715ebc475607e24dcdc65c6e0dd5d5
Fix MXCSR configuration dependent timing Some data-independent timing vector instructions may have subtle data-dependent timing due to MXCSR configuration; dependent on (potentially secret) data instruction retirement may be delayed by one cycle.
commit sha 6f6c379ee065d65fb8121db46bf5b0fbcdcb905c
rustc_middle: Fix `opt_item_ident` for non-local def ids
commit sha 9ea7142a013eeb857a8922caf2ec485a056e987f
Return error code from x.ps1
commit sha 4e049036313759df55c4c68ad87e1cd7ad5cf214
rename to plural form
commit sha eea6202c248f0aa57a7f490f50a7bf21f322a40e
check bootstrap scripts syntax Signed-off-by: ozkanonur <work@onurozkan.dev>
commit sha 59477cc1bc41e6915f87e0b517954d18d38e2d5c
Preparing for merge from rustc
commit sha 3951a027cd1d74555426daf0c065b745ba60dd0b
Merge from rustc
commit sha cfd7eaa8b7622b327f9800e78a83443b29fab234
Auto merge of #2871 - RalfJung:rustup, r=RalfJung Rustup
commit sha 83453408a0ce91b9e3d3ae6e7f117b1fd28b487d
Validate resolution for SelfCtor too.
push time in 4 hours
push eventrust-lang/git2-rs
commit sha e672ef457a78c045d622e27eed44db4221619530
Fix compilation with specified minimal versions Verified with `cargo +nightly test -Zminimal-versions`.
commit sha d6d3c0b4887c4fea5d8531300f54f704a3506c9d
Merge pull request #960 from alex/fix-minimal-versions Fix compilation with specified minimal versions
push time in 9 hours
PR merged rust-lang/git2-rs
Verified with cargo +nightly test -Zminimal-versions
.
pr closed time in 9 hours
pull request commentrust-lang/cargo
chore: dogfood Cargo `-Zlints` table feature
Just checking in to make sure this isn't waiting on me. This was marked as a Draft, but I'm not clear what's blocking or needs to be done.
comment created time in 9 hours
push eventehuss/rust
commit sha cbb41008fd43b512ffdbd35cebee2e4518b2181e
Fix overflow in error emitter
commit sha 521f4dae1bdf7fe9cf9436ecef9ee7c7442708bf
Auto merge of #109773 - beetrees:set-file-time-improvements, r=Amanieu Add creation time support to `FileTimes` on apple and windows Adds support for setting file creation times on platforms which support changing it directly (currently only Apple and Windows). Based on top of #110093 (which was split from this PR). ACP: rust-lang/libs-team#199 (currently still in progress) Tracking issue: #98245 `@rustbot` label +T-libs-api -T-libs
commit sha 92d6670f72c3771322485bb29c96900932faf3d6
Consider block impls in `lookup_impl_assoc_item_for_trait_ref`
commit sha d58dd10f5ad1e0b91ee6de3b6add0e1a20f8a311
Add slice::{split_,}{first,last}_chunk{,_mut}
commit sha dbc76a766333bf510de601111f31e3eb42fb0434
Add check for empty cfg `all` condition
commit sha 2b1d4bf44e27582242e6a99b51e7759fe8a35acb
Add extra debug assertions for equality for Adt/Variant/FieldDef
commit sha 7047d97e012d5ed90cf2837c361150bc149837b4
Auto merge of #111453 - scottmcm:constify-as-slice, r=Mark-Simulacrum constify `slice_as_chunks` (unstable) Tracking issue: #74985 Nothing complicated required; just adding `const` to the declarations.
commit sha e6a35c49533dd734f178b04677404df0da518737
docs: Add missing period
commit sha 0d7d2cae2f414496113afebfb8fc2f2012e4e701
Set the timestamp of downloaded stage0 files ... ... using server-reported timestamp. This allows us to track changes to the downloaded artifact more easily and in a more reproducible manner. Co-authored-by: Zixing Liu <zixing.liu@canonical.com>
commit sha 940ffdfd1eb938d0c1f0222e8e56c99cac9d4601
Auto merge of #10763 - GuillaumeGomez:unique_cfg_condition, r=Jarcho Add `MINIMAL_CFG_CONDITION` lint I encountered a few cases where some code had: ```rust #[cfg(any(unix))] ``` In this case, the `any` is useless. This lint checks this and also for the `all` condition. ``` changelog: [`unique_cfg_condition`]: Add new `UNIQUE_CFG_CONDITION` lint ```
commit sha e86fd62b6b198584a47798eb271d4b54c4dc96ec
Auto merge of #111524 - scottmcm:escape-using-ascii, r=cuviper `ascii::Char`-ify the escaping code in `core` This means that `EscapeIterInner::as_str` no longer needs unsafe code, because the type system ensures the internal buffer is only ASCII, and thus valid UTF-8. Come to think of it, this also gives it a (non-guaranteed) niche. cc `@BurntSushi` as potentially interested `ascii::Char` tracking issue: #110998
commit sha 2294d81fb3998706784c277154caa772d2bff03c
Rollup merge of #111491 - compiler-errors:nested-fut-must-use, r=wesleywiser Dont check `must_use` on nested `impl Future` from fn Fixes (but does not close, per beta policy) #111484 Also fixes a `FIXME` left in the code about (presumably) false-positives on non-async `#[must_use] fn() -> impl Future` cases, though if that's not desirable to include in the beta backport then I can certainly revert it. Beta nominating as it fixes a beta ICE.
commit sha fa11c9e8ca4e8bf6d1e7d916bb7c0da934d3ded3
Rollup merge of #111606 - jyn514:nightly-diagnostics, r=lcnr very minor cleanups - add `must_use` to `early_error_no_abort` this was already being used at its only callsite, but this ensures that new code remembers to use it if it's called in the future. found this while investigating https://github.com/rust-lang/rust/issues/110090. - remove outdated and incorrect comment in `builder.rs`. `doc_rust_lang_org_channel` doesn't exist in rustdoc, it gets it from an env var instead: https://github.com/rust-lang/rust/blob/b275d2c30b6e88cc48747f349f7137076d450658/src/librustdoc/clean/utils.rs#L569-L573
commit sha 1397827f25b28fb2842e5d708c075a66ba60fde7
Rollup merge of #111619 - cjgillot:profile-pass, r=WaffleLapkin Add timings for MIR passes to profiling report This will help identify which pass is responsible for a regression.
commit sha 13f3585dc6ad4332a171b3ff9a6a3c933241dbb0
Rollup merge of #111652 - clubby789:self-import-improvement, r=compiler-errors Better diagnostic for `use Self::..` Fixes #111627 cc `@petrochenkov,` you might have thoughts on a better way to handle this (https://github.com/rust-lang/rust/issues/63720#issuecomment-591597466)
commit sha e892e32df48f9fc180e085fe0d8a4969525c0130
Rollup merge of #111665 - est31:offset_of_tests, r=WaffleLapkin Add more tests for the offset_of macro Implements what I [suggested in the tracking issue](https://github.com/rust-lang/rust/issues/106655#issuecomment-1535007205), plus some further improvements: * ensuring that offset_of!(Self, ...) works iff inside an impl block * ensuring that the output type is usize and doesn't coerce. this can be changed in the future, but if it is done, it should be a conscious decision * improving the privacy checking test * ensuring that generics don't let you escape the unsized check r? `````@WaffleLapkin`````
commit sha 35bef062c7ea1e583832fe48dec57ef932d7169a
Rollup merge of #111708 - jyn514:delay-span-bug-msg, r=compiler-errors Give a more useful location for where a span_bug was delayed Before: ``` = note: delayed at 0: <rustc_errors::HandlerInner>::emit_diagnostic at ./compiler/rustc_errors/src/lib.rs:1335:29 1: <rustc_errors::Handler>::emit_diagnostic at ./compiler/rustc_errors/src/lib.rs:1124:9 ... ``` After: ``` = note: delayed at compiler/rustc_parse/src/parser/diagnostics.rs:2158:28 0: <rustc_errors::HandlerInner>::emit_diagnostic at ./compiler/rustc_errors/src/lib.rs:1335:29 1: <rustc_errors::Handler>::emit_diagnostic at ./compiler/rustc_errors/src/lib.rs:1124:9 ... ``` This both makes the relevant frame easier to find without having to dig through diagnostic internals, and avoids the weird-looking formatting for the first frame. Found while working on https://github.com/rust-lang/rust/issues/111529.
commit sha 93c031f6e663c428ee6e09b6fae2710ad3c54756
Rollup merge of #111715 - juntyr:const-param-ty-derive-fix, r=Nilstrieb Fix doc comment for `ConstParamTy` derive See https://github.com/rust-lang/rust/pull/111670#discussion_r1196453888 Thanks ````@Nilstrieb```` for the pointer :)
commit sha c453b48fd8d2ef0721b470ad72f261e3bca5a50d
Rollup merge of #111723 - lcnr:overwrite-obligations, r=compiler-errors style: do not overwrite obligations this looks sketchy and would break if the original obligations do not start out empty :grin:
commit sha 9074769dc520c6b5ac92f491add4b2f5dbbca08e
Rollup merge of #111743 - nnethercote:improve-cgu-merging-debug-output, r=lqd Improve cgu merging debug output r? ```@lqd```
push time in 9 hours
Pull request review commentrust-lang/rust
Add new Tier-3 targets: `loongarch64-unknown-none*`
+# `loongarch*-unknown-none*`
This file must be added to SUMMARY.md.
comment created time in 15 hours