profile
viewpoint

csmoe/blog 1

Read rust-lang rfcs everyday.

csmoe/cargo 0

The Rust package manager

csmoe/cargo-generate 0

cargo, make me a project

csmoe/cranelift 0

Cranelift code generator

csmoe/flatbuffers 0

Memory Efficient Serialization Library

csmoe/maskedvbyte-rs 0

Rust bindings to MaskedVByte

csmoe/nvim-lsp 0

Common configurations for Neovim Language Servers

csmoe/polonius 0

Defines the Rust borrow checker.

push eventcsmoe/rust

Christian Duerr

commit sha 298a1fa3bd8ec04350b1bff6a6d92e34abf2e198

Move range_minus_one to pedantic This moves the range_minus_one lint to the pedantic category, so there will not be any warnings emitted by default. This should work around problems where the suggestion is impossible to resolve due to the range consumer only accepting a specific range implementation, rather than the `RangeBounds` trait (see #3307). While it is possible to work around this by extracting the boundary into a variable, I don't think clippy should encourage people to disable or work around lints, but instead the lints should be fixable. So hopefully this will help until a proper implementation checks what the range is used for.

view details

Christian Duerr

commit sha ba2a85dadc61bbfeb483ca0d05ddfda213da1329

Run update_lints

view details

Guillaume Gomez

commit sha 2ca24b618e40e92f8061419928dcd0f1f15527e5

Add margin after doc search results

view details

Takayuki Nakata

commit sha 780a4c87de88d7f747c7847b71c90c8268fe4b66

Fix typo

view details

Christian Duerr

commit sha b3c719608d2c969323714517837f0c68aca23d81

Fix test failures

view details

Christian Duerr

commit sha afa4148cc6dee0f9e0ca5b33f2511b9305d84fcb

Fix tests a bit more

view details

bors

commit sha 7d611d92240d43d9a04cf8db0cb4fb5690f8249c

Auto merge of #5769 - robojumper:match_like_matches_macro, r=phansch new lint: match_like_matches_macro Suggests using the `matches!` macro from `std` where appropriate. `redundant_pattern_matching` has been moved into the `matches` pass to allow suppressing the suggestion where `is_some` and friends are a better replacement. changelog: new lint: `match_like_matches_macro`

view details

Erik Desjardins

commit sha 23d7b3f6f1a345ad95f0812c85613627164b6c39

Remove an unwrap in layout computation

view details

Mohsen Zohrevandi

commit sha 1466598e19321bc6b97aef8271a317e78211d54d

Address review comments

view details

Oliver Scherer

commit sha dd872be5da0887d800ae9a001ec212c7161f661c

Stabilize `transmute` in constants and statics but not const fn

view details

Oliver Scherer

commit sha 1eb0053dcddcb55e46f8ba5b4083f7a3f5872be0

Stabilize `transmute` in constants and statics but not const fn

view details

Dennis Hamester

commit sha 689e360d8273ed13e433ce3e7ae1046e33894234

test: rustdoc-ui: Add issue-74134, replacing test/rustdoc/issue-74134-* As per the discussion in PR #74147, the 4 individual tests are replaced by a single one. The test is expanded to cover all 4 public/private cases, each with and without --document-private-items.

view details

Dennis Hamester

commit sha 97048595e1e7bf3fc270ecf14ccaaac4cc71a241

test: rustdoc-ui: Expand issue-74134 to cover types in a private module

view details

Dan Aloni

commit sha b929f721198c9c9467c0a427a23a974be0baa0d4

Fix try_print_visible_def_path_recur for opt_def_id usage This to fix #74081.

view details

Dennis Hamester

commit sha 87895251ea372a8a776a229c45dd703b4e5b22eb

test: rustdoc-ui: issue-74134: Shorten a too long line

view details

Ralf Jung

commit sha 6bda2e8a7dbd5e0c0263b26ab89f9fe62920824c

update miri

view details

msizanoen1

commit sha 933ba82266da94a812cc3052c6b91b7f8f5b4c35

RISC-V GNU/Linux as host platform

view details

Matthias Krüger

commit sha 1b3bc16533a3e701616648920603c10674eb653b

Fix out of bounds access by checking length equality BEFORE accessing by index. Fixes #5780

view details

Dan Aloni

commit sha f5de23b5c132db8064c98e0e20ef216d6defdc44

Add the test case mentioned in #74236

view details

Andy Russell

commit sha 0979545330689186dff27e22f539c1a06887981f

rustdoc: insert newlines between attributes

view details

push time in 7 days

issue closedrust-lang/rust

rust virtual machine compile /run rust code in debug mode.

In some cases with large amounts of code, compilation can take a long time Even modifying a string takes seconds (Even though my computer is 6 core Cpus)

rust virtual machine(Implemented in pure rust languages) compile /run rust code in debug mode. (we need very fast Develop code) llvm ir compile in release mode. (we need very fast Execution speed)

advantage:

  • compile fast (may be Less than one second)
  • Smart tips fast (less than one second, for now it takes delay of more than 1 second or more)
  • Develop fast (for example developing a website)
  • when debug mode runing,Automatically generate the Release mode of LLVM IR (so we compile release mode code fast!)

disadvantage:

  • debug run code may be Slow down.(but release mode fast)
  • debug run may be consume more memory

closed time in 16 days

zhuxiujia

issue commentrust-lang/rust

rust virtual machine compile /run rust code in debug mode.

cargo check compiles rust code without involvement of llvm cc https://doc.rust-lang.org/edition-guide/rust-2018/cargo-and-crates-io/cargo-check-for-faster-checking.html

zhuxiujia

comment created time in 16 days

push eventcsmoe/rust

Dylan MacKenzie

commit sha 234019758bfff600e8972481158882d9e12280cf

Add peek test for projections

view details

root

commit sha 15e81beb474235d100995f3bcc72d15086a8e29e

moves terminator types to sub module

view details

root

commit sha cf398a33ebff501a01c9c91fe5615992c936d292

removes unnecessary tidy ignore

view details

Aaron Hill

commit sha 36ac08e2643dc5cc035031007a8a36f4c87d3543

Make `fn_arg_names` return `Ident` instead of symbol Also, implement this query for the local crate, not just foreign crates.

view details

Aaron Hill

commit sha fa6a61c68930b390407d73e0ba71f2af5555f0f0

Explain move errors that occur due to method calls involving `self` This is a re-attempt of #72389 (which was reverted in #73594) Instead of using `ExpnKind::Desugaring` to represent operators, this PR checks the lang item directly.

view details

Gary Guo

commit sha 224bc052564117abfb8716772779ade221133395

Fix allow_internal_unstable with rustc_const_unstable

view details

Gary Guo

commit sha fc239e82fe1ef91632dfa858487d89141aaab7a7

Make `likely` and `unlikely` const They are gated by internal feature gate const_likely

view details

Manish Goregaokar

commit sha 8adc781a1ff2fac9e54034ffdfaef90656f047e0

Rollup merge of #72771 - jyn514:rustdoc, r=Manishearth Warn if linking to a private item Closes https://github.com/rust-lang/rust/issues/72769 r? @GuillaumeGomez

view details

Manish Goregaokar

commit sha 38cbf158b8f565af3d2027f96227858cb7abbb57

Rollup merge of #72937 - AdrianCX:master, r=nikomatsakis Fortanix SGX target libunwind build process changes Ticket: https://github.com/fortanix/rust-sgx/issues/174 LLVM related changes (merged): https://github.com/rust-lang/llvm-project/pull/57 Description: libunwind changes needed to run code in sgx environment via rust-sgx. Target that uses this in rust: x86_64-fortanix-unknown-sgx. Without this change, rust std for this toolchain is forced to use a precompiled library loaded via environment variable. With this change we act the same as musl target.

view details

Manish Goregaokar

commit sha f13d09abe1d7a02007ac8591dc409c8d820b903a

Rollup merge of #73485 - estebank:dedup-preds, r=nikomatsakis Perform obligation deduplication to avoid buggy `ExistentialMismatch` Address #59326.

view details

Manish Goregaokar

commit sha 23b0776a594a0728a7706521c5193245de2ea823

Rollup merge of #73529 - pickfire:liballoc-specfromelem-i8, r=cuviper Add liballoc impl SpecFromElem for i8 Speedup vec![1_i8; N] for non-zero element. Before test do_bench_from_elem_i8 ... bench: 130 ns/iter (+/- 7) = 61 MB/s test do_bench_from_elem_u8 ... bench: 121 ns/iter (+/- 4) = 66 MB/s After test do_bench_from_elem_i8 ... bench: 123 ns/iter (+/- 7) = 65 MB/s test do_bench_from_elem_u8 ... bench: 121 ns/iter (+/- 5) = 66 MB/s No speed difference if element is already zero. ```rust #[bench] fn do_bench_from_elem_i8(b: &mut Bencher) { b.bytes = 8 as u64; b.iter(|| { let dst = ve::vec![10_i8; 100]; assert_eq!(dst.len(), 100); assert!(dst.iter().all(|x| *x == 10)); }) } ``` As suggested by @cuviper https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/SpecForElem.20for.20other.20integers r? @cuviper CC @joshtriplett Edit: Wow, I just realized both reviewers are Josh.

view details

Manish Goregaokar

commit sha 92af945256913dbec2c679a06e154469d60a0d7e

Rollup merge of #73579 - RalfJung:doc-missing-links, r=shepmaster add missing doc links The doc comments contain ``[`size_of_val`]`` but the link target was missing.

view details

Manish Goregaokar

commit sha dfbba65786279b5f73cbf26bff4f6d984cb77105

Rollup merge of #73627 - ssomers:btree_iter_min_max, r=Mark-Simulacrum Shortcuts for min/max on double-ended BTreeMap/BTreeSet iterators Closes #59947: a performance tweak that might benefit some. Optimizes `min` and `max ` on all btree double-ended iterators that do not drop, i.e. the iterators created by: - `BTreeMap::iter` - `BTreeMap::iter_mut` - `BTreeMap::keys` and `BTreeSet::iter` - `BTreeMap::range` and `BTreeSet::range` - `BTreeMap::range_mut` Also in these (currently) single-ended iterators, but obviously for `min` only: - `BTreeSet::difference` - `BTreeSet::intersection` - `BTreeSet::symmetric_difference` - `BTreeSet::union` Did not do this in iterators created by `into_iter` to preserve drop order, as outlined in #62316. Did not do this in iterators created by `drain_filter`, possibly to preserve drop order, possibly to preserve predicate invocation, mostly to not have to think about it too hard (I guess maybe it wouldn't be a change for `min`, which is the only shortcut possible in this single-ended iterator).

view details

Manish Goregaokar

commit sha c18e919a79c701d25b33cffa0a183ee21085f2e6

Rollup merge of #73691 - ajpaverd:bootstrap-windows-73689, r=Mark-Simulacrum Bootstrap: detect Windows based on sys.platform Closes #73689.

view details

Manish Goregaokar

commit sha 8d9c00d7f1b00113d1052d1e44948ec6e8597a76

Rollup merge of #73694 - poliorcetics:self-upper-keyword, r=Mark-Simulacrum Document the Self keyword Partial fix of #34601. Document the `Self` keyword. This contains simple examples of the places where `Self` can be used.

view details

Manish Goregaokar

commit sha bc10bb02f5a763ffeea906c48f90114e4bfab625

Rollup merge of #73718 - poliorcetics:super-keyword, r=shepmaster Document the super keyword Partial fix of #34601. Quite short, just a small example and a link to the reference. @rustbot modify labels: T-doc,C-enhancement

view details

Manish Goregaokar

commit sha 83f6d0a93f8159fe18b4a9ccfaf395a0fbabf07c

Rollup merge of #73728 - oli-obk:const_prop_cleanup, r=wesleywiser Document some invariants correctly/more r? @wesleywiser

view details

Manish Goregaokar

commit sha 7926c64642d070fe400dda1a53b4183f415d8445

Rollup merge of #73738 - nbdd0121:comment, r=nikomatsakis Remove irrelevant comment Iterator is no longer a lang item since 216e72f8d9499d012e23bc4563215e693fcb4f35.

view details

Manish Goregaokar

commit sha 50026aed2493da03cb0c669497ca489d57c93729

Rollup merge of #73765 - kraai:remove-blank-line, r=jonas-schievink Remove blank line

view details

Simonas Kazlauskas

commit sha df88972f8ce9ddbebec6d551810f7127fe25d2a3

Update psm version This new version includes a fix for building on aarch64 windows.

view details

push time in 17 days

issue commentrust-lang/rust

suggest `await` for future-related type errors

@tmandry yes, in slow progress since time is tough these days.

nikomatsakis

comment created time in 21 days

push eventcsmoe/rust-analyzer

Leander Tentrup

commit sha 65943c058583f912175f2cfde64ff2a0d92809b6

Remove redundancy in syntax highlighting tests

view details

Paul Daniel Faria

commit sha 3937b225e7918ae6d75849a0959754af43fbf08c

Change management of test cfg to better support json projects

view details

Leander Tentrup

commit sha 3aaaf924cb649ecc3b1a59653f47d1735fa7cb5d

Fix bug in lexer for format specifier where the `type` and `width` were not correctly distinguished

view details

bors[bot]

commit sha c59ffac4c832e71cd4dadd6a8ec46918891985a2

Merge #4780 4780: Fix VSCode settings r=SomeoneToIgnore a=vincentisambart closes #4779 #4779 was reproducing every time, so doing a bisect I found out the problem to be coming from #4730. The only change to the extension that #4730 included was changes to editors/code/package.json. So I tried modifying those changes a bit and got it working. Co-authored-by: Vincent Isambart <vincent.isambart@gmail.com>

view details

Jeremy Kolb

commit sha 0d01be7e186bf8c0676ddfa5ae719852315a936b

Update quote

view details

bors[bot]

commit sha d6967762dd1fff3cfb65d481ba5a169143205c0e

Merge #4788 4788: Update quote r=kjeremy a=kjeremy Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>

view details

bors[bot]

commit sha b366b98a9e8f70711eba6965817a063565009f6a

Merge #4787 4787: Fix bug in lexer for format specifier r=matklad a=ltentrup The `type` and `width` were not correctly distinguished. Fixes #4696. Co-authored-by: Leander Tentrup <leander.tentrup@gmail.com>

view details

bors[bot]

commit sha bb0d4600fff40565ed679c0d879c7a9256570b61

Merge #4770 4770: Clean up handling of int/float literal types r=matklad a=flodiebold 'Unknown' int/float types actually never exist as such, they get replaced by type variables immediately. So the whole `Uncertain<IntTy>` thing was unnecessary and just led to a bunch of match branches that were never hit. Co-authored-by: Florian Diebold <flodiebold@gmail.com>

view details

bors[bot]

commit sha d8552d114c3b2cedbc485ebe26d7b784c0845bd8

Merge #4781 4781: Remove redundancy in syntax highlighting tests r=matklad a=ltentrup Follow up from #4683. Improves syntax highlighting testing by introducing a function that contains the boilerplate comparison code. Keeps the `ra_fixture` argument in the first position, thus, the editor syntax highlighting injection still works. Co-authored-by: Leander Tentrup <leander.tentrup@gmail.com>

view details

Aleksey Kladov

commit sha ee8dec5dc11cfecf219b6510b0eadd9691a82ba5

IDE API

view details

Aleksey Kladov

commit sha cc07c82fefb2affc1772e12b8357471cccc8d578

Preconditions style

view details

bors[bot]

commit sha 3623c1663f9135504c943c44212e99e5198b16a5

Merge #4792 4792: Document more knowledge r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>

view details

Aleksey Kladov

commit sha 4968321706fc5c24d9f2c35cdbbd5e9047c97c96

Don't @ people in commit messages

view details

vsrs

commit sha b7db9f058ad51b7ba47db02b581a76b6756d74e8

Apply suggestions from code review

view details

bors[bot]

commit sha a5f427ced3ee0ec27041f0b7632b4baae6a736b2

Merge #4793 4793: Don't @ people in commit messages r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>

view details

bors[bot]

commit sha 6e4fca5882bdd6d00dfcc384473c1f612e00baa2

Merge #4773 4773: Run|Debug hover actions. r=matklad a=vsrs ![hover_actions_run](https://user-images.githubusercontent.com/62505555/83335644-dfc1f780-a2b6-11ea-820b-ccaa82290e7d.gif) This hover actions work exactly like corresponding lenses. Co-authored-by: vsrs <vit@conrlab.com>

view details

unexge

commit sha c5d5d2185816d90ad1420fe544d93150cb9c9a48

Add `FieldShorthand` variant to `NameClass`

view details

Aleksey Kladov

commit sha 97ea2dfc4b6b49a175d4d0f85b37c77bd1ea3f3b

Move to a dedicated file

view details

Aleksey Kladov

commit sha cbc5eb87386e132c63ec33ff496019fad7478fe8

Refactor

view details

bors[bot]

commit sha ab86f15ff2c237ac3f4237961e4484ae71cedf00

Merge #4794 4794: Tweak release r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>

view details

push time in 22 days

push eventcsmoe/rust

Esteban Küber

commit sha 40b27ff5f3828abd8d1ab951853bf70b5fbf6ed5

review comments: add comment

view details

Eric Huss

commit sha 5a9ff052b4879e4ef6748c2f85563a7db0548c0b

Disable core benches on wasm (benches not supported).

view details

bors

commit sha 036b5fec49aa5d5143b83360442400d1e83ccefa

Auto merge of #73446 - ecstatic-morse:issue-73431, r=pnkfelix Make novel structural match violations not a `bug` Fixes (on master) #73431. Ideally, `CustomEq` would emit a strict subset of the structural match errors that are found by `search_for_structural_match_violation`, since it allows more cases due to value-based reasoning. However, const qualification is more conservative than `search_for_structural_match_violation` around associated constants, since qualification does not try to substitute type parameters. In the long term, we should probably make const qualification work for generic associated constants, but I don't like extending its capabilities even further. r? @pnkfelix

view details

Manish Goregaokar

commit sha 9d388d465d3ecab18843ae356256060a3612fce4

Rollup merge of #70551 - mark-i-m:ty-err-2, r=varkor Make all uses of ty::Error delay a span bug r? @eddyb A second attempt at https://github.com/rust-lang/rust/pull/70245 resolves https://github.com/rust-lang/rust/issues/70866

view details

Manish Goregaokar

commit sha 45d033b21cdd009961860e62e1d1c785ecb2af41

Rollup merge of #71338 - estebank:recursive-impl-trait, r=nikomatsakis Expand "recursive opaque type" diagnostic Fix #70968, partially address #66523.

view details

Manish Goregaokar

commit sha 39f8784eb6056c21c120bfa93bbec73e19773727

Rollup merge of #71976 - mibac138:let-recovery, r=estebank Improve diagnostics for `let x += 1` Fixes(?) #66736 The code responsible for the `E0404` errors is [here](https://github.com/rust-lang/rust/blob/master/src/librustc_parse/parser/ty.rs#L399-L424) which I don't think can be easily modified to prevent emitting an error in one specific case. Because of this I couldn't get rid of `E0404` and instead added `E0067` along with a help message which will fix the problem. r? @estebank

view details

Manish Goregaokar

commit sha 49ab0cab618d9d1cb49220d7c253556a56148283

Rollup merge of #72279 - RalfJung:raw-ref-macros, r=nikomatsakis add raw_ref macros In https://github.com/rust-lang/rust/issues/64490, various people were in favor of exposing `&raw` as a macro first before making the actual syntax stable. So this PR (unstably) introduces those macros. I'll create the tracking issue if we're okay moving forward with this.

view details

Manish Goregaokar

commit sha 9262fc2a68133330a8f78c73afa54b3ff09724b5

Rollup merge of #72628 - MikailBag:array-default-tests, r=shepmaster Add tests for 'impl Default for [T; N]' Related: #71690. This pull request adds two tests: - Even it T::default() panics, no leaks occur. - [T; 0] is Default even if T is not. I believe at some moment `Default` impl for arrays will be rewritten to use const generics instead of macros, and these tests will help to prevent behavior changes.

view details

Manish Goregaokar

commit sha 40fd2bdcfec7a30a2cce0d4a2cc08d09e64cabeb

Rollup merge of #72804 - estebank:opaque-missing-lts-in-fn-2, r=nikomatsakis Further tweak lifetime errors involving `dyn Trait` and `impl Trait` in return position * Suggest substituting `'static` lifetime in impl/dyn `Trait + 'static` instead of `Trait + 'static + '_` * When `'static` is explicit, also suggest constraining argument with it * Reduce verbosity of suggestion message and mention lifetime in label * Tweak output for overlapping required/captured spans * Give these errors an error code Follow up to #72543. r? @nikomatsakis

view details

Manish Goregaokar

commit sha e0b59b2c07adec376b7c57fb3d81726b6bc2822d

Rollup merge of #72814 - RalfJung:mir-visir-terminator, r=oli-obk remove visit_terminator_kind from MIR visitor For some reason, we had both `visit_terminator` and `visit_terminator_kind`. In contrast, for `Statement` we just have `visit_statement`. So this cleans things up by removing `visit_terminator_kind` and porting its users to `visit_terminator`.

view details

Manish Goregaokar

commit sha e1549786ff6105af4f3e9be30496c812b7ca71b3

Rollup merge of #72836 - poliorcetics:std-time-os-specificities, r=shepmaster Complete the std::time documentation to warn about the inconsistencies between OS Fixes #48980. I put the new documentation in `src/libstd/time.rs` at the module-level because it affects all types, even the one that are not directly system dependents if they are used with affected types, but there may be a better place for it.

view details

Manish Goregaokar

commit sha bf59152c01d9ffc4ceeb982e26b3df2354ebede6

Rollup merge of #72968 - integer32llc:docs-arrow-keys, r=GuillaumeGomez Only highlight doc search results via mouseover if mouse has moved ## What happens - Go to https://doc.rust-lang.org/stable/std/index.html - Put your mouse cursor somewhere in the middle where search results will appear and then don't move the mouse - Press 's' to focus the search box - Type a query that brings up enough search results to go under where your mouse cursor is - Press the down arrow - The search result that is one below where your mouse cursor is will be highlighted. ## What I expected When not currently using the mouse, I expect doing a search and then pressing the down arrow to always highlight the first search result immediately below the search box. ## The fix This feels a bit hacky to me; I'm open to other solutions. This introduces a global JS var that keeps track of whether the person searching has moved their mouse after doing a search or not, and only uses the mouse position to highlight search results if the person HAS moved the mouse AFTER doing a search.

view details

Manish Goregaokar

commit sha 0e332e9e3c4a33458cac1801f59c2d0a3ca28484

Rollup merge of #73034 - doctorn:nomangle-inline-linkage, r=matthewjasper Export `#[inline]` fns with extern indicators In ancient history (#36280) we stopped `#[inline]` fns being codegened if they weren't used. However, - #72944 - #72463 observe that when writing something like ```rust #![crate_type = "cdylib"] #[no_mangle] #[inline] pub extern "C" fn foo() { // ... } ``` we really _do_ want `foo` to be codegened. This change makes this the case. Resolves #72944, resolves #72463 (and maybe some more)

view details

Manish Goregaokar

commit sha ed92b6a63304dfbc0b8a29aa4cf89f9ce814b27b

Rollup merge of #73315 - GuillaumeGomez:clean-up-config-strs, r=kinnison Clean up some weird command strings r? @kinnison

view details

Manish Goregaokar

commit sha f4b5f581a9c2604a951043decd6acf4e2852fe35

Rollup merge of #73320 - estebank:type-param-sugg-more, r=davidtwco Make new type param suggestion more targetted Do not suggest new type param when encountering a missing type in an ADT field with generic parameters. Fix #72640.

view details

Manish Goregaokar

commit sha 9ca811772c2fddefeda4567cdfb8c790c94e0085

Rollup merge of #73361 - estebank:non-primitive-cast, r=davidtwco Tweak "non-primitive cast" error - Suggest borrowing expression if it would allow cast to work. - Suggest using `<Type>::from(<expr>)` when appropriate. - Minor tweak to `;` typo suggestion. Partily address #47136.

view details

Manish Goregaokar

commit sha 9f8f994ad9cc996b304a90e5ca7c1d894c7eff4d

Rollup merge of #73425 - poliorcetics:zeroed-functions-pointers, r=dtolnay Mention functions pointers in the documentation Fixes #51615. This mentions function pointers in the documentation for `core::mem::zeroed`, adding them to the list of types that are **always** wrong when zeroed, with `&T` and `&mut T`. @rustbot modify labels: T-doc, C-enhancement, T-libs

view details

Manish Goregaokar

commit sha 1db7dc4794f0a8cf2fafb26ed97f2067321b198c

Rollup merge of #73428 - pierwill:patch-1, r=jonas-schievink Fix typo in librustc_ast docs Fixed sentence by removing a word.

view details

Manish Goregaokar

commit sha f15b346f3adf03a976e9468401e443a3ecb61a71

Rollup merge of #73447 - lzutao:stabilize-result_as_deref, r=dtolnay Improve document for `Result::as_deref(_mut)` methods cc #50264

view details

Manish Goregaokar

commit sha 6c53a0c2b5c73a0ea0750dd6c84298ce9348ecff

Rollup merge of #73476 - JakobDegen:should_panic_rustdoc, r=GuillaumeGomez Added tooltip for should_panic code examples This change adds a tooltip to the documentation for `should_panic` examples. It currently displays identically to `compile_fail` examples, save for the changed text. It may be helpful to change the color that this displays in to make it visually more clear what is going on, but I'm unsure if additional colors wouldn't just be distracting. I brought this [up on internals](https://internals.rust-lang.org/t/indicating-that-an-example-is-should-panic-in-docs/12544) a few days ago, and there seemed to be a mild positive response to it.

view details

push time in 24 days

push eventcsmoe/rust

Benoît du Garreau

commit sha ef485c6fa97a562b0bc559ffbe38fee9bf1f745b

Impl Error for Infallible

view details

Ralf Jung

commit sha 58ae4a9a5388d9c2c5e4ac435ea69a2b456ab008

de-promote Duration::from_secs

view details

flip1995

commit sha 17d877cce28b22b9b345ec7ef8b14859d8b165c4

Update contributing section about syncing Clippy

view details

Steven Fackler

commit sha 2ce3f85d46edbf5105f2e93d2cbe56ad777b41e6

Tweak and stabilize AtomicN::fetch_update

view details

Philipp Krones

commit sha c1698fedeb69109f9b1aebc0bfccd9bf3112ccad

Apply suggestions from code review Co-authored-by: Phil Hansch <dev@phansch.net>

view details

Vadim Petrochenkov

commit sha 2d10babb71f6658c39279425ec5cda11a28d3af4

Stabilize fn-like proc macros in expression, pattern and statement positions

view details

Steven Fackler

commit sha 31c820552350e3f686a6f353982f0f31ecbaf4a7

Update src/libcore/sync/atomic.rs Co-authored-by: Ralf Jung <post@ralfj.de>

view details

Markus Westerlind

commit sha 1d8489c150df7d0e751f7c438541036df1a9ac5e

perf: Revert accidental inclusion of a part of #69218 This was accidentally included in #69494 after a rebase and given how much `inflate` and `keccak` stresses the obligation forest seems like a likely culprit to the regression in those benchmarks. (It is necessary in #69218 as obligation forest needs to accurately track the root variables or unifications will get lost)

view details

Guillaume Gomez

commit sha 7e855b59151f2e5c2a58fe422a273e997df14b24

Clean up rustdoc source code

view details

Juan Aguilar Santillana

commit sha e9c78db0861f6495f903a41e087c9628d777b87b

Update annotate-snippets-rs to 0.8.0

view details

Erin Power

commit sha bb433914b5bdd6898200f8c1cadcfec27fbf7a26

Update RELEASES.md for 1.44.0

view details

Guillaume Gomez

commit sha c8fb0d7ef38957cd2b8f6e5b9b7ea47eaa6cca28

End unification of exit codes in librustdoc

view details

XAMPPRocky

commit sha bd5ed9e62f330971523fb75390b4a375bc1d875c

Update RELEASES.md Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>

view details

Bastian Kauschke

commit sha a8c152dfc921e8ec2c00f65e7c731197e522a96d

add regression tests + improve method name

view details

Juan Aguilar Santillana

commit sha f16060f386c3ceee257b2c38ce5072b2d0943b6a

Add UI test where `annotated_files` count is > 1 #64205

view details

Mark Rousskov

commit sha 318b8b6aabb2ef0fae0c0aafbba2c7ad97fb3a2a

Add hint for collect type

view details

Bastian Kauschke

commit sha 3f661d25f9ce3b5ac6139c8d8bf4614b55dca5be

borrowck `DefId` -> `LocalDefId`

view details

Philipp Krones

commit sha d4092ace00d60634bcdc22135d82e05a53971263

Merge pull request #5584 from Mark-Simulacrum/beta-next Add hint for collect type

view details

Petr Hosek

commit sha c85768ed71eb09689e2065b122310dad2e1c42f6

Update the Fuchsia linker defaults This updates the linker defaults aligning them with Clang. Specifically, we use 4K pages on all platforms, we always use BIND_NOW, we prefer all loadable segments be separate and page aligned, and we support RELR relocations.

view details

csmoe

commit sha 29a41f0d86b82c2731cc2ab8c8a26272e773e4c3

add ui test for issue-69276

view details

push time in 2 months

pull request commentrust-lang/rust

Spell out `Self` in async function return

@estebank moved to E0760.

csmoe

comment created time in 2 months

push eventcsmoe/rust

csmoe

commit sha 9be635306cdf06dde62e2c1ebaadcdc33f44f45c

resolve error code e0760

view details

push time in 2 months

pull request commentrust-lang/rust

Spell out `Self` in async function return

This PR was approved, but dequeued from the merging list as error-code conflict. r? @estebank

csmoe

comment created time in 2 months

issue commentrust-lang/rust

error: internal compiler error

@llxxbb thanks :) confirmed, this ice is duplicated of https://github.com/rust-lang/rust/issues/72766, which has a pending fix.

