Better HN
topnewbestaskshowjobs
Log inSign up

lzutao

12 karma · joined Jan 10, 2019 (7y ago) · 13 submissions

Submissions

comment 5y ago · link · parent

like swift you say

comment 5y ago · link · parent

> I do want to know what makes it so hard to get a platform from T2 to T1

Basically tier-1 targets must have tests run on CI for every merged commit. If anybody have a way to do that for their interest platforms, that's a huge step in making it to tier-1 platform support.

comment 6y ago · link · parent

If the function you trying to keep is in non-pub module, it will be removed. Maybe you could move it out of private module: <https://rust.godbolt.org/z/PYPbG8>.

There's also an `#[used]`[1] attribute, but only for static items. If your use case is special, consider open a feature request in Rust repo.

[1]: https://doc.rust-lang.org/nightly/reference/abi.html#the-use...

comment 6y ago · link · parent

> there is no feature in Rust to force a function to not be removed

Can we use `pub` to make it public and not to be removed ?

comment 6y ago · link · parent

So tell me if C/C++ or Kotlin do that.

comment 6y ago · link · parent

Really! So now we have personal attacking shit instead of talking about technical info.

comment 6y ago · link · parent

shellcheck.net/ is really nice to catch bugs in your bash scripts.

comment 6y ago · link · parent

> nothing compile without nightly

Have you ever compiled ripgrep?

comment 6y ago · link · parent

Really nice. I hope GitHub use this option soon.

Or maybe not: I guess it's kinda slow and heavy on computation.

comment 6y ago · link · parent

We need more volunteers to help implement those features!

comment 7y ago · link · parent

I am not serious. Often in these cases I would use printf debugging to know where the errors came.

(I am still a Rust beginner).

comment 7y ago · link · parent

Thanks through I still don't get it. I only know that you can get backtraces of errors by setting `RUST_BACKTRACE=1`.

comment 7y ago · link · parent

What are the cases when `try!` macro bettern than `?` operator? I'm a beginner to Rust so I don't know about that.