profile
viewpoint

emacsist/emacsist 1

org-mode blog

emacsist/go-notify-center 1

Go写的消息中心服务

emacsist/golang-weibo-sdk 1

golang-weibo-sdk

emacsist/2018-IJCAI-top3 0

This 2018 IJCAI alimama Top3 Code

emacsist/alfred-fund 0

查询基金信息

emacsist/alfred-wb-token 0

alfred-wb-token

startedtoml-lang/toml

started time in 4 days

push eventemacsist/socks-rs

emacsist

commit sha 1f71ff31525e036f29453aa3063496d9f3e3681f

add flush

view details

push time in 17 days

push eventemacsist/socks-rs

emacsist

commit sha 25b6db1cec10efd31826c7ee9e4e7cdad5c89f2d

update readme

view details

push time in 17 days

push eventemacsist/socks-rs

emacsist

commit sha 3d9f802c417765119871f51d17d60edd33d238cf

update

view details

push time in 17 days

push eventemacsist/socks-rs

emacsist

commit sha 87bb1aaa7a1635d3754fb78bd923c1f733f7d19f

[update] exclude idea

view details

push time in 17 days

create barnchemacsist/socks-rs

branch : master

created branch time in 17 days

created repositoryemacsist/socks-rs

created time in 17 days

startedasync-graphql/async-graphql

started time in 17 days

startedelixirschool/elixirschool

started time in a month

startedfacebook/zstd

started time in a month

starteddocsifyjs/docsify

started time in a month

startedtonsky/FiraCode

started time in 2 months

startedGeal/nom

started time in 2 months

issue commentrust-lang/rust-clippy

Run clippy panic

Sorry, code the is company project, so it's inconvenient to share.

The output is

    Checking rtb-rust v0.1.0 (/home/hello/rtb-rust)
thread 'rustc' panicked at 'assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32', src/librustc_span/source_map.rs:906:17
stack backtrace:
thread 'rustc' panicked at 'assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32', src/librustc_span/source_map.rs:906:17
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
   0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86
   1: backtrace::backtrace::trace_unsynchronized
   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
             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
   3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
             at src/libstd/sys_common/backtrace.rs:59
   4: core::fmt::write
             at src/libcore/fmt/mod.rs:1076
   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: clippy_driver::report_clippy_ice
  11: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
             at /home/hello/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/liballoc/boxed.rs:1090
  12: proc_macro::bridge::client::<impl proc_macro::bridge::Bridge>::enter::{{closure}}::{{closure}}
             at /home/hello/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libproc_macro/bridge/client.rs:318
  13: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:490
   4: core::fmt::write
             at src/libcore/fmt/mod.rs:1076
   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: clippy_driver::report_clippy_ice
  11: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
             at /home/hello/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/liballoc/boxed.rs:1090
  12: proc_macro::bridge::client::<impl proc_macro::bridge::Bridge>::enter::{{closure}}::{{closure}}
             at /home/hello/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libproc_macro/bridge/client.rs:318
  13: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:490
  14: std::panicking::begin_panic
  15: rustc_span::source_map::SourceMap::bytepos_to_file_charpos
  16: rustc_span::source_map::SourceMap::lookup_char_pos
  17: rustc_errors::emitter::EmitterWriter::get_multispan_max_line_num
  18: <rustc_errors::emitter::EmitterWriter as rustc_errors::emitter::Emitter>::emit_diagnostic
  19: <rustc_errors::json::JsonEmitter as rustc_errors::emitter::Emitter>::emit_diagnostic
  20: rustc_errors::HandlerInner::emit_diagnostic
  14: std::panicking::begin_panic
  15: rustc_span::source_map::SourceMap::bytepos_to_file_charpos
  16: rustc_span::source_map::SourceMap::lookup_char_pos
  21: rustc_errors::diagnostic_builder::DiagnosticBuilder::emit
  17: rustc_errors::emitter::EmitterWriter::get_multispan_max_line_num
  18: <rustc_errors::emitter::EmitterWriter as rustc_errors::emitter::Emitter>::emit_diagnostic
  22: core::ops::function::FnOnce::call_once{{vtable.shim}}
  19: <rustc_errors::json::JsonEmitter as rustc_errors::emitter::Emitter>::emit_diagnostic
  20: rustc_errors::HandlerInner::emit_diagnostic
  21: rustc_errors::diagnostic_builder::DiagnosticBuilder::emit
  22: core::ops::function::FnOnce::call_once{{vtable.shim}}
  23: rustc_middle::lint::struct_lint_level::struct_lint_level_impl
  23: rustc_middle::lint::struct_lint_level::struct_lint_level_impl
  24: rustc_lint::levels::LintLevelsBuilder::struct_lint
  24: rustc_lint::levels::LintLevelsBuilder::struct_lint
  25: <clippy_lints::tabs_in_doc_comments::TabsInDocComments as rustc_lint::passes::EarlyLintPass>::check_attribute
  25: <clippy_lints::tabs_in_doc_comments::TabsInDocComments as rustc_lint::passes::EarlyLintPass>::check_attribute
  26: <rustc_lint::early::EarlyLintPassObjects as rustc_lint::passes::EarlyLintPass>::check_attribute
  26: <rustc_lint::early::EarlyLintPassObjects as rustc_lint::passes::EarlyLintPass>::check_attribute
  27: rustc_ast::visit::walk_item
  28: rustc_ast::visit::walk_mod
  29: rustc_ast::visit::walk_item
  30: rustc_ast::visit::walk_mod
  31: rustc_ast::visit::walk_item
  32: rustc_ast::visit::walk_mod
  27: rustc_ast::visit::walk_item
  28: rustc_ast::visit::walk_mod
  29: rustc_ast::visit::walk_item
  30: rustc_ast::visit::walk_mod
  31: rustc_ast::visit::walk_item
  32: rustc_ast::visit::walk_mod
  33: rustc_lint::early::early_lint_crate
  33: rustc_lint::early::early_lint_crate
  34: rustc_lint::early::check_ast_crate
  34: rustc_lint::early::check_ast_crate
  35: rustc_session::utils::<impl rustc_session::session::Session>::time
  36: rustc_interface::passes::BoxedResolver::access::{{closure}}
  37: rustc_interface::passes::configure_and_expand::{{closure}}
  38: rustc_interface::queries::Queries::lower_to_hir
  35: rustc_session::utils::<impl rustc_session::session::Session>::time
  39: rustc_interface::queries::Queries::global_ctxt
  40: rustc_interface::interface::run_compiler_in_existing_thread_pool
  36: rustc_interface::passes::BoxedResolver::access::{{closure}}
  37: rustc_interface::passes::configure_and_expand::{{closure}}
  38: rustc_interface::queries::Queries::lower_to_hir
  39: rustc_interface::queries::Queries::global_ctxt
  40: rustc_interface::interface::run_compiler_in_existing_thread_pool
  41: rustc_ast::attr::with_globals
  41: rustc_ast::attr::with_globals
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: internal compiler error: unexpected panic

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