llxxbb

comment created time in 2 months

issue closedrust-lang/rust

error: internal compiler error

error: internal compiler error: src\librustc_middle\ich\impls_ty.rs:94: StableHasher: unexpected region '_#90r

thread 'rustc' panicked at 'Box<Any>', src\librustc_errors\lib.rs:907:9 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.45.0-nightly (4bd32c980 2020-05-29) running on x86_64-pc-windows-msvc

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type lib

note: some of the compiler flags provided by cargo are hidden

error: aborting due to previous error

error: could not compile nature.

closed time in 2 months

llxxbb

issue commentrust-lang/rust

error: internal compiler error

Okay, thanks for your reporting. Feel free to reopen if this ice happens again, and don't forget to report with backtrace :)

llxxbb

comment created time in 2 months

issue commentrust-lang/rust

error: internal compiler error

Seems duplicate of https://github.com/rust-lang/rust/issues/72766 Could you append the backtrace?

llxxbb

comment created time in 2 months

PR opened rust-lang/rust

Await on mismatched future types

Closes #61076 r? @ghost

+58 -4

0 comment

2 changed files

pr created time in 2 months

push eventcsmoe/rust

csmoe

commit sha ccbc849eb1d341e54e18c77e3382165ed2e1049b

append more test cases for issue 61076

view details

push time in 2 months

push eventcsmoe/rust

