-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug format Const
's less verbosely
#111630
Conversation
@bors r+ |
This comment has been minimized.
This comment has been minimized.
@bors r- r=me tests blessed |
@bors r=compiler-errors |
This comment has been minimized.
This comment has been minimized.
… r=compiler-errors debug format `Const`'s less verbosely Not user visible change only visible to people debugging const generics. Currently debug output for `ty::Const` is super verbose (even for `-Zverbose` lol), things like printing infer vars as `Infer(Var(?0c))` instead of just `?0c`, bound vars and placeholders not using `^0_1` or `!0_1` syntax respectively. With these changes its imo better but not perfect: `Const { ty: usize, kind: ^0_1 }` is still a lot for not much information. not entirely sure what to do about that so not dealing with it yet. Need to do formatting for `ConstKind::Expr` at some point too since rn it sucks (doesn't even print anything with `Display`) not gonna do that in this PR either. r? `@compiler-errors`
@bors r- |
d983b11
to
2a554eb
Compare
@bors rollup=never (because apparently changing debug formatting is really hard to get right! 🙄) |
@bors r=compiler-errors |
☀️ Test successful - checks-actions |
Finished benchmarking commit (6c64870): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 643.756s -> 643.359s (-0.06%) |
Not user visible change only visible to people debugging const generics.
Currently debug output for
ty::Const
is super verbose (even for-Zverbose
lol), things like printing infer vars asInfer(Var(?0c))
instead of just?0c
, bound vars and placeholders not using^0_1
or!0_1
syntax respectively. With these changes its imo better but not perfect:Const { ty: usize, kind: ^0_1 }
is still a lot for not much information. not entirely sure what to do about that so not dealing with it yet.
Need to do formatting for
ConstKind::Expr
at some point too since rn it sucks (doesn't even print anything withDisplay
) not gonna do that in this PR either.r? @compiler-errors