« first day (1102 days earlier)      last day (2372 days later) » 

2:34 PM
It troubles me a bit that the accepted answer here is to use unsafe code.
 
@Shepmaster we have rustfix
which does just what you want. step through each lint and it's suggested replacement, press a key to accept or decline
 
@E_net4 that is a great motto
 
@oli_obk-ker Its truthfulness is dubious, but it's true in safe Rust.
 
@oli_obk-ker Not exactly — I want to say "apply all fixes for the lint foo" and then I will manually perform a cargo test and a git diff — can it do that?
If not, I can file a request
 
2:41 PM
Fun fact: Ada (the standard when comparing languages for safety critical code) does not have a notion of thread safety. Because, and I quote from this years Ada Europe conference, "No developer in their right mind would use a shared variable from multiple threads". My lack of words is undescribable
2
 
@oli_obk-ker Also, rustfix needs to become part of clippy (and until y'all are comfortable with that, should at least be linked from clippy!)
 
@Shepmaster ah we don't have that really, but would be a good idea
@Shepmaster I'll try to sneak it into cargo clippy :P
 
@oli_obk-ker shall I file an issue?
What about the TODO file? what's the equivalent there?
 
@Shepmaster we have no solution for that yet, open issues for both, but on the rustfix repo pls, we'll keep them separate for now
 
@oli_obk-ker the TODO file in rustfix?
 
2:49 PM
@Shepmaster right, that makes no sense
that one on clippy :D
I wonder if we can make it so the TODO file knows which lints it has reported where, so if you add a new case of the lint in the same file, it'll still figure it out
line numbers aren't sufficient, but it might work with some structural information
although that might break on a refactoring
 
@oli_obk-ker that would be super fancy. I'm generally happy "per file", but I wonder if you could do "per type"
 
@Shepmaster I think we can generate a "path" like Foo::bar if the lint occurs in impl Foo { fn bar() { /*here*/ } }
and then complain if any new entries show up. Entries disappearing would just remove them from the TODO file
You'd still see it in git, b/c lines go away, but that's the point, right?
 
@oli_obk-ker yep.
@oli_obk-ker is this dumb though? Like, am I just asking for another implementation of #[allow(...)]?
 
@Shepmaster no, this is different
#[allow(...)] is for when you want to actually not address the lint
you want to address the lint, but not now
 
3:06 PM
@oli_obk-ker can you read over the back-and-forth in github.com/killercup/rustfix/issues/36 ?
Am I just misunderstanding killercup?
 
Yea I think those are different use cases
 
 
3 hours later…
5:48 PM
> Simplifying generic code with lifetimes.
 
people really want generics without the compiler knowing about them
And two parser questions with generics within minutes
And seriously, what is it with Rust and parsers
why the strong correlation
is it because we are so early that there aren't good enough parsers out there?
 
 
2 hours later…
8:28 PM
Aww, I lost to DK.
 

« first day (1102 days earlier)      last day (2372 days later) »