CAD97

commit sha b70e7fd0db5d23a2e045e89b8bc7e5564acce9b7

Add inherent impls for unchecked math intrinsics

view details

CAD97

commit sha 2fcfd233f755c548ddc4d5fda517a7dbb9f04ba3

Redesign the Step trait

view details

CAD97

commit sha f34322d71f6ba523fb2c0ebef258d7e51a7531c8

Adjust Step::forward_checked docs for large types Co-Authored-By: Nadrieril Feneanar <nadrieril@users.noreply.github.com>

view details

Josh Stone

commit sha b0fb57bd8d18946787a79d1244154f2512dcf15b

impl From<Cow> for boxed slices and strings These forward `Borrowed`/`Owned` values to existing `Box::from` impls. - `From<Cow<'_, [T]>> for Box<[T]>` - `From<Cow<'_, str>> for Box<str>` - `From<Cow<'_, CStr>> for Box<CStr>` - `From<Cow<'_, OsStr>> for Box<OsStr>` - `From<Cow<'_, Path>> for Box<Path>`

view details

Josh Stone

commit sha 6d40751b37ef453bee5d8a9c47b00ef205d61738

impl From<Cow> for Rc and Arc These forward `Borrowed`/`Owned` values to existing `From` impls. impl<'a, B> From<Cow<'a, B>> for Rc<B> where B: ToOwned + ?Sized, Rc<B>: From<&'a B> + From<B::Owned>, impl<'a, B> From<Cow<'a, B>> for Arc<B> where B: ToOwned + ?Sized, Arc<B>: From<&'a B> + From<B::Owned>,

view details

Josh Stone

commit sha 23f71fe5b518c6136990f79733155b4fa1314d2b

Add tests from Cow

view details

Mohsen Zohrevandi

commit sha db1fbd4a11db579436f68be3a8f5fe03484aa45d

Process termination tests Related issues: - https://github.com/fortanix/rust-sgx/issues/109

view details

Josh Stone

commit sha 22efd959109b9a231edbc81a8bc818eaa5763e78

Bless From<Cow> UI changes

view details

Donough Liu

commit sha 079817d62481ca8d84ca87dde9a276a1d5d663cf

Make `prefix` immutable

view details

Matthew Jasper

commit sha cb2703945ca3c6c9664a5a9ec606430cb79ba2c8

Use min_specialization in liballoc - Remove a type parameter from `[A]RcFromIter`. - Remove an implementation of `[A]RcFromIter` that didn't actually specialize anything. - Remove unused implementation of `IsZero` for `Option<&mut T>`. - Change specializations of `[A]RcEqIdent` to use a marker trait version of `Eq`. - Remove `BTreeClone`. I couldn't find a way to make this work with `min_specialization`. - Add `rustc_unsafe_specialization_marker` to `Copy` and `TrustedLen`.

view details

rail

commit sha ad9ad6f402e3e15706519e59ef111a941d28d5af

Don't negate resulted offsets when `offset` is subtraction by 0

view details

rail

commit sha 37261a904ce2fbd4137180500c57f75f29945828

Print 0 when `end` and `offset` is 0, and also simplify the suggestion

view details

rail

commit sha 75ad839cd26c1da17fe6ba3aae1153ee96de26c8

Do not trigger `manual_memcpy` for `RangeTo`

view details

rail

commit sha c94f0f49f8e025aae11534f9f2b4c59c34b1edb8

Remove all `ref` keyword

view details

rail

commit sha 7dd0f3459f558c1b557223a042f549b378cacae9

Refactor `if` to use `else` and iterator combinators

view details

rail

commit sha 3f1e51b3f4a7bfb42c442caf2cb836ba62e2ba53

Rename `negate` to `sign` and make it strong types then make `art1` &str

view details

rail

commit sha ecb472c052c746d87ce26f6b184f2c5f11537e0c

Use `fn` instead of closures where unnecessary

view details

rail

commit sha aab80eedf3e271ada92a6509727461cc3aa6bb12

Extract `get_fixed_offset_var`` from `fetch_cloned_fixed_offset_var`

view details

rail

commit sha 3d121d53af9a73ba11226715cd8132f6981ffee9

Extract roles getting indexes from `get_indexed_assignments`

view details

rail

commit sha 4f2617c059f693ec72e5d31ad31fd85eba019ab1

Separate getting offsets and getting index expressions

view details

push time in 2 months

pull request commentrust-lang/rust

Spell out `Self` in async function return

@tmandry ping

csmoe

comment created time in 2 months

delete branch csmoe/rust

delete branch : issue-70818

delete time in 2 months

issue closedrust-lang/rust

semantic analysis of code

can rustc prove that this is correct or wrong?

fn add(a: i64, b: i64) -> i64 {
    a - b
}

add the ability analyze identifiers and comments to match with the implementation.

closed time in 2 months

delata

issue commentrust-lang/rust

semantic analysis of code

https://internal.rust-lang.org should be a good place to discuss such kind things.

delata

comment created time in 2 months

issue closedrust-lang/rust

StableHasher ICE in nightly-2020-05-17

<!-- Thank you for finding an Internal Compiler Error! 🧊 If possible, try to provide a minimal verifiable example. You can read "Rust Bug Minimization Patterns" for how to create smaller examples.

http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/

--> I cannot currently create a reproducible example of this. This ICE was introduced between nightly-2020-05-16 and nightly-2020-05-17, and exists through to (current) nightly-2020-05-25.

Meta

<!-- If you're using the stable version of the compiler, you should also check if the bug also exists in the beta or nightly versions. -->

rustc --version --verbose:

rustc 1.45.0-nightly (dd927a5b0 2020-05-16)
binary: rustc
commit-hash: dd927a5b0f29342f7ad919fb52ca29510d2e7362
commit-date: 2020-05-16
host: x86_64-unknown-linux-gnu
release: 1.45.0-nightly
LLVM version: 9.0

Error output

error: internal compiler error: src/librustc_middle/ich/impls_ty.rs:97: StableHasher: unexpected region '_#1r

thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:907:9

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin

note: some of the compiler flags provided by cargo are hidden

<!-- Include a backtrace in the code block by setting RUST_BACKTRACE=1 in your environment. E.g. RUST_BACKTRACE=1 cargo build. --> <details><summary><strong>Backtrace</strong></summary> <p>

   0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86
   1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66
   2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:78
   3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
   4: core::fmt::write
             at src/libcore/fmt/mod.rs:1069
   5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1537
   6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
   7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
   8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:198
   9: std::panicking::default_hook
             at src/libstd/panicking.rs:218
  10: rustc_driver::report_ice
  11: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:481
  12: std::panicking::begin_panic
  13: rustc_errors::HandlerInner::bug
  14: rustc_errors::Handler::bug
  15: rustc_middle::util::bug::opt_span_bug_fmt::{{closure}}
  16: rustc_middle::ty::context::tls::with_opt::{{closure}}
  17: rustc_middle::ty::context::tls::with_opt
  18: rustc_middle::util::bug::opt_span_bug_fmt
  19: rustc_middle::util::bug::bug_fmt
  20: rustc_middle::ich::impls_ty::<impl rustc_data_structures::stable_hasher::HashStable<rustc_middle::ich::hcx::StableHashingContext> for rustc_middle::ty::sty::RegionKind>::hash_stable
  21: rustc_middle::ty::sty::_DERIVE_rustc_data_structures_stable_hasher_HashStable_rustc_middle_ich_StableHashingContext_ctx_FOR_TyKind::<impl rustc_data_structures::stable_hasher::HashStable<rustc_middle::ich::hcx::StableHashingContext> for rustc_middle::ty::sty::TyKind>::hash_stable
  22: rustc_query_system::dep_graph::dep_node::DepNode<K>::construct
  23: rustc_query_system::query::plumbing::get_query_impl
  24: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::error_reporting::suggestions::InferCtxtExt>::suggest_await_before_try
  25: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::error_reporting::InferCtxtExt>::report_selection_error
  26: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::error_reporting::InferCtxtExt>::report_fulfillment_errors
  27: rustc_typeck::check::FnCtxt::check_argument_types
  28: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::confirm_builtin_call
  29: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::check_call
  30: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  31: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  32: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt>::check_match
  33: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  34: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  35: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  36: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  37: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  38: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  39: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_coercable_to_type
  40: rustc_typeck::check::FnCtxt::check_decl_local
  41: rustc_typeck::check::FnCtxt::check_stmt
  42: rustc_typeck::check::FnCtxt::check_block_with_expected
  43: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  44: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  45: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  46: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  47: rustc_typeck::check::FnCtxt::check_block_with_expected
  48: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  49: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  50: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_return_expr
  51: rustc_typeck::check::check_fn
  52: rustc_typeck::check::closure::<impl rustc_typeck::check::FnCtxt>::check_expr_closure
  53: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  54: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  55: rustc_typeck::check::FnCtxt::check_argument_types
  56: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::confirm_builtin_call
  57: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::check_call
  58: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  59: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  60: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_return_expr
  61: rustc_typeck::check::check_fn
  62: rustc_middle::ty::context::GlobalCtxt::enter_local
  63: rustc_typeck::check::typeck_tables_of
  64: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::typeck_tables_of>::compute
  65: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  66: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  67: rustc_data_structures::stack::ensure_sufficient_stack
  68: rustc_query_system::query::plumbing::get_query_impl
  69: rustc_mir_build::hair::cx::Cx::new
  70: rustc_middle::ty::context::GlobalCtxt::enter_local
  71: rustc_mir_build::build::mir_built
  72: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::mir_built>::compute
  73: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  74: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  75: rustc_data_structures::stack::ensure_sufficient_stack
  76: rustc_query_system::query::plumbing::get_query_impl
  77: rustc_mir::transform::check_unsafety::unsafety_check_result
  78: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::unsafety_check_result>::compute
  79: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  80: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  81: rustc_data_structures::stack::ensure_sufficient_stack
  82: rustc_query_system::query::plumbing::get_query_impl
  83: rustc_mir::transform::mir_const
  84: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::mir_const>::compute
  85: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  86: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  87: rustc_data_structures::stack::ensure_sufficient_stack
  88: rustc_query_system::query::plumbing::get_query_impl
  89: rustc_mir::transform::mir_validated
  90: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::mir_validated>::compute
  91: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  92: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  93: rustc_data_structures::stack::ensure_sufficient_stack
  94: rustc_query_system::query::plumbing::get_query_impl
  95: rustc_mir::borrow_check::mir_borrowck
  96: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::mir_borrowck>::compute
  97: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  98: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  99: rustc_query_system::query::plumbing::get_query_impl
 100: rustc_typeck::collect::type_of::type_of
 101: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
 102: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
 103: rustc_data_structures::stack::ensure_sufficient_stack
 104: rustc_query_system::query::plumbing::get_query_impl
 105: rustc_middle::ty::util::<impl rustc_middle::ty::context::TyCtxt>::try_expand_impl_trait_type::OpaqueTypeExpander::expand_opaque_ty

</p> </details>

closed time in 2 months

VShell

issue commentrust-lang/rust

StableHasher ICE in nightly-2020-05-17

Duplicate of #72442

VShell

comment created time in 2 months

issue closedrust-lang/rust

Nightly error: internal compiler error: src/librustc_middle/ich/impls_ty.rs:94: StableHasher: unexpected region '_#10r

I tried this code (using cargo test to run the test):

use std::error::Error;
use async_trait::async_trait;

#[async_trait]
pub trait Transform2: Send + Sync {
    async fn transform(&self) -> Result<(), Box<dyn Error>>;
    fn get_name(&self) -> &'static str;
}

pub struct Printer {}

impl Printer {
    pub fn new() -> Printer {
        Printer{}
    }
}

#[async_trait]
impl Transform2 for Printer {
    async fn transform(&self) -> Result<(), Box<dyn Error>> {
        unimplemented!()
    }
    fn get_name(&self) -> &'static str {
        unimplemented!()
    }
}

#[tokio::test(threaded_scheduler)]
async fn test_compiler_script() -> Result<(), Box<dyn Error>> {
    let transforms: Vec<dyn Transform2> = vec![Printer::new()];

    return Ok(())
}

From my cargo.toml:

[dependencies]
async-trait = "0.1.30"
tokio = { version = "0.2.20", features = ["full", "macros"] }

I expected to see this happen:

This code should not compile and should produce some errors along the following (as it does on stable):

error[E0277]: the size for values of type `dyn Transform2` cannot be known at compilation time
  --> src/main.rs:30:21
   |
30 |     let transforms: Vec<dyn Transform2> = vec![Printer::new()];
   |                     ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `std::marker::Sized` is not implemented for `dyn Transform2`
   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
   = note: required by `std::vec::Vec`
... [TRUNCATED for brevity]...

Instead, this happened: error: internal compiler error: src/librustc_middle/ich/impls_ty.rs:94: StableHasher: unexpected region '_#10r The rust compiler throws an internal error and panics.

Meta

rustc --version --verbose: rustc 1.45.0-nightly (46e85b432 2020-05-24) binary: rustc commit-hash: 46e85b4328fe18492894093c1092dfe509df4370 commit-date: 2020-05-24 host: x86_64-apple-darwin release: 1.45.0-nightly LLVM version: 10.0

Backtrace:

./.cargo/bin/cargo test --color=always --no-run --package dummy --bin dummy test_compiler_script -- --exact
   Compiling dummy v0.1.0 (.../CLionProjects/dummy)
error: internal compiler error: src/librustc_middle/ich/impls_ty.rs:94: StableHasher: unexpected region '_#10r

thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:907:9
stack backtrace:
   0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
   1: core::fmt::write
   2: std::io::Write::write_fmt
   3: std::panicking::default_hook::{{closure}}
   4: std::panicking::default_hook
   5: rustc_driver::report_ice
   6: std::panicking::rust_panic_with_hook
   7: std::panicking::begin_panic
   8: rustc_errors::HandlerInner::bug
   9: rustc_errors::Handler::bug
  10: rustc_middle::util::bug::opt_span_bug_fmt::{{closure}}
  11: rustc_middle::ty::context::tls::with_opt::{{closure}}
  12: rustc_middle::ty::context::tls::with_opt
  13: rustc_middle::util::bug::opt_span_bug_fmt
  14: rustc_middle::util::bug::bug_fmt
  15: rustc_middle::ich::impls_ty::<impl rustc_data_structures::stable_hasher::HashStable<rustc_middle::ich::hcx::StableHashingContext> for rustc_middle::ty::sty::RegionKind>::hash_stable
  16: <T as rustc_query_system::dep_graph::dep_node::DepNodeParams<Ctxt>>::to_fingerprint
  17: rustc_query_system::query::plumbing::get_query_impl
  18: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::error_reporting::suggestions::InferCtxtExt>::suggest_await_before_try
  19: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::error_reporting::InferCtxtExt>::report_selection_error
  20: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::error_reporting::InferCtxtExt>::report_fulfillment_errors
  21: rustc_typeck::check::FnCtxt::resolve_vars_with_obligations
  22: rustc_typeck::check::FnCtxt::structurally_resolved_type
  23: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::check_call
  24: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  25: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  26: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_coercable_to_type
  27: rustc_typeck::check::FnCtxt::check_decl_local
  28: rustc_typeck::check::FnCtxt::check_stmt
  29: rustc_typeck::check::FnCtxt::check_block_with_expected
  30: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  31: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  32: rustc_typeck::check::FnCtxt::check_block_with_expected
  33: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  34: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  35: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_return_expr
  36: rustc_typeck::check::check_fn
  37: rustc_typeck::check::closure::<impl rustc_typeck::check::FnCtxt>::check_expr_closure
  38: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  39: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  40: rustc_typeck::check::FnCtxt::check_argument_types
  41: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::confirm_builtin_call
  42: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::check_call
  43: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  44: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  45: rustc_typeck::check::FnCtxt::check_argument_types
  46: rustc_typeck::check::FnCtxt::check_method_argument_types
  47: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  48: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  49: rustc_typeck::check::FnCtxt::check_block_with_expected
  50: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  51: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  52: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_return_expr
  53: rustc_typeck::check::check_fn
  54: rustc_middle::ty::context::GlobalCtxt::enter_local
  55: rustc_typeck::check::typeck_tables_of
  56: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::typeck_tables_of>::compute
  57: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  58: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  59: rustc_query_system::query::plumbing::get_query_impl
  60: rustc_typeck::check::typeck_tables_of
  61: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::typeck_tables_of>::compute
  62: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  63: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  64: rustc_query_system::query::plumbing::get_query_impl
  65: rustc_query_system::query::plumbing::ensure_query_impl
  66: rustc_typeck::check::typeck_item_bodies
  67: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::typeck_item_bodies>::compute
  68: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  69: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  70: rustc_query_system::query::plumbing::get_query_impl
  71: rustc_typeck::check_crate
  72: rustc_interface::passes::analysis
  73: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::analysis>::compute
  74: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
  75: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
  76: rustc_query_system::query::plumbing::get_query_impl
  77: rustc_middle::ty::context::tls::enter_global
  78: rustc_interface::interface::run_compiler_in_existing_thread_pool
  79: rustc_ast::attr::with_globals
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.45.0-nightly (46e85b432 2020-05-24) running on x86_64-apple-darwin

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [typeck_tables_of] type-checking `test_compiler_script`
#1 [typeck_tables_of] type-checking `test_compiler_script::{{closure}}#0`
#2 [typeck_item_bodies] type-checking all item bodies
#3 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to previous error

