Skip to content

Commit

Permalink
replace allow_unused with leading underscore for TyGenericParams (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
aneksteind authored Aug 2, 2023
2 parents 333d8ed + 3fcec9c commit 2f3a637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion c2rust-analyze/src/rewrite/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl<S: Sink> Emitter<'_, S> {
Rewrite::LitZero => self.emit_str("0"),

Rewrite::Print(ref s) => self.emit_str(s),
Rewrite::TyGenericParams(ref rws) => {
Rewrite::_TyGenericParams(ref rws) => {
self.emit_str("<")?;
for (index, rw) in rws.iter().enumerate() {
self.emit(rw, 0)?;
Expand Down
4 changes: 1 addition & 3 deletions c2rust-analyze/src/rewrite/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ pub enum Rewrite<S = Span> {
/// `<'a, 'b, ...>`
/// needed for cases when the span of the ADT name
/// is different from ADT generic params
#[allow(dead_code)]
TyGenericParams(Vec<Rewrite>),

_TyGenericParams(Vec<Rewrite>),
// `static` builders
/// `static` mutability (`static` <-> `static mut`)
StaticMut(Mutability, S),
Expand Down

0 comments on commit 2f3a637

Please sign in to comment.