note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new

note: Clippy version: clippy 0.0.212 (5c1f21c 2020-07-13)

query stack during panic:
end of query stack
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: internal compiler error: unexpected panic

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

note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new

note: Clippy version: clippy 0.0.212 (5c1f21c 2020-07-13)

query stack during panic:
end of query stack
error: could not compile `rtb-rust`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

emacsist

comment created time in 2 months

startedparitytech/substrate

started time in 2 months

startedDhghomon/easy_rust

started time in 2 months

startedrust-lang/rustup

started time in 2 months

issue commentrust-lang/rust-clippy

Run clippy panic

Thanks for the report. Is the code you run clippy on available somehow?

cargo clippy is OK

emacsist

comment created time in 2 months

startedhoodie/concatenation_benchmarks-rs

started time in 2 months

push eventemacsist/emacsist.github.io

emacsist

commit sha 74857bf841f09a887f6b8dd9d3307af0c419a5aa

rebuilding site Thu Jul 23 16:42:53 CST 2020

view details

push time in 2 months

startedrust-lang/cargo

started time in 2 months

issue openedrust-lang/rust-clippy

Run clippy panic

env

  • clippy: clippy 0.0.212 (5c1f21c 2020-07-13)
  • rustc : rustc 1.45.0 (5c1f21c3b 2020-07-13)
  • os: Mint 18.3 sylvia
 $ cargo clippy --all-targets --all-features -- -D warnings
    Checking rtb-rust v0.1.0 (/home/hello/rtb-rust)
thread 'rustc' panicked at 'assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32', src/librustc_span/source_map.rs:906:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

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

note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new

note: Clippy version: clippy 0.0.212 (5c1f21c 2020-07-13)

thread 'rustc' panicked at 'assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32', src/librustc_span/source_map.rs:906:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

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

note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new

note: Clippy version: clippy 0.0.212 (5c1f21c 2020-07-13)

error: could not compile `rtb-rust`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

created time in 2 months

push eventemacsist/emacsist.github.io

emacsist

commit sha afb65d6755264dea76b12c1283fc9b2ccb296f80

rebuilding site Wed Jul 22 22:30:59 CST 2020

view details

push time in 2 months

issue openedmatklad/once_cell

how to init with async method

created time in 2 months

issue commentCleverCloud/lapin

Recovery from network failures

There is currently no auto-reconnection feature in lapin, indeed.