error: could not compile `dummy`.

closed time in 2 months

benbromhead

push eventcsmoe/rust

Josh Stone

commit sha b0fb57bd8d18946787a79d1244154f2512dcf15b

impl From<Cow> for boxed slices and strings These forward `Borrowed`/`Owned` values to existing `Box::from` impls. - `From<Cow<'_, [T]>> for Box<[T]>` - `From<Cow<'_, str>> for Box<str>` - `From<Cow<'_, CStr>> for Box<CStr>` - `From<Cow<'_, OsStr>> for Box<OsStr>` - `From<Cow<'_, Path>> for Box<Path>`

view details

Josh Stone

commit sha 6d40751b37ef453bee5d8a9c47b00ef205d61738

impl From<Cow> for Rc and Arc These forward `Borrowed`/`Owned` values to existing `From` impls. impl<'a, B> From<Cow<'a, B>> for Rc<B> where B: ToOwned + ?Sized, Rc<B>: From<&'a B> + From<B::Owned>, impl<'a, B> From<Cow<'a, B>> for Arc<B> where B: ToOwned + ?Sized, Arc<B>: From<&'a B> + From<B::Owned>,

view details

Josh Stone

commit sha 23f71fe5b518c6136990f79733155b4fa1314d2b

Add tests from Cow

view details

Josh Stone

commit sha 22efd959109b9a231edbc81a8bc818eaa5763e78

Bless From<Cow> UI changes

view details

Ralf Jung

commit sha 33541d5e55c3114e01e06b27715ae04372ce027f

clarify interaction of pin drop guarantee and panics

view details

Kevin Per

commit sha dfbc143e65dd4dc8499f7296ddc7889854a8cc7d

Adding if to prevent borrowing suggestion in structs #71136

view details

Kevin Per

commit sha bc29f1d062feeb68207c961d254652d6bff9fd9b

Adding new test #71136

view details

Kevin Per

commit sha d232be80f82b052fd023eb2f4904ccad0aa42d7a

Fix tidy checks

view details

Eduardo Sánchez Muñoz

commit sha 68f89fcbf982d4b2a40d3175568bef194ee4f3b7

Make `std::char` functions and constants associated to `char`.

view details

Vadim Petrochenkov

commit sha 5c6f7b32aab683276d4feb1810244ccf72bda736

Stabilize fn-like proc macros in expression, pattern and statement positions

view details

Dylan MacKenzie

commit sha 41fe5c1ca73589fe9f63f2191fd0c869e5de34d0

Update clippy lint

view details

Eduardo Sánchez Muñoz

commit sha 0e12a9d9ac6f69ddd72f2c028f668c0b55ac2eda

Try to fix doc links in new `char` methods.

view details

csmoe

commit sha e07f63e79a618a0c5e53a71d053da0fa0dbc6970

add testcase for issue-70818

view details

Tobias Rapp

commit sha f99344ace44abc91f76df276625e048f1e8a9536

Stabilize saturating_abs and saturating_neg Stabilizes the following signed integer functions with saturation mechanics: * saturating_abs() * saturating_neg() Closes #59983

view details

csmoe

commit sha fb81c429ebd45f9ba2b1810f548cf59a45feb222

make yield span optional

view details

csmoe

commit sha a5d103ff90f4ad90b1f13f5b5de83a3eb758d9e2

record upvar into GeneratorInteriorTypeCause

view details

csmoe

commit sha d4bdcfd3cfbfa025c5363149a14f2b36a584b54a

don't record upvars into generator interior

view details

csmoe

commit sha 382a963c17122470918e1491a733b81fb545330d

filter upvars that cause trait obligation

view details

csmoe

commit sha d2e5a8e2e966df119021e3db6f6d4c2e189865cd

bless issue-70818 test case

view details

Jack Huey

commit sha 0e2f5c9862bff6889c57a802844e75ea9e576606

Fix nit and cargo.lock

view details

push time in 2 months

pull request commentrust-lang/rust

Spell out `Self` in async function return

r? @RalfJung error codes updated

csmoe

comment created time in 2 months

push eventcsmoe/rust

csmoe

commit sha 16ba3e129d5d37c63b7000fcd4b52261e7f1c4f1

bless issue-72442

view details

push time in 2 months

push eventcsmoe/rust

csmoe

commit sha 9e3b2bcdb6fea8dc042e86d0a9e3bcedab3e8e85

resolve error code e0758

view details

push time in 2 months

push eventcsmoe/rust

csmoe

commit sha b86f76b9597a01c842ad0ddc09b0c167a166ed87

bless issue-72442

view details

push time in 2 months

push eventcsmoe/rust

csmoe

commit sha e5f109fab03e85296a66ef033f0c0408ab439b8c

bless issue-72442

view details

push time in 2 months

issue commentrust-lang/rust

[Nightly RustC -- Debug only] Type check fails in async functions when compiling to debug.

kind of strange, this ice only triggered with -Cincremental

use std::fs::File;
use std::future::Future;
use std::io::prelude::*;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    block_on(async {
        {
            let path = std::path::Path::new(".");
            let mut f = File::open(path.to_str())?;
            //~^ ERROR the trait bound `std::option::Option<&str>: std::convert::AsRef<std::path::Path>` is not satisfied
            let mut src = String::new();
            f.read_to_string(&mut src)?;
            Ok(())
        }
    })
}

fn block_on<F>(f: F) -> F::Output
where
    F: Future<Output = Result<(), Box<dyn std::error::Error>>>,
{
    Ok(())
}

ICE: rustc --edition 2018 -Cincremental ice.rs no-ICE: rustc --edition 2018 ice.rs

nitsuga5124

comment created time in 2 months

PR opened rust-lang/rust

Fix ice-#72442

Closes #72442 #72426 r? @oli-obk

+47 -1

0 comment

5 changed files

pr created time in 2 months

create barnchcsmoe/rust

branch : issue-72442

created branch time in 2 months

issue commentrust-lang/rust

[Nightly RustC -- Debug only] Type check fails in async functions when compiling to debug.

@doctorn @nitsuga5124 oh, sorry, my bad, investigating.

nitsuga5124

comment created time in 2 months

pull request commentrust-lang/rust

Break out early on empty span when generate_fn_span

@estebank really sorry, my github notification is broken 😢, I'll file a test case soon.

csmoe

comment created time in 3 months

issue commentrust-lang/rust

suggest `await` for future-related type errors

From #62067, these are the cases still missing:

* [ ]  Return places for functions

* [ ]  Field access

* [ ]  Method invocation

In bodies that aren't async, .await is not suggested, but maybe we should mention that we're not in an async block and that the future could have been awaited. I guess this is likely to be a common wip error during development.

@estebank could you write a case of return-place-for-functions? I'm not sure about this one, since await seems already suggested

nikomatsakis

comment created time in 3 months

issue commentrust-lang/rust

suggest `await` for future-related type errors

@tmandry I'll try to fix them all, more commits pending.

nikomatsakis

comment created time in 3 months

push eventcsmoe/rust

csmoe

commit sha 2f311b07c8d95b1192e585e983535de89bcbdfaa

Merge branch 'master' into issue-69276

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 2d9c166684970844e034695e020e58197135c4b0

Merge branch 'master' into issue-69276

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 84f6b27def692cfc12fe5bfe7566c61719eb7e6c

Merge branch 'master' into issue-69276

view details

push time in 3 months

push eventcsmoe/rust

CAD97

commit sha b70e7fd0db5d23a2e045e89b8bc7e5564acce9b7

Add inherent impls for unchecked math intrinsics

view details

CAD97

commit sha 2fcfd233f755c548ddc4d5fda517a7dbb9f04ba3

Redesign the Step trait

view details

CAD97

commit sha f34322d71f6ba523fb2c0ebef258d7e51a7531c8

Adjust Step::forward_checked docs for large types Co-Authored-By: Nadrieril Feneanar <nadrieril@users.noreply.github.com>

view details

Mohsen Zohrevandi

commit sha db1fbd4a11db579436f68be3a8f5fe03484aa45d

Process termination tests Related issues: - https://github.com/fortanix/rust-sgx/issues/109

view details

Donough Liu

commit sha 079817d62481ca8d84ca87dde9a276a1d5d663cf

Make `prefix` immutable

view details

Matthew Jasper

commit sha cb2703945ca3c6c9664a5a9ec606430cb79ba2c8

Use min_specialization in liballoc - Remove a type parameter from `[A]RcFromIter`. - Remove an implementation of `[A]RcFromIter` that didn't actually specialize anything. - Remove unused implementation of `IsZero` for `Option<&mut T>`. - Change specializations of `[A]RcEqIdent` to use a marker trait version of `Eq`. - Remove `BTreeClone`. I couldn't find a way to make this work with `min_specialization`. - Add `rustc_unsafe_specialization_marker` to `Copy` and `TrustedLen`.

view details

rail

commit sha ad9ad6f402e3e15706519e59ef111a941d28d5af

Don't negate resulted offsets when `offset` is subtraction by 0

view details

rail

commit sha 37261a904ce2fbd4137180500c57f75f29945828

Print 0 when `end` and `offset` is 0, and also simplify the suggestion

view details

rail

commit sha 75ad839cd26c1da17fe6ba3aae1153ee96de26c8

Do not trigger `manual_memcpy` for `RangeTo`

view details

rail

commit sha c94f0f49f8e025aae11534f9f2b4c59c34b1edb8

Remove all `ref` keyword

view details

rail

commit sha 7dd0f3459f558c1b557223a042f549b378cacae9

Refactor `if` to use `else` and iterator combinators

view details

rail

commit sha 3f1e51b3f4a7bfb42c442caf2cb836ba62e2ba53

Rename `negate` to `sign` and make it strong types then make `art1` &str

view details

rail

commit sha ecb472c052c746d87ce26f6b184f2c5f11537e0c

Use `fn` instead of closures where unnecessary

view details

rail

commit sha aab80eedf3e271ada92a6509727461cc3aa6bb12

Extract `get_fixed_offset_var`` from `fetch_cloned_fixed_offset_var`

view details

rail

commit sha 3d121d53af9a73ba11226715cd8132f6981ffee9

Extract roles getting indexes from `get_indexed_assignments`

view details

rail

commit sha 4f2617c059f693ec72e5d31ad31fd85eba019ab1

Separate getting offsets and getting index expressions

view details

rail

commit sha 9fc6f37778789de94caa280f41afdf651bf5ae10

Delay getting the snippet from slices

view details

rail

commit sha 582614fbbe76fed1b06feb640229b71a1886ffd7

Extract building the suggestion of `manual_memcpy`

view details

rail

commit sha be9f7c2b6d99dfb259eec8e9e2f7d9b9685de226

Merge branch 'master' into fix_manual_memcpy

view details

rail

commit sha 51585a129892f42eb23b0b37fea0e729f6678994

Removed unused lifetimes and a needless bool

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 8841ede3648b5f12284dae850ec065374fd3af46

bless suggestion on spell out

view details

push time in 3 months

issue closedrust-lang/rust

Symbols in optimized async programs are often not useful

(As observed on rustc 1.40.0-nightly (4a8c5b20c 2019-10-23) targeting thumbv7em-none-eabihf; CC @tmandry)

I'm making my first aggressive use of async fn in an application. It's a deeply-embedded performance-sensitive application, and I wind up inspecting the disassembly output a lot (using objdump).

This is complicated by the fact that basically all of my functions are named poll_with_tls_context. (Some of them aren't -- some of them are named after future combinators.)

For example, here is my function called poll_with_tls_context calling another one, also named poll_with_tls_context:

; This is an ARMv-7M Thumb-2 listing.
080003b8 <core::future::poll_with_tls_context>:
 80003b8:       b570            push    {r4, r5, r6, lr}
 80003ba:       4604            mov     r4, r0
   ; irrelevant setup omitted...
 80003f4:       f000 fa3c       bl      8000870 <core::future::poll_with_tls_context> ; note different addr
 80003f8:       2101            movs    r1, #1
 80003fa:       2800            cmp     r0, #0
  ; ...and so on

(The observant reader will note poll_with_tls_context does not appear in libcore. That's correct -- I've hacked async in a #[no_std] environment. I'm pretty sure the hack is not the problem.)

I understand why this is happening: poll_with_tls_context is an implementation detail of the current lowering of async fn, and it is being specialized to the future type it's given, hence many such functions. But I also don't think it's ideal.

(For what it's worth, I can change the situation by forcing poll_with_tls_context to inline, though this produces unacceptable code bloat in my application (and this option isn't available for people who aren't open to using a patched libstd). By default, poll_with_tls_context doesn't inline, but get_task_context does, which seems like the right result for size/speed.)

I am compiling at opt-level = 3 with an override for debug = true in my release profile.

closed time in 3 months

cbiffle

issue commentrust-lang/rust

Symbols in optimized async programs are often not useful

Close since tls was removed from internal async, feel free to reopen with more concerns. cc @tmandry

cbiffle

comment created time in 3 months

issue closedrust-lang/rust

Reduce type errors in async fns

I will admit that this specific async fn is a bit long, but I'd like the compiler to tell me in a different way. (Actual reason is addition of one line borrowing the wrong type across an .await boundary, of course)

Like this, we're coming out ahead of C++ :smile:

    = help: the trait `std::marker::Sync` is not implemented for `dyn jobs::Job`
    = note: required because of the requirements on the impl of `std::marker::Send` for `&dyn jobs::Job`
    = note: required because it appears within the type `for<'r, 's, 't0, 't1, 't2, 't3, 
't4, 't5, 't6, 't7, 't8, 't9, 't10, 't11, 't12, 't13, 't14, 't15, 't16, 't17, 't18, 't19, 
't20, 't21, 't22, 't23, 't24, 't25, 't26, 't27, 't28, 't29, 't30, 't31, 't32, 't33, 't34, 
't35, 't36, 't37, 't38, 't39, 't40, 't41, 't42, 't43, 't44, 't45, 't46, 't47, 't48, 't49, 
't50, 't51, 't52, 't53, 't54, 't55, 't56, 't57, 't58, 't59, 't60, 't61, 't62, 't63, 
't64, 't65, 't66, 't67, 't68, 't69, 't70, 't71, 't72, 't73, 't74, 't75, 't76, 't77, 
't78, 't79, 't80, 't81, 't82, 't83, 't84, 't85, 't86, 't87, 't88, 't89, 't90, 't91, 
't92, 't93, 't94, 't95, 't96, 't97, 't98, 't99, 't100, 't101, 't102, 't103, 't104, 
't105, 't106, 't107, 't108, 't109, 't110, 't111, 't112, 't113, 't114, 't115, 't116, 
't117, 't118, 't119, 't120, 't121, 't122, 't123, 't124, 't125, 't126, 't127, 't128, 
't129, 't130, 't131, 't132, 't133, 't134, 't135, 't136, 't137, 't138, 't139, 't140, 
't141, 't142, 't143, 't144, 't145, 't146, 't147, 't148, 't149, 't150, 't151, 't152, 
't153, 't154, 't155, 't156, 't157, 't158, 't159, 't160, 't161, 't162, 't163, 't164, 
't165, 't166, 't167, 't168, 't169, 't170, 't171, 't172, 't173, 't174, 't175, 't176, 
't177, 't178, 't179, 't180, 't181, 't182, 't183, 't184, 't185, 't186, 't187, 't188, 
't189, 't190, 't191, 't192, 't193, 't194, 't195, 't196, 't197, 't198, 't199, 't200, 
't201, 't202, 't203, 't204, 't205, 't206, 't207, 't208, 't209, 't210, 't211, 't212, 
't213, 't214, 't215, 't216, 't217, 't218, 't219, 't220, 't221, 't222, 't223, 't224, 
't225, 't226, 't227, 't228, 't229, 't230, 't231, 't232, 't233, 't234, 't235, 't236, 
't237, 't238, 't239, 't240, 't241, 't242, 't243, 't244, 't245, 't246, 't247, 't248> 
{handler::Handler, handler::Handler, handler::Handler, &'r mut 
tokio_sync::mpsc::bounded::Receiver<handler::Action>, 
tokio_sync::mpsc::bounded::Receiver<handler::Action>, 
futures_util::stream::next::Next<'s, 
tokio_sync::mpsc::bounded::Receiver<handler::Action>>, 
futures_util::stream::next::Next<'t0, 
tokio_sync::mpsc::bounded::Receiver<handler::Action>>, (), 
std::option::Option<handler::Action>, handler::Action, handler::Action, 
handler::Request, auth::ClientInfo, tokio_sync::oneshot::Sender<handler::Response>, 
handler::Request, std::collections::HashMap<std::string::String, handler::ServiceInfo>, 
handler::Handler, &'t1 std::collections::HashMap<std::string::String, (jobs::Service, 
usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::hash_map::Values<'t2, std::string::String, (jobs::Service, usize)>, 
std::collections::hash_map::Values<'t3, std::string::String, (jobs::Service, usize)>, 
std::collections::hash_map::Values<'t4, std::string::String, (jobs::Service, usize)>, 
&'t5 (jobs::Service, usize), &'t6 jobs::Service, &'t7 usize, handler::Handler, &'t8 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't9)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't10)>>, std::boxed::Box<(dyn jobs::Job + 
't11)>, (dyn jobs::Job + 't12), &'t13 (dyn jobs::Job + 't14), bool, bool, &'t15 mut 
handler::ServiceInfo, &'t16 mut (dyn jobs::Job + 't17), &'t18 (dyn jobs::Job + 't19), 
&'t20 jobs::Service, &'t21 jobs::Service, std::pin::Pin<std::boxed::Box<(dyn 
core::future::future::Future<Output = jobs::ExtStatus> + std::marker::Send + 't22)>>, 
std::pin::Pin<std::boxed::Box<(dyn core::future::future::Future<Output = 
jobs::ExtStatus> + std::marker::Send + 't23)>>, (), std::string::String, 
handler::Handler, &'t24 std::collections::HashMap<std::string::String, (jobs::Service, 
usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t25 std::string::String, &'t26 std::string::String, 
std::option::Option<&'t27 (jobs::Service, usize)>, &'t28 jobs::Service, &'t29 usize, 
handler::Handler, &'t30 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't31)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't32)>>, std::boxed::Box<(dyn jobs::Job + 
't33)>, (dyn jobs::Job + 't34), &'t35 mut (dyn jobs::Job + 't36), &'t37 mut (dyn 
jobs::Job + 't38), &'t39 mut (dyn jobs::Job + 't40), &'t41 jobs::Service, &'t42 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t49 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t50 std::string::String, &'t51 std::string::String, 
std::option::Option<&'t52 (jobs::Service, usize)>, &'t53 jobs::Service, &'t54 usize, 
handler::Handler, &'t55 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't56)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't57)>>, std::boxed::Box<(dyn jobs::Job + 
't58)>, (dyn jobs::Job + 't59), &'t60 mut (dyn jobs::Job + 't61), &'t62 mut (dyn 
jobs::Job + 't63), &'t64 mut (dyn jobs::Job + 't65), &'t66 jobs::Service, &'t67 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t74 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t75 std::string::String, &'t76 std::string::String, 
std::option::Option<&'t77 (jobs::Service, usize)>, &'t78 jobs::Service, &'t79 usize, 
handler::Handler, &'t80 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't81)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't82)>>, std::boxed::Box<(dyn jobs::Job + 
't83)>, (dyn jobs::Job + 't84), &'t85 mut (dyn jobs::Job + 't86), &'t87 mut (dyn 
jobs::Job + 't88), &'t89 mut (dyn jobs::Job + 't90), &'t91 jobs::Service, &'t92 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t99 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t100 std::string::String, &'t101 std::string::String, 
std::option::Option<&'t102 (jobs::Service, usize)>, &'t103 jobs::Service, &'t104 usize, 
handler::Handler, &'t105 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't106)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't107)>>, std::boxed::Box<(dyn jobs::Job 
+ 't108)>, (dyn jobs::Job + 't109), &'t110 mut (dyn jobs::Job + 't111), &'t112 mut (dyn 
jobs::Job + 't113), &'t114 mut (dyn jobs::Job + 't115), &'t116 jobs::Service, &'t117 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t124 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t125 std::string::String, &'t126 std::string::String, 
std::option::Option<&'t127 (jobs::Service, usize)>, &'t128 jobs::Service, &'t129 usize, 
handler::Handler, &'t130 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't131)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't132)>>, std::boxed::Box<(dyn jobs::Job 
+ 't133)>, (dyn jobs::Job + 't134), &'t135 mut (dyn jobs::Job + 't136), &'t137 mut (dyn 
jobs::Job + 't138), &'t139 mut (dyn jobs::Job + 't140), &'t141 jobs::Service, &'t142 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, std::string::String, std::string::String, handler::Handler, &'t149 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t150 std::string::String, &'t151 std::string::String, 
std::option::Option<&'t152 (jobs::Service, usize)>, &'t153 jobs::Service, &'t154 usize, 
handler::Handler, &'t155 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't156)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't157)>>, std::boxed::Box<(dyn jobs::Job 
+ 't158)>, (dyn jobs::Job + 't159), &'t160 mut (dyn jobs::Job + 't161), &'t162 mut (dyn 
jobs::Job + 't163), &'t164 mut (dyn jobs::Job + 't165), &'t166 jobs::Service, &'t167 
jobs::Service, auth::ClientInfo, std::string::String, std::string::String, impl 
core::future::future::Future, impl core::future::future::Future, impl 
core::future::future::Future, (), std::string::String, handler::Handler, &'t174 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t175 std::string::String, &'t176 std::string::String, 
std::option::Option<&'t177 (jobs::Service, usize)>, &'t178 jobs::Service, &'t179 usize, 
handler::Handler, &'t180 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't181)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't182)>>, std::boxed::Box<(dyn jobs::Job 
+ 't183)>, (dyn jobs::Job + 't184), &'t185 mut (dyn jobs::Job + 't186), &'t187 mut (dyn 
jobs::Job + 't188), &'t189 mut (dyn jobs::Job + 't190), &'t191 jobs::Service, &'t192 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t199 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t200 std::string::String, &'t201 std::string::String, 
std::option::Option<&'t202 (jobs::Service, usize)>, &'t203 jobs::Service, &'t204 usize, 
handler::Handler, &'t205 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't206)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't207)>>, std::boxed::Box<(dyn jobs::Job 
+ 't208)>, (dyn jobs::Job + 't209), &'t210 mut (dyn jobs::Job + 't211), &'t212 mut (dyn 
jobs::Job + 't213), &'t214 mut (dyn jobs::Job + 't215), &'t216 jobs::Service, &'t217 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t224 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t225 std::string::String, &'t226 std::string::String, 
std::option::Option<&'t227 (jobs::Service, usize)>, &'t228 jobs::Service, &'t229 usize, 
handler::Handler, &'t230 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't231)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't232)>>, std::boxed::Box<(dyn jobs::Job 
+ 't233)>, (dyn jobs::Job + 't234), &'t235 mut (dyn jobs::Job + 't236), &'t237 mut (dyn 
jobs::Job + 't238), &'t239 mut (dyn jobs::Job + 't240), &'t241 jobs::Service, &'t242 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, ()}`
    = note: required because it appears within the type `[static 
generator@src/handler.rs:137:32: 198:6 __arg0:handler::Handler for<'r, 's, 't0, 't1, 
't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10, 't11, 't12, 't13, 't14, 't15, 't16, 't17, 
't18, 't19, 't20, 't21, 't22, 't23, 't24, 't25, 't26, 't27, 't28, 't29, 't30, 't31, 
't32, 't33, 't34, 't35, 't36, 't37, 't38, 't39, 't40, 't41, 't42, 't43, 't44, 't45, 
't46, 't47, 't48, 't49, 't50, 't51, 't52, 't53, 't54, 't55, 't56, 't57, 't58, 't59, 
't60, 't61, 't62, 't63, 't64, 't65, 't66, 't67, 't68, 't69, 't70, 't71, 't72, 't73, 
't74, 't75, 't76, 't77, 't78, 't79, 't80, 't81, 't82, 't83, 't84, 't85, 't86, 't87, 
't88, 't89, 't90, 't91, 't92, 't93, 't94, 't95, 't96, 't97, 't98, 't99, 't100, 't101, 
't102, 't103, 't104, 't105, 't106, 't107, 't108, 't109, 't110, 't111, 't112, 't113, 
't114, 't115, 't116, 't117, 't118, 't119, 't120, 't121, 't122, 't123, 't124, 't125, 
't126, 't127, 't128, 't129, 't130, 't131, 't132, 't133, 't134, 't135, 't136, 't137, 
't138, 't139, 't140, 't141, 't142, 't143, 't144, 't145, 't146, 't147, 't148, 't149, 
't150, 't151, 't152, 't153, 't154, 't155, 't156, 't157, 't158, 't159, 't160, 't161, 
't162, 't163, 't164, 't165, 't166, 't167, 't168, 't169, 't170, 't171, 't172, 't173, 
't174, 't175, 't176, 't177, 't178, 't179, 't180, 't181, 't182, 't183, 't184, 't185, 
't186, 't187, 't188, 't189, 't190, 't191, 't192, 't193, 't194, 't195, 't196, 't197, 
't198, 't199, 't200, 't201, 't202, 't203, 't204, 't205, 't206, 't207, 't208, 't209, 
't210, 't211, 't212, 't213, 't214, 't215, 't216, 't217, 't218, 't219, 't220, 't221, 
't222, 't223, 't224, 't225, 't226, 't227, 't228, 't229, 't230, 't231, 't232, 't233, 
't234, 't235, 't236, 't237, 't238, 't239, 't240, 't241, 't242, 't243, 't244, 't245, 
't246, 't247, 't248> {handler::Handler, handler::Handler, handler::Handler, &'r mut 
tokio_sync::mpsc::bounded::Receiver<handler::Action>, 
tokio_sync::mpsc::bounded::Receiver<handler::Action>, 
futures_util::stream::next::Next<'s, 
tokio_sync::mpsc::bounded::Receiver<handler::Action>>, 
futures_util::stream::next::Next<'t0, 
tokio_sync::mpsc::bounded::Receiver<handler::Action>>, (), 
std::option::Option<handler::Action>, handler::Action, handler::Action, 
handler::Request, auth::ClientInfo, tokio_sync::oneshot::Sender<handler::Response>, 
handler::Request, std::collections::HashMap<std::string::String, handler::ServiceInfo>, 
handler::Handler, &'t1 std::collections::HashMap<std::string::String, (jobs::Service, 
usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::hash_map::Values<'t2, std::string::String, (jobs::Service, usize)>, 
std::collections::hash_map::Values<'t3, std::string::String, (jobs::Service, usize)>, 
std::collections::hash_map::Values<'t4, std::string::String, (jobs::Service, usize)>, 
&'t5 (jobs::Service, usize), &'t6 jobs::Service, &'t7 usize, handler::Handler, &'t8 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't9)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't10)>>, std::boxed::Box<(dyn jobs::Job + 
't11)>, (dyn jobs::Job + 't12), &'t13 (dyn jobs::Job + 't14), bool, bool, &'t15 mut 
handler::ServiceInfo, &'t16 mut (dyn jobs::Job + 't17), &'t18 (dyn jobs::Job + 't19), 
&'t20 jobs::Service, &'t21 jobs::Service, std::pin::Pin<std::boxed::Box<(dyn 
core::future::future::Future<Output = jobs::ExtStatus> + std::marker::Send + 't22)>>, 
std::pin::Pin<std::boxed::Box<(dyn core::future::future::Future<Output = 
jobs::ExtStatus> + std::marker::Send + 't23)>>, (), std::string::String, 
handler::Handler, &'t24 std::collections::HashMap<std::string::String, (jobs::Service, 
usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t25 std::string::String, &'t26 std::string::String, 
std::option::Option<&'t27 (jobs::Service, usize)>, &'t28 jobs::Service, &'t29 usize, 
handler::Handler, &'t30 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't31)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't32)>>, std::boxed::Box<(dyn jobs::Job + 
't33)>, (dyn jobs::Job + 't34), &'t35 mut (dyn jobs::Job + 't36), &'t37 mut (dyn 
jobs::Job + 't38), &'t39 mut (dyn jobs::Job + 't40), &'t41 jobs::Service, &'t42 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t49 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t50 std::string::String, &'t51 std::string::String, 
std::option::Option<&'t52 (jobs::Service, usize)>, &'t53 jobs::Service, &'t54 usize, 
handler::Handler, &'t55 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't56)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't57)>>, std::boxed::Box<(dyn jobs::Job + 
't58)>, (dyn jobs::Job + 't59), &'t60 mut (dyn jobs::Job + 't61), &'t62 mut (dyn 
jobs::Job + 't63), &'t64 mut (dyn jobs::Job + 't65), &'t66 jobs::Service, &'t67 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t74 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t75 std::string::String, &'t76 std::string::String, 
std::option::Option<&'t77 (jobs::Service, usize)>, &'t78 jobs::Service, &'t79 usize, 
handler::Handler, &'t80 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't81)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't82)>>, std::boxed::Box<(dyn jobs::Job + 
't83)>, (dyn jobs::Job + 't84), &'t85 mut (dyn jobs::Job + 't86), &'t87 mut (dyn 
jobs::Job + 't88), &'t89 mut (dyn jobs::Job + 't90), &'t91 jobs::Service, &'t92 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t99 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t100 std::string::String, &'t101 std::string::String, 
std::option::Option<&'t102 (jobs::Service, usize)>, &'t103 jobs::Service, &'t104 usize, 
handler::Handler, &'t105 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't106)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't107)>>, std::boxed::Box<(dyn jobs::Job 
+ 't108)>, (dyn jobs::Job + 't109), &'t110 mut (dyn jobs::Job + 't111), &'t112 mut (dyn 
jobs::Job + 't113), &'t114 mut (dyn jobs::Job + 't115), &'t116 jobs::Service, &'t117 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t124 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t125 std::string::String, &'t126 std::string::String, 
std::option::Option<&'t127 (jobs::Service, usize)>, &'t128 jobs::Service, &'t129 usize, 
handler::Handler, &'t130 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't131)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't132)>>, std::boxed::Box<(dyn jobs::Job 
+ 't133)>, (dyn jobs::Job + 't134), &'t135 mut (dyn jobs::Job + 't136), &'t137 mut (dyn 
jobs::Job + 't138), &'t139 mut (dyn jobs::Job + 't140), &'t141 jobs::Service, &'t142 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, std::string::String, std::string::String, handler::Handler, &'t149 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t150 std::string::String, &'t151 std::string::String, 
std::option::Option<&'t152 (jobs::Service, usize)>, &'t153 jobs::Service, &'t154 usize, 
handler::Handler, &'t155 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't156)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't157)>>, std::boxed::Box<(dyn jobs::Job 
+ 't158)>, (dyn jobs::Job + 't159), &'t160 mut (dyn jobs::Job + 't161), &'t162 mut (dyn 
jobs::Job + 't163), &'t164 mut (dyn jobs::Job + 't165), &'t166 jobs::Service, &'t167 
jobs::Service, auth::ClientInfo, std::string::String, std::string::String, impl 
core::future::future::Future, impl core::future::future::Future, impl 
core::future::future::Future, (), std::string::String, handler::Handler, &'t174 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t175 std::string::String, &'t176 std::string::String, 
std::option::Option<&'t177 (jobs::Service, usize)>, &'t178 jobs::Service, &'t179 usize, 
handler::Handler, &'t180 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't181)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't182)>>, std::boxed::Box<(dyn jobs::Job 
+ 't183)>, (dyn jobs::Job + 't184), &'t185 mut (dyn jobs::Job + 't186), &'t187 mut (dyn 
jobs::Job + 't188), &'t189 mut (dyn jobs::Job + 't190), &'t191 jobs::Service, &'t192 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t199 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t200 std::string::String, &'t201 std::string::String, 
std::option::Option<&'t202 (jobs::Service, usize)>, &'t203 jobs::Service, &'t204 usize, 
handler::Handler, &'t205 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't206)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't207)>>, std::boxed::Box<(dyn jobs::Job 
+ 't208)>, (dyn jobs::Job + 't209), &'t210 mut (dyn jobs::Job + 't211), &'t212 mut (dyn 
jobs::Job + 't213), &'t214 mut (dyn jobs::Job + 't215), &'t216 jobs::Service, &'t217 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, (), 
std::string::String, handler::Handler, &'t224 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::collections::HashMap<std::string::String, (jobs::Service, usize)>, 
std::string::String, &'t225 std::string::String, &'t226 std::string::String, 
std::option::Option<&'t227 (jobs::Service, usize)>, &'t228 jobs::Service, &'t229 usize, 
handler::Handler, &'t230 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't231)>>, 
std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't232)>>, std::boxed::Box<(dyn jobs::Job 
+ 't233)>, (dyn jobs::Job + 't234), &'t235 mut (dyn jobs::Job + 't236), &'t237 mut (dyn 
jobs::Job + 't238), &'t239 mut (dyn jobs::Job + 't240), &'t241 jobs::Service, &'t242 
jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl 
core::future::future::Future, impl core::future::future::Future, ()}]`

    = note: required because it appears within the type `std::future::GenFuture<[static generator@src/handler.rs:137:32: 198:6 __arg0:handler::Handler for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10, 't11, 't12, 't13, 't14, 't15, 't16, 't17, 't18, 't19, 't20, 't21, 't22, 't23, 't24, 't25, 't26, 't27, 't28, 't29, 't30, 't31, 't32, 't33, 't34, 't35, 't36, 't37, 't38, 't39, 't40, 't41, 't42, 't43, 't44, 't45, 't46, 't47, 't48, 't49, 't50, 't51, 't52, 't53, 't54, 't55, 't56, 't57, 't58, 't59, 't60, 't61, 't62, 't63, 't64, 't65, 't66, 't67, 't68, 't69, 't70, 't71, 't72, 't73, 't74, 't75, 't76, 't77, 't78, 't79, 't80, 't81, 't82, 't83, 't84, 't85, 't86, 't87, 't88, 't89, 't90, 't91, 't92, 't93, 't94, 't95, 't96, 't97, 't98, 't99, 't100, 't101, 't102, 't103, 't104, 't105, 't106, 't107, 't108, 't109, 't110, 't111, 't112, 't113, 't114, 't115, 't116, 't117, 't118, 't119, 't120, 't121, 't122, 't123, 't124, 't125, 't126, 't127, 't128, 't129, 't130, 't131, 't132, 't133, 't134, 't135, 't136, 't137, 't138, 't139, 't140, 't141, 't142, 't143, 't144, 't145, 't146, 't147, 't148, 't149, 't150, 't151, 't152, 't153, 't154, 't155, 't156, 't157, 't158, 't159, 't160, 't161, 't162, 't163, 't164, 't165, 't166, 't167, 't168, 't169, 't170, 't171, 't172, 't173, 't174, 't175, 't176, 't177, 't178, 't179, 't180, 't181, 't182, 't183, 't184, 't185, 't186, 't187, 't188, 't189, 't190, 't191, 't192, 't193, 't194, 't195, 't196, 't197, 't198, 't199, 't200, 't201, 't202, 't203, 't204, 't205, 't206, 't207, 't208, 't209, 't210, 't211, 't212, 't213, 't214, 't215, 't216, 't217, 't218, 't219, 't220, 't221, 't222, 't223, 't224, 't225, 't226, 't227, 't228, 't229, 't230, 't231, 't232, 't233, 't234, 't235, 't236, 't237, 't238, 't239, 't240, 't241, 't242, 't243, 't244, 't245, 't246, 't247, 't248> {handler::Handler, handler::Handler, handler::Handler, &'r mut tokio_sync::mpsc::bounded::Receiver<handler::Action>, tokio_sync::mpsc::bounded::Receiver<handler::Action>, futures_util::stream::next::Next<'s, tokio_sync::mpsc::bounded::Receiver<handler::Action>>, futures_util::stream::next::Next<'t0, tokio_sync::mpsc::bounded::Receiver<handler::Action>>, (), std::option::Option<handler::Action>, handler::Action, handler::Action, handler::Request, auth::ClientInfo, tokio_sync::oneshot::Sender<handler::Response>, handler::Request, std::collections::HashMap<std::string::String, handler::ServiceInfo>, handler::Handler, &'t1 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::hash_map::Values<'t2, std::string::String, (jobs::Service, usize)>, std::collections::hash_map::Values<'t3, std::string::String, (jobs::Service, usize)>, std::collections::hash_map::Values<'t4, std::string::String, (jobs::Service, usize)>, &'t5 (jobs::Service, usize), &'t6 jobs::Service, &'t7 usize, handler::Handler, &'t8 std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't9)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't10)>>, std::boxed::Box<(dyn jobs::Job + 't11)>, (dyn jobs::Job + 't12), &'t13 (dyn jobs::Job + 't14), bool, bool, &'t15 mut handler::ServiceInfo, &'t16 mut (dyn jobs::Job + 't17), &'t18 (dyn jobs::Job + 't19), &'t20 jobs::Service, &'t21 jobs::Service, std::pin::Pin<std::boxed::Box<(dyn core::future::future::Future<Output = jobs::ExtStatus> + std::marker::Send + 't22)>>, std::pin::Pin<std::boxed::Box<(dyn core::future::future::Future<Output = jobs::ExtStatus> + std::marker::Send + 't23)>>, (), std::string::String, handler::Handler, &'t24 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::string::String, &'t25 std::string::String, &'t26 std::string::String, std::option::Option<&'t27 (jobs::Service, usize)>, &'t28 jobs::Service, &'t29 usize, handler::Handler, &'t30 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't31)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't32)>>, std::boxed::Box<(dyn jobs::Job + 't33)>, (dyn jobs::Job + 't34), &'t35 mut (dyn jobs::Job + 't36), &'t37 mut (dyn jobs::Job + 't38), &'t39 mut (dyn jobs::Job + 't40), &'t41 jobs::Service, &'t42 jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl core::future::future::Future, impl core::future::future::Future, (), std::string::String, handler::Handler, &'t49 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::string::String, &'t50 std::string::String, &'t51 std::string::String, std::option::Option<&'t52 (jobs::Service, usize)>, &'t53 jobs::Service, &'t54 usize, handler::Handler, &'t55 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't56)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't57)>>, std::boxed::Box<(dyn jobs::Job + 't58)>, (dyn jobs::Job + 't59), &'t60 mut (dyn jobs::Job + 't61), &'t62 mut (dyn jobs::Job + 't63), &'t64 mut (dyn jobs::Job + 't65), &'t66 jobs::Service, &'t67 jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl core::future::future::Future, impl core::future::future::Future, (), std::string::String, handler::Handler, &'t74 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::string::String, &'t75 std::string::String, &'t76 std::string::String, std::option::Option<&'t77 (jobs::Service, usize)>, &'t78 jobs::Service, &'t79 usize, handler::Handler, &'t80 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't81)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't82)>>, std::boxed::Box<(dyn jobs::Job + 't83)>, (dyn jobs::Job + 't84), &'t85 mut (dyn jobs::Job + 't86), &'t87 mut (dyn jobs::Job + 't88), &'t89 mut (dyn jobs::Job + 't90), &'t91 jobs::Service, &'t92 jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl core::future::future::Future, impl core::future::future::Future, (), std::string::String, handler::Handler, &'t99 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::string::String, &'t100 std::string::String, &'t101 std::string::String, std::option::Option<&'t102 (jobs::Service, usize)>, &'t103 jobs::Service, &'t104 usize, handler::Handler, &'t105 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't106)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't107)>>, std::boxed::Box<(dyn jobs::Job + 't108)>, (dyn jobs::Job + 't109), &'t110 mut (dyn jobs::Job + 't111), &'t112 mut (dyn jobs::Job + 't113), &'t114 mut (dyn jobs::Job + 't115), &'t116 jobs::Service, &'t117 jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl core::future::future::Future, impl core::future::future::Future, (), std::string::String, handler::Handler, &'t124 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::string::String, &'t125 std::string::String, &'t126 std::string::String, std::option::Option<&'t127 (jobs::Service, usize)>, &'t128 jobs::Service, &'t129 usize, handler::Handler, &'t130 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't131)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't132)>>, std::boxed::Box<(dyn jobs::Job + 't133)>, (dyn jobs::Job + 't134), &'t135 mut (dyn jobs::Job + 't136), &'t137 mut (dyn jobs::Job + 't138), &'t139 mut (dyn jobs::Job + 't140), &'t141 jobs::Service, &'t142 jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl core::future::future::Future, impl core::future::future::Future, (), std::string::String, std::string::String, std::string::String, handler::Handler, &'t149 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::string::String, &'t150 std::string::String, &'t151 std::string::String, std::option::Option<&'t152 (jobs::Service, usize)>, &'t153 jobs::Service, &'t154 usize, handler::Handler, &'t155 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't156)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't157)>>, std::boxed::Box<(dyn jobs::Job + 't158)>, (dyn jobs::Job + 't159), &'t160 mut (dyn jobs::Job + 't161), &'t162 mut (dyn jobs::Job + 't163), &'t164 mut (dyn jobs::Job + 't165), &'t166 jobs::Service, &'t167 jobs::Service, auth::ClientInfo, std::string::String, std::string::String, impl core::future::future::Future, impl core::future::future::Future, impl core::future::future::Future, (), std::string::String, handler::Handler, &'t174 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::string::String, &'t175 std::string::String, &'t176 std::string::String, std::option::Option<&'t177 (jobs::Service, usize)>, &'t178 jobs::Service, &'t179 usize, handler::Handler, &'t180 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't181)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't182)>>, std::boxed::Box<(dyn jobs::Job + 't183)>, (dyn jobs::Job + 't184), &'t185 mut (dyn jobs::Job + 't186), &'t187 mut (dyn jobs::Job + 't188), &'t189 mut (dyn jobs::Job + 't190), &'t191 jobs::Service, &'t192 jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl core::future::future::Future, impl core::future::future::Future, (), std::string::String, handler::Handler, &'t199 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::string::String, &'t200 std::string::String, &'t201 std::string::String, std::option::Option<&'t202 (jobs::Service, usize)>, &'t203 jobs::Service, &'t204 usize, handler::Handler, &'t205 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't206)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't207)>>, std::boxed::Box<(dyn jobs::Job + 't208)>, (dyn jobs::Job + 't209), &'t210 mut (dyn jobs::Job + 't211), &'t212 mut (dyn jobs::Job + 't213), &'t214 mut (dyn jobs::Job + 't215), &'t216 jobs::Service, &'t217 jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl core::future::future::Future, impl core::future::future::Future, (), std::string::String, handler::Handler, &'t224 std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::collections::HashMap<std::string::String, (jobs::Service, usize)>, std::string::String, &'t225 std::string::String, &'t226 std::string::String, std::option::Option<&'t227 (jobs::Service, usize)>, &'t228 jobs::Service, &'t229 usize, handler::Handler, &'t230 mut std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't231)>>, std::vec::Vec<std::boxed::Box<(dyn jobs::Job + 't232)>>, std::boxed::Box<(dyn jobs::Job + 't233)>, (dyn jobs::Job + 't234), &'t235 mut (dyn jobs::Job + 't236), &'t237 mut (dyn jobs::Job + 't238), &'t239 mut (dyn jobs::Job + 't240), &'t241 jobs::Service, &'t242 jobs::Service, auth::ClientInfo, impl core::future::future::Future, impl core::future::future::Future, impl core::future::future::Future, ()}]>`

closed time in 3 months

birkenfeld

issue commentrust-lang/rust

Reduce type errors in async fns

Close as errors reduced.

birkenfeld

comment created time in 3 months

issue commentrust-lang/rust

ICE when using lifetime arguments explicitly in late bound lifetime parameters

related to #42868 cc @petrochenkov

fschutt

comment created time in 3 months

push eventcsmoe/rust

csmoe

commit sha 142b1d3a1f8e5caf01b72846c3be07f6ff5cd575

bless suggestion on spell out

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 0c314b9d7623412fe818c4bf11ae991c9a2df3b0

bless suggestion on spell out

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 0d90227e987b71e01327e33c5fe825fdc42c78fe

bless suggestion on spell out

view details

push time in 3 months

PR opened rust-lang/rust

Break out early on empty span when generate_fn_span

Closes #72095 r? @oli-obk cc @estebank @tmandry

+17 -8

0 comment

1 changed file

pr created time in 3 months

push eventcsmoe/rust

Philipp Krones

commit sha 9b882bab2683de8926aed3ae89fb540c497c5dd3

Rollup merge of #5523 - phansch:add-new-ret-no-self-testcase, r=flip1995 Add lifetime test case for `new_ret_no_self` cc https://github.com/rust-lang/rust-clippy/issues/734#issuecomment-619344352 changelog: none

view details

bors

commit sha 77c23b70897a097cadd5fdd96644384313243f14

Auto merge of #5527 - flip1995:rollup-pr2htfd, r=flip1995 Rollup of 5 pull requests Successful merges: - #5408 (Downgrade match_bool to pedantic) - #5505 (Avoid running cargo+internal lints when not enabled) - #5516 (Add a note to the beta sections of release.md) - #5517 (Deploy time travel) - #5523 (Add lifetime test case for `new_ret_no_self`) Failed merges: r? @ghost changelog: rollup

view details

Dillon Amburgey

commit sha 7ac093fda9f458ac4c9d5bd52e44d1247627a3b6

Detect git version before attempting to use --progress Otherwise each update is run twice and errors are printed

view details

Aleksei Latyshev

commit sha 69fe6b4c9824c1469b5540302d95d980ff54659e

fix redundant_pattern_matching lint - now it gives correct suggestion in case of macros - better tests - remove a couple of non-relevant tests

view details

Eduardo Broto

commit sha 806d973adcc1459df50dadd088928503f44be24f

map_clone: avoid suggesting `copied()` for &mut

view details

bors

commit sha a76bfd46c5596cb90465c3accad09250e8204dad

Auto merge of #5530 - ebroto:issue_5524, r=flip1995 map_clone: avoid suggesting `copied()` for &mut changelog: map_clone: avoid suggesting `copied()` for &mut Fixes #5524

view details

bors

commit sha 44eb953adc210a20d0e2770ac310ebed66097846

Auto merge of #5525 - flip1995:issue_1654, r=phansch Don't trigger while_let_on_iterator when the iterator is recreated every iteration r? @phansch Fixes #1654 changelog: Fix false positive in [`while_let_on_iterator`]

view details

bors

commit sha 07dd5fada91b3a3219febb91c4dd0932c384f9c7

Auto merge of #5511 - alex-700:fix-redundant-pattern-matching, r=flip1995 Fix redundant_pattern_matching lint fixes #5504 changelog: Fix suggestion in `redundant_pattern_matching` for macros.

view details

Dylan DPC

commit sha e51cbc8376857f40ed053f54fc1fbe90f6817cdd

Rollup merge of #70043 - mark-i-m:def-kind-more, r=eddyb Add all remaining `DefKind`s. r? @eddyb or @Centril ~~I'm not sure if this is what you were thinking of. There are also a few places where I'm not sure what the correct choice is because I don't fully understand the meaning of some variants.~~ ~~In general, it feels a bit odd to add some of these as `DefKind`s (e.g. `Arm`) because they don't feel like definitions. Are there things that it makes sense not to add?~~

view details

Dylan DPC

commit sha b964451a72eb20283ee8f23541eae24474278158

Rollup merge of #71140 - oli-obk:static_cycle, r=RalfJung [breaking change] Disallow statics initializing themselves fixes #71078 Self-initialization is unsound because it breaks privacy assumptions that unsafe code can make. In ```rust pub mod foo { #[derive(Debug, Copy, Clone)] pub struct Foo { x: (), } } pub static FOO: foo::Foo = FOO; ``` unsafe could could expect that ony functions inside the `foo` module were able to create a value of type `Foo`.

view details

Dylan DPC

commit sha 98a43caf9b776516f2afd3ca9b59cbe4ccf11a49

Rollup merge of #71392 - ecstatic-morse:body-predecessor-cache-arc, r=nikomatsakis Don't hold the predecessor cache lock longer than necessary #71044 returns a `LockGuard` with the predecessor cache to callers of `Body::predecessors`. As a result, the lock around the predecessor cache could be held for an arbitrarily long time. This PR uses reference counting for ownership of the predecessor cache, meaning the lock is only ever held within `PredecessorCache::compute`. Checking this API for potential sources of deadlock is much easier now, since we no longer have to consider its consumers, only its internals. This required removing `predecessors_for`, since there is no equivalent to `LockGuard::map` for `Arc` and `Rc`. I believe this could be emulated with `owning_ref::{Arc,Rc}Ref`, but I don't think it's necessary. Also, we continue to return an opaque type from `Body::predecessors` with the lifetime of the `Body`, not `'static`. This depends on #71044. Only the last two commits are new. r? @nikomatsakis

view details

Dylan DPC

commit sha fde472792f2c05455f37ab770545579705f437e5

Rollup merge of #71541 - wesleywiser:issue_26376, r=Dylan-DPC Add regression test for #26376 Closes #26376

view details

Dylan DPC

commit sha f70c9dba22df28b606ee413a82a3fe4305855620

Rollup merge of #71554 - gizmondo:68922, r=jonas-schievink Replace thread_local with generator resume arguments in box_region. Fixes #68922. Continuation of #70622. Added a short doc, hope it makes sense. r? @jonas-schievink

view details

Mark Rousskov

commit sha 5a5fa39909f0793790c9365bd6a1c81347a0f8cf

Handle build completion message from Cargo This was introduced in the recent bump to 1.43 bootstrap cargo

view details

Matthias Krüger

commit sha 8862f829bbfbc25a2b4e02210a94907787d1cd8b

fix more clippy warnings clippy::{redundant_pattern_matching, clone_on_copy, iter_cloned_collect, option_as_ref_deref, match_ref_pats}

view details

bors

commit sha b592b37fa31c0d81ca23fea9fe7998c3f0f4bd0b

Auto merge of #71566 - Dylan-DPC:rollup-9xoz6fg, r=Dylan-DPC Rollup of 5 pull requests Successful merges: - #70043 (Add all remaining `DefKind`s.) - #71140 ([breaking change] Disallow statics initializing themselves) - #71392 (Don't hold the predecessor cache lock longer than necessary) - #71541 (Add regression test for #26376) - #71554 (Replace thread_local with generator resume arguments in box_region.) Failed merges: r? @ghost

view details

YI

commit sha eb8a7031ef1ecd9b44a929f0b93f0e41c78fda25

use defkind.descr in wrong namespace resolve failure

view details

Samrat Man Singh

commit sha 91462db9f1c1b5db941c22efb64e7ec01d472911

[miri] Throw UB if target size and data size don't match If an extern C function is defined as ``` extern "C" { fn malloc(size: u32) -> *mut std::ffi::c_void; } ``` on a 64-bit machine(ie. pointer sizes don't match), throw an undefined behaviour.

view details

bors

commit sha 019ab732ce63a117cbb446db1488916c5c0bd2a7

Auto merge of #71434 - pietroalbini:shrink-gha-config, r=Mark-Simulacrum Shrink GHA configuration This shrinks our GHA configuration by [taking advantage of two new features GitHub just announced](https://github.blog/2020-04-22-github-actions-community-momentum-enterprise-capabilities-and-developer-improvements/): * [Default values for `steps[].shell`](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#defaultsrun) * [Being able to include values in a matrix without having to duplicate the job names.](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-new-combinations) The configuration should be functionally equivalent to the previous one. r? @Mark-Simulacrum

view details

bors

commit sha ec1f28f9614292c36b371d3758afffdd52cb9786

Auto merge of #71495 - Amanieu:update_stdarch, r=sfackler Update stdarch submodule Includes : - https://github.com/rust-lang/stdarch/pull/849 which stabilizes the remaining x86 features for feature detection. - https://github.com/rust-lang/stdarch/pull/850 which fixes building stdarch on FreeBSD. Fixes #71473

view details

push time in 3 months

create barnchcsmoe/rust

branch : issue-72095

created branch time in 3 months

push eventcsmoe/rust

csmoe

commit sha 755ca01a5b9f27d58b18b009282503449395490e

bless suggestion on spell out

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 8a64343a4691cdbca850ba1bb9152745a92fe338

bless suggestion on spell out

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 633e4aafe65cd424cf6c8076869df1b49a4e0ec4

suggest on Self return type

view details

csmoe

commit sha c03292978f113e0052a7fdaa7573e8e0edcf0fd9

bless suggestion on spell out

view details

push time in 3 months

PR opened rust-lang/rust

Spell out `Self` in async function return

Closes #69276 r? @tmandry

+59 -3

0 comment

5 changed files

pr created time in 3 months

push eventcsmoe/rust

csmoe

commit sha 29a41f0d86b82c2731cc2ab8c8a26272e773e4c3

add ui test for issue-69276

view details

csmoe

commit sha 008d90a66a30bc8ff498f8ad47dea315c1853a75

create error code E0754

view details

csmoe

commit sha da09c708965152180437a8a67b1b26e95dd4c1e6

suggest on Self return type

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 10d7da4e0b07f469c9d2b8215b563528adfc7e99

implement type_implments_trait query

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha bd747477b6e2ef08bd7e89845ac27fc92cc7caee

implement type_implments_trait query

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha a9f21eec446b622c82b20ee54fc84c794fcaa540

implement type_implments_trait query

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 7f37e293bf503bcc10b1cd91da7050e83a01c964

implement type_implments_trait query

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha d7a9ed39f1bb16602b35ee58fa11abc2c30d278e

implement type_implments_trait query

view details

push time in 3 months

issue closedrust-lang/rust

ICE while compiling async/await code

Got an ICE while compiling some async/await code. Here's the backtrace:


note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.39.0 (4560ea788 2019-11-04) running on x86_64-unknown-linux-gnu

note: compiler flags: -C opt-level=3 --crate-type bin

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [typeck_tables_of] processing `tokio::net::tcp::stream::TcpStream::connect`
#1 [typeck_tables_of] processing `tokio::net::tcp::stream::TcpStream::connect::{{closure}}#0`
#2 [typeck_tables_of] processing `sender::send_to`
#3 [typeck_tables_of] processing `sender::send_to::{{closure}}#0`
#4 [type_of] processing `sender::send_to::{{closure}}#0`
#5 [collect_mod_item_types] collecting item types in module `sender`
#6 [analysis] running analysis passes on this crate
end of query stack
error: failed to compile `aqm-test v0.1.0 (/home/inp/gunz/aqm-test)`, intermediate artifacts can be found at `/home/inp/gunz/aqm-test/target`

Caused by:
  could not compile `aqm-test`.

To learn more, run the command again with --verbose.
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:378:21
stack backtrace:
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:378:21
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.37/src/backtrace/libunwind.rs:88
   1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.37/src/backtrace/mod.rs:66
   2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:76
   3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:60
   4: core::fmt::write
             at src/libcore/fmt/mod.rs:1030
   5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1412
   6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:64
   7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
   8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:196
   9: std::panicking::default_hook
             at src/libstd/panicking.rs:210
  10: rustc_driver::report_ice
  11: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:477
  12: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:380
  13: rust_begin_unwind
             at src/libstd/panicking.rs:307
  14: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
  15: core::panicking::panic
             at src/libcore/panicking.rs:49
  16: rustc_typeck::check::typeck_tables_of
  17: rustc::ty::query::__query_compute::typeck_tables_of
  18: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::typeck_tables_of>::compute
  19: rustc::dep_graph::graph::DepGraph::with_task_impl
  20: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
  21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::typeck_tables_of>::compute
  22: rustc::dep_graph::graph::DepGraph::with_task_impl
  23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
  24: rustc::traits::error_reporting::<impl rustc::infer::InferCtxt>::note_obligation_cause
  25: rustc::traits::error_reporting::<impl rustc::infer::InferCtxt>::report_selection_error
  26: rustc::traits::error_reporting::<impl rustc::infer::InferCtxt>::report_fulfillment_errors
  27: rustc_typeck::check::FnCtxt::check_argument_types
  28: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::confirm_builtin_call
  29: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::check_call
  30: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  31: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  32: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_return_expr
  33: rustc_typeck::check::check_fn
  34: rustc_typeck::check::closure::<impl rustc_typeck::check::FnCtxt>::check_expr_closure
  35: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  36: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  37: rustc_typeck::check::FnCtxt::check_argument_types
  38: rustc_typeck::check::FnCtxt::check_method_argument_types
  39: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  40: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  41: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  42: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  43: rustc_typeck::check::FnCtxt::check_decl_initializer
  44: rustc_typeck::check::FnCtxt::check_decl_local
  45: rustc_typeck::check::FnCtxt::check_stmt
  46: rustc_typeck::check::FnCtxt::check_block_with_expected
  47: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  48: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  49: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  50: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  51: rustc_typeck::check::FnCtxt::check_block_with_expected
  52: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  53: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  54: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_return_expr
  55: rustc_typeck::check::check_fn
  56: rustc_typeck::check::closure::<impl rustc_typeck::check::FnCtxt>::check_expr_closure
  57: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  58: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  59: rustc_typeck::check::FnCtxt::check_argument_types
  60: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::confirm_builtin_call
  61: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt>::check_call
  62: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_kind
  63: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_expr_with_expectation_and_needs
  64: rustc_typeck::check::expr::<impl rustc_typeck::check::FnCtxt>::check_return_expr
  65: rustc_typeck::check::check_fn
  66: rustc::ty::context::GlobalCtxt::enter_local
  67: rustc_typeck::check::typeck_tables_of
  68: rustc::ty::query::__query_compute::typeck_tables_of
  69: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::typeck_tables_of>::compute
  70: rustc::dep_graph::graph::DepGraph::with_task_impl
  71: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
  72: rustc::ty::query::__query_compute::typeck_tables_of
  73: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::typeck_tables_of>::compute
  74: rustc::dep_graph::graph::DepGraph::with_task_impl
  75: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
  76: rustc_typeck::collect::checked_type_of
  77: rustc_typeck::collect::type_of
  78: rustc::ty::query::__query_compute::type_of
  79: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::type_of>::compute
  80: rustc::dep_graph::graph::DepGraph::with_task_impl
  81: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
  82: rustc::hir::intravisit::walk_expr
  83: rustc::hir::intravisit::Visitor::visit_fn
  84: rustc::hir::intravisit::walk_item
  85: <rustc_typeck::collect::CollectItemTypesVisitor as rustc::hir::intravisit::Visitor>::visit_item
  86: rustc::hir::map::Map::visit_item_likes_in_module
  87: rustc_typeck::collect::collect_mod_item_types
  88: rustc::ty::query::__query_compute::collect_mod_item_types
  89: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors for rustc::ty::query::queries::collect_mod_item_types>::compute
  90: rustc::dep_graph::graph::DepGraph::with_task_impl
  91: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
  92: rustc_typeck::check_crate::{{closure}}::{{closure}}
  93: rustc::util::common::time
  94: rustc_typeck::check_crate
  95: rustc_interface::passes::analysis
  96: rustc::ty::query::__query_compute::analysis
  97: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt>::get_query
  98: rustc_interface::passes::BoxedGlobalCtxt::access::{{closure}}
  99: rustc_interface::passes::create_global_ctxt::{{closure}}
 100: rustc_interface::interface::run_compiler_in_existing_thread_pool
 101: std::thread::local::LocalKey<T>::with
 102: scoped_tls::ScopedKey<T>::set
 103: syntax::with_globals
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

rustc --version --verbose:

binary: rustc
commit-hash: 4560ea788cb760f0a34127156c78e2552949f734
commit-date: 2019-11-04
host: x86_64-unknown-linux-gnu
release: 1.39.0
LLVM version: 9.0```

closed time in 3 months

NeoLegends

issue commentrust-lang/rust

ICE while compiling async/await code

I think I ran into the same issue today, and managed to create a MCVE here: https://github.com/jdno/rust-67087. It looks like the issue has been fixed on the current nightly. The compilation still fails, but now with an error message and not a panic.

* [Build on stable](https://github.com/jdno/rust-67087/runs/409038300) `cargo 1.40.0 (bc8e4c8be 2019-11-22)`

* [Build on nightly](https://github.com/jdno/rust-67087/runs/409038309) `cargo 1.42.0-nightly (f6449ba23 2020-01-21)`

Close as cannot reproduce on latest stable/beta/nightly.

NeoLegends

comment created time in 3 months

create barnchcsmoe/rust

branch : issue-69276

created branch time in 3 months

issue closedrust-lang/rust

incorrect error message for duplicate Send impl

For a specific case, the compiler reports an incorrect error message when there is a duplicate error

I tried this code:

pub struct Foo(*const ());

unsafe impl Send for Foo {}
unsafe impl Send for Foo {}

impl Foo {
    fn bar(&self) {}
}

fn assert_send<T: Send>(_: T) {}

fn main() {
    let foo = Foo(&());
    assert_send(async move {
         foo.bar();
    })
}

it reports this error:

  |
10 | fn assert_send<T: Send>(_: T) {}
   |    -----------    ---- required by this bound in `assert_send`
...
13 |     let foo = Foo(&());
   |         --- consider giving `foo` a type
14 |     assert_send(async move {
   |     ^^^^^^^^^^^ cannot infer type for struct `Foo`
   |
   = note: cannot resolve `Foo: std::marker::Send`
   = note: required because it appears within the type `[static generator@src/main.rs:14:28: 16:6 foo:Foo {}]`
   = note: required because it appears within the type `std::future::GenFuture<[static generator@src/main.rs:14:28: 16:6 foo:Foo {}]>`
   = note: required because it appears within the type `impl std::future::Future