Splitting the AMQP stuff in its own async fn and using the on_error hook to re-spawn it is the best way to handle this atm, I think. As it's usually quite easy to do just that, and adding automatic recovery can add a lot of complexity, there hasn't been any plan to implement such a thing yet, but we could explore this idea at some point

Is there any demo ? e.g. A publish message to rabbitmq broker method, how to recover by on_error hook ?

LukeMathWalker

comment created time in 2 months

startedgetzola/zola

started time in 2 months

startedlibra/libra

started time in 2 months

startedxacrimon/dashmap

started time in 2 months

issue closedCleverCloud/lapin

How to use lapin on multi thread cnotext ?

any examples ? thanks

closed time in 3 months

emacsist

issue commentCleverCloud/lapin

How to use lapin on multi thread cnotext ?

Oh, I test ok. thanks very very much.

emacsist

comment created time in 3 months

issue commentCleverCloud/lapin

How to use lapin on multi thread cnotext ?

I still don't know how to use it with warp . Hope there are some examples for web env. thanks.

warp filter can not use async function, and the lapin create channel is async .

emacsist

comment created time in 3 months

issue commentCleverCloud/lapin

How to use lapin on multi thread cnotext ?

Thanks, I'll try it out

emacsist

comment created time in 3 months

issue commentCleverCloud/lapin

How to use lapin on multi thread cnotext ?

Nothing specific to do here, do you have an example of what you’re trying to do?

e.g. Use lapin with warp to handle request , and publish message ?

emacsist

comment created time in 3 months

issue openedCleverCloud/lapin

How to use lapin on multi thread cnotext ?

any examples ? thanks

created time in 3 months

startedmitsuhiko/redis-rs

started time in 3 months

startedyewstack/yew

started time in 3 months

startedadobe-fonts/source-code-pro

started time in 3 months

starteddylanaraps/neofetch

started time in 3 months

starteddylanaraps/pure-bash-bible

started time in 3 months

startedraspberrypi/documentation

started time in 3 months

fork emacsist/mdbook-toc

A preprocessor for mdbook to add inline Table of Contents support.

fork in 3 months

push eventemacsist/emacsist.github.io

emacsist

commit sha e93d60e3da5cc798fb4c049bf3559c90115d059b

rebuilding site Fri Jul 3 00:00:21 CST 2020

view details

push time in 3 months

startedrust-lang/mdBook

started time in 3 months

startedrust-unofficial/awesome-rust

started time in 3 months

create barnchemacsist/ipv6_rs

branch : master

created branch time in 3 months

created repositoryemacsist/ipv6_rs

created time in 3 months

create barnchemacsist/ipv6_rs

branch : master

created branch time in 3 months

created repositoryemacsist/ipv6_rs

created time in 3 months

push eventemacsist/ipdb-rs

emacsist

commit sha b6b5bffd844472290bc0dc43ad2d80434f90c9f3

[clean]

view details

push time in 3 months

push eventemacsist/ipdb-rs

emacsist

commit sha d2f633a9e0c71f740a12ba0b1e26f6664c92481a

[update]add bench vs java version

view details

push time in 3 months

push eventemacsist/ipdb-rs

emacsist

commit sha 469f4f7e1fd2f521d39366f973558f07cc0833a4

[update] readme

view details

push time in 3 months

issue openedipipdotnet/ipdb-rust

自写了个 Rust 版本的 IPDB 解析

https://github.com/emacsist/ipdb-rs

基本上是 Java 版本的翻译.

https://crates.io/crates/ipdb_rs

created time in 3 months

push eventemacsist/ipdb-rs

emacsist

commit sha 5aa73c4382f943afb58bfccf8acf3dd9383ff066

[update ignore for idea]

view details

emacsist

commit sha 7fae923427a6d373b0c7ebef43738ca72fb09d27

[update] doc format

view details

push time in 3 months

push eventemacsist/ipdb-rs

emacsist

commit sha dc2c7e8620ec9d7c34effa2baa3b97f084008c62

[update package ]

view details

push time in 3 months

push eventemacsist/ipdb-rs

emacsist

commit sha f6a138a683e9ec58832f9fba3678f357d4451f20

[clean debug]

view details

push time in 3 months

push eventemacsist/ipdb-rs

emacsist

commit sha 02aa5b7e7a0e5c0beb63521108bde31b8bad9b42

[update]

view details

push time in 3 months

push eventemacsist/ipdb-rs

emacsist

commit sha 990d349dc4c501f2cb44c7379c4197d2c303bcaf

[update]

view details

push time in 3 months

create barnchemacsist/ipdb-rs

branch : master

created branch time in 3 months

created repositoryemacsist/ipdb-rs

created time in 3 months

startedseanmonstar/warp

started time in 3 months

startedclap-rs/clap

started time in 3 months

startedrust-lang/rust-clippy

started time in 3 months

startedchinanf-boy/rust-cookbook-zh

started time in 3 months

more