If I comment out the line that calls foo.bar() I get the expected error:

 |
3 | unsafe impl Send for Foo {}
  | ------------------------ first implementation here
4 | unsafe impl Send for Foo {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Foo`

Here's a playground

Meta

Reproduced in 1.14.1, It also happens in nightly

originally found in rustc --version --verbose:

rustc --version --verbose
rustc 1.41.0 (5e1a79984 2020-01-27)
binary: rustc
commit-hash: 5e1a799842ba6ed4a57e91f7ab9435947482f7d8
commit-date: 2020-01-27
host: x86_64-apple-darwin
release: 1.41.0
LLVM version: 9.0

closed time in 3 months

ultrasaurus

issue commentrust-lang/rust

incorrect error message for duplicate Send impl

Fixed in latest nightly

error[E0119]: conflicting implementations of trait `std::marker::Send` for type `Foo`:
 --> src/main.rs:4:1
  |
3 | unsafe impl Send for Foo {}
  | ------------------------ first implementation here
4 | unsafe impl Send for Foo {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Foo`
ultrasaurus

comment created time in 3 months

push eventcsmoe/rust

csmoe

commit sha a1104b4dea0e0d3b35fa73c7f7c186f76b23db78

bless ui tests

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha ffd9ee86fa8a9b2af7a009ac5ba200d6e7bc1ab6

bless ui tests

view details

push time in 3 months

issue closedrust-lang/rust

A `rustc`-internal compile error on future and task API

Today when I tried this piece of code:

#![feature(async_await, gen_future)]

use core::task::Context;
use core::task::Poll;
use core::pin::Pin;
use core::future::Future;
use std::future::poll_with_tls_context;

struct CountdownFuture(u32);

impl Future for CountdownFuture {
    type Output = ();

    fn poll(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output> {
        if self.0 == 0 {
            Poll::Ready(())
        } else {
            self.0 -= 1;
            Poll::Pending
        }
    }
}

fn main() {
    let mut fut = CountdownFuture(3);
    let pin = Pin::new(&mut fut);
    let res = poll_with_tls_context(pin);
    println!("{:?}", res);
}

I expected to see a line of debug formatted output representing a Poll::Pending state is set for variable res. However, when I execute this piece of code, a compile error occurred:

   Finished dev [unoptimized + debuginfo] target(s) in 0.32s
     Running `target\debug\test-futures.exe`
thread 'main' panicked at 'TLS Context not set. This is a rustc bug. Please file an issue on https://github.com/rust-lang/rust.', src\libcore\option.rs:1036:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
error: process didn't exit successfully: `target\debug\test-futures.exe` (exit code: 101)

And with RUST_BACKTRACE=1:

    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target\debug\test-futures.exe`
thread 'main' panicked at 'TLS Context not set. This is a rustc bug. Please file an issue on https://github.com/rust-lang/rust.', src\libcore\option.rs:1036:5
stack backtrace:
   0: backtrace::backtrace::trace_unsynchronized
             at C:\Users\appveyor\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.25\src\backtrace\mod.rs:66
   1: std::sys_common::backtrace::_print
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\sys_common\backtrace.rs:47
   2: std::sys_common::backtrace::print
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\sys_common\backtrace.rs:36
   3: std::panicking::default_hook::{{closure}}
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\panicking.rs:197
   4: std::panicking::default_hook
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\panicking.rs:211
   5: std::panicking::rust_panic_with_hook
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\panicking.rs:474
   6: std::panicking::continue_panic_fmt
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\panicking.rs:381
   7: std::panicking::rust_begin_panic
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\panicking.rs:308
   8: core::panicking::panic_fmt
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libcore\panicking.rs:85
   9: core::option::expect_failed
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libcore\option.rs:1036
  10: core::option::Option<core::ptr::non_null::NonNull<core::task::wake::Context>>::expect<core::ptr::non_null::NonNull<core::task::wake::Context>>
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\src\libcore\option.rs:314
  11: std::future::get_task_context<closure,core::task::poll::Poll<()>>
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\src\libstd\future.rs:95
  12: std::future::poll_with_tls_context<test_futures::CountdownFuture>
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\src\libstd\future.rs:114
  13: test_futures::main
             at .\src\main.rs:27
  14: std::rt::lang_start::{{closure}}<()>
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\src\libstd\rt.rs:64
  15: std::rt::lang_start_internal::{{closure}}
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\rt.rs:49
  16: std::panicking::try::do_call<closure,i32>
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\panicking.rs:293
  17: panic_unwind::__rust_maybe_catch_panic
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libpanic_unwind\lib.rs:85
  18: std::panicking::try
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\panicking.rs:272
  19: std::panic::catch_unwind
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\panic.rs:388
  20: std::rt::lang_start_internal
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\/src\libstd\rt.rs:48
  21: std::rt::lang_start<()>
             at /rustc/627486af15d222bcba336b12ea92a05237cc9ab1\src\libstd\rt.rs:64
  22: main
  23: invoke_main
             at d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  24: __scrt_common_main_seh
             at d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  25: BaseThreadInitThunk
  26: RtlUserThreadStart
error: process didn't exit successfully: `target\debug\test-futures.exe` (exit code: 101)

It seems that there is an internal issue with rustc itself. Does anyone met the same problem or similar issues as me? Or is there something wrong with my code? BTW, I doubt that I may need to change a executor function other than poll_with_tls_context. Here's my rustc version:

PS D:\RustProjects\test-futures> rustc -V
rustc 1.37.0-nightly (627486af1 2019-06-02)

I'm using rustc target nightly-x86_64-pc-windows-msvc on Windows 10.

closed time in 3 months

luojia65

issue commentrust-lang/rust

A `rustc`-internal compile error on future and task API

tls prerequisite was removed from future.

luojia65

comment created time in 3 months

push eventcsmoe/rust

Aaron Hill

commit sha 32c360b993d9706d48e1b216b1a35f3bdf422574

[perf] Skip attempting to run coerce_unsized on an inference variable See the included comment for a detailed explanation of why this is sound.

view details

Aaron Hill

commit sha ff6e4ee7ad9b61d1ac1ae85fff14c4dacb66034f

Use resolved types in body of coerce_unsized

view details

Matthew Jasper

commit sha 4dd47d3b78a2b6f45dd382ac58fb182e40293ca3

Fix ICE for broken or-pattern in async fn

view details

Stein Somers

commit sha 8f5c66c6a30cb770da3da953fa911b6c7a5769bb

Introduce BTreeMap benches of iter itself

view details

Stein Somers

commit sha 873022797ae7f09872738c7367d8d658a1a34ad5

Speed up BTreeMap iteration by intertwined descend to the initial leaf edges

view details

Stefan Lankes

commit sha 4d3cf5bd9b6c48e5116fb8d9747a7a2dbde09d1d

use new interface to create threads on HermitCore - the new interface allows to define the stack size

view details

Stefan Lankes

commit sha 2c43746758f4bc60bd4dda30a761cf48d1f60635

use nicer code style to define DEFAULT_MIN_STACK_SIZE

view details

Guillaume Gomez

commit sha 9ae85e19dfb6172692908c514f4b4613fe8fe792

Unify lints handling in rustdoc

view details

Dylan MacKenzie

commit sha 1f7c8967dcb695ebc645c9e920c14c9db1e3a440

Ensure that `./x.py doc --stage 0 src/libstd` works via CI

view details

Matthew Maurer

commit sha 0e7d5be4b808bd7ccb1d45aa8f7e5026a15aee93

Use .init_array rather than .ctors LLVM TargetMachines default to using the (now-legacy) .ctors representation of init functions. Mixing .ctors and .init_array representations can cause issues when linking with lld. This happens in practice for: * Our profiling runtime which is currently implicitly built with .init_array since it is built by clang, which sets this field. * External C/C++ code that may be linked into the same process. To support legacy systems which may use .ctors, targets may now specify that they use .ctors via the use_ctors attribute which defaults to false. For debugging and manual control, -Z use-ctors-section=yes/no will allow manual override. Fixes: #71233

view details

Jubilee Young

commit sha cd4c30940fdbc6755d5e10f2b6f74f6959f1d867

Test for zero-sized function items not ICEing

view details

mark

commit sha 9e43b00d4fe2660573e40ec9125290b1d9974e44

Turn of rustc-dev-guide toolstate for now

view details

Hanif Bin Ariffin

commit sha 19e5da902bf6ade2c0558383051215459754b73d

SipHasher::new() is literally with SipHasher with both keys being 0

view details

Oliver Scherer

commit sha 26edcee09309dad251532a7e1c1d96bac1562a57

Prevent stack overflow for deeply recursive code

view details

Oliver Scherer

commit sha 96c5012b57c4688a8a0a076302706bb6a1e95588

Add `psm` to the crate whitelist

view details

Simonas Kazlauskas

commit sha 968f442c7ce591e9cb03b57bb0dac30df4909b50

Set the default stack size to 8MB This was the value used before we originally started raising the stack size to infinity.

view details

Simonas Kazlauskas

commit sha a5c5365031ce8ec3926e06e207e16e58c4bf3e8b

Move ensure_sufficient_stack to data_structures We anticipate this to have uses in all sorts of crates and keeping it in `rustc_data_structures` enables access to it from more locations without necessarily pulling in the large `librustc` crate.

view details

Simonas Kazlauskas

commit sha a569f2970af629d012b08cf5869e2d3a300ff500

Update psm and stacker to 0.1.7

view details

Vadim Petrochenkov

commit sha 33b6631d9b2c79c548a9abdaf585a230b5f14ad9

Enable `cfg` predicate for `target_feature = "crt-static"` only if the target supports it

view details

Luca Gladiator

commit sha aab345794f4a657937881de75934a7c31064efeb

Make BTreeMap::new and BTreeSet::new const

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha e37b35605d9c28e3d9ff17bb7e007adb9aef86f3

remove try_trait lang item

view details

csmoe

commit sha 733b0f9715ce4435748c31b28d17919d47620963

bless ui tests

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 76156f360e3ba0a7dec7552890b08182029c36fd

suggest await before try when performing trait selection

view details

push time in 3 months

issue closedrust-lang/rust

thread 'rustc' panicked at 'failed to lookup `SourceFile` in new context', src/librustc_middle/ty/query/on_disk_cache.rs:456:17

I was attempting to use rocket.rs as a file server. Using Rust Analysis from the VSC Rust extension, the code seems to be fine. When compiling on Rust Nightly, I get this lovely error:

thread 'rustc' panicked at 'failed to lookup `SourceFile` in new context', src/librustc_middle/ty/query/on_disk_cache.rs:456:17

Here's everything that I think is required: Backtrace: https://haste.natsumi.dev/acadolikuz.txt

lunar@J-Laptop-Ubuntu:~/Code/Github/File Server/v2$ rustc --version --verbose
rustc 1.45.0-nightly (bad3bf622 2020-05-09)
binary: rustc
commit-hash: bad3bf622bded50a97c0a54e29350eada2a3a169
commit-date: 2020-05-09
host: x86_64-unknown-linux-gnu
release: 1.45.0-nightly
LLVM version: 9.0

Cargo.toml:

[package]
name = "file_server"
version = "0.1.0"
authors = ["Lunar <lunar@forsaken-borders.net>"]
edition = "2018"

[dependencies]
rocket = "0.4.4"

Source: https://haste.natsumi.dev/unuzeyigay.rs

If anything else is required, please let me know.

closed time in 3 months

OoLunar

push eventcsmoe/rust

csmoe

commit sha fd5a4b587cb86263581da488373a67ba9173ca4c

add try trait as lang item

view details

csmoe

commit sha 9404ff9a38ca7323ea1f17b5eb8c4d5977b76c8e

normalize Future::Ouput

view details

push time in 3 months

pull request commentrust-lang/rust

Record lifetime constraints inside generator interior

@Dylan-DPC working on the panic.

csmoe

comment created time in 3 months

issue commentrust-lang/rust

Enhance Error Message For Misusing Methods As Functions

error[E0433]: failed to resolve: use of undeclared type or module 's'

the error message already mentions type and module, implies what is expected here, kind of obvious I think?

xfoxfu

comment created time in 3 months

push eventcsmoe/rust

csmoe

commit sha c9e146515ba391410069a6fe3e55a4a1935bc5ae

checking on either interior or upvar

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha d609dcbe9383e8f8abbccb771a5459a807448c52

checking on either interior or upvar

view details

push time in 3 months

create barnchcsmoe/polonius

branch : issue-110

created branch time in 3 months

create barnchcsmoe/polonius

branch : issue-112

created branch time in 3 months

push eventcsmoe/rust

csmoe

commit sha 612a5b0f24a1e5963fc8248cfed909cb73092b74

checking on either interior or upvar

view details

push time in 3 months

push eventrust-lang/wg-async-foundations

csmoe

commit sha b38e8df179f8097221f0174d95b9c19674a7cd99

add notes on io_uring

view details

push time in 3 months

pull request commentrust-lang/rust

Suggest to await future before ? operator

r? @tmandry

csmoe

comment created time in 3 months

PR opened rust-lang/rust

Suggest to await future before ? operator

Closes #61076

+13 -0

0 comment

2 changed files

pr created time in 3 months

create barnchcsmoe/rust

branch : issue-61076

created branch time in 3 months

push eventcsmoe/rust

csmoe

commit sha d2e5a8e2e966df119021e3db6f6d4c2e189865cd

bless issue-70818 test case

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha 6468b61b0075316889d1a1fa498afb6d8869ae8b

bless issue-70818 test case

view details

push time in 3 months

Pull request review commentrust-lang/rust

Record upvars in generator interior

 impl<'a, 'tcx> InteriorVisitor<'a, 'tcx> {                     unresolved_type, unresolved_type_span                 );                 self.prev_unresolved_span = unresolved_type_span;

I'd tackle this in the future.

csmoe

comment created time in 3 months

push eventcsmoe/rust

csmoe

commit sha d4bdcfd3cfbfa025c5363149a14f2b36a584b54a

don't record upvars into generator interior

view details

csmoe

commit sha 382a963c17122470918e1491a733b81fb545330d

filter upvars that cause trait obligation

view details

csmoe

commit sha 3bf9e5a719890134b8b4d735a3f59bbd526b9405

bless issue-70818 test case

view details

push time in 3 months

issue closedrust-lang/rust

request: use a discord alternative

use one that is open source and free software license. It really not a good decision to use a proprietary chat platform.

closed time in 3 months

mobop

issue commentrust-lang/rust

request: use a discord alternative

cc https://rust-lang.github.io/compiler-team/about/chat-platform/

mobop

comment created time in 3 months

push eventcsmoe/rust

csmoe

commit sha a5d103ff90f4ad90b1f13f5b5de83a3eb758d9e2

record upvar into GeneratorInteriorTypeCause

view details

push time in 3 months

push eventcsmoe/rust

csmoe

commit sha afd53b73fee4db06121630782cd37af64de5d436

record upvar into GeneratorInteriorTypeCause

view details

push time in 3 months

PR opened rust-lang/rust

Record upvars in generator interior

Closes #70818 r? @tmandry

+49 -12

0 comment

4 changed files

pr created time in 3 months

more