Skip to content

Commit ff0812e

Browse files
committed
Small updates for new versions of rustc and clippy
1 parent d810782 commit ff0812e

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

docs/compiler-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| `-Oeta` `-Ono-eta` | Disabled | [eta-reduction](#eta-reduction) |
88
| `-Oprune` `-Ono-prune` | Disabled | [definition-pruning](#definition-pruning) |
99
| `-Olinearize-matches` `-Olinearize-matches-alt` `-Ono-linearize-matches` | Enabled | [linearize-matches](#linearize-matches) |
10-
| `-Ofloat_combinators` `-Ono-float_combinators` | Enabled | [float-combinators](#float-combinators) |
10+
| `-Ofloat-combinators` `-Ono-float-combinators` | Enabled | [float-combinators](#float-combinators) |
1111
| `-Omerge` `-Ono-merge` | Disabled | [definition-merging](#definition-merging) |
1212
| `-Oinline` `-Ono-inline` | Disabled | [inline](#inline) |
1313
| `-Ocheck-net-size` `-Ono-check-net-size` | Disabled | [check-net-size](#check-net-size) |

src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl Display for Diagnostic {
372372
}
373373

374374
impl Diagnostic {
375-
pub fn display_with_origin<'a>(&'a self, origin: &'a DiagnosticOrigin) -> impl std::fmt::Display + '_ {
375+
pub fn display_with_origin<'a>(&'a self, origin: &'a DiagnosticOrigin) -> impl std::fmt::Display + 'a {
376376
DisplayFn(move |f| {
377377
match origin {
378378
DiagnosticOrigin::Parsing => writeln!(f, "{self}")?,

src/fun/check/unbound_vars.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ impl Ctx<'_> {
3434
impl Term {
3535
/// Checks that all variables are bound.
3636
/// Precondition: References have been resolved, implicit binds have been solved.
37-
3837
pub fn check_unbound_vars<'a>(
3938
&'a mut self,
4039
scope: &mut Vec<Option<&'a Name>>,

src/fun/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ impl<'a> FunParser<'a> {
941941
/// Parses a tag where it may or may not be valid.
942942
///
943943
/// If it is not valid, the returned callback can be used to issue an error.
944-
fn parse_tag(&mut self) -> ParseResult<(Option<Tag>, impl FnOnce(&mut Self) -> Result<(), ParseError>)> {
944+
fn parse_tag(&mut self) -> ParseResult<(Option<Tag>, impl FnOnce(&mut Self) -> ParseResult<()>)> {
945945
let index = self.index;
946946
self.skip_trivia();
947947
let tag = if self.peek_one() == Some('#')

src/fun/term_to_net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ enum Place<'t> {
102102
Wire(usize),
103103
}
104104

105-
impl<'t, 'l> EncodeTermState<'t, 'l> {
105+
impl<'t> EncodeTermState<'t, '_> {
106106
/// Adds a subterm connected to `up` to the `inet`.
107107
/// `scope` has the current variable scope.
108108
/// `vars` has the information of which ports the variables are declared and used in.

src/hvm/prune.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct PruneState<'a> {
1919
unvisited: HashSet<String>,
2020
}
2121

22-
impl<'a> PruneState<'a> {
22+
impl PruneState<'_> {
2323
fn visit_def(&mut self, name: &str) {
2424
if self.unvisited.remove(name) {
2525
for tree in net_trees(&self.book.defs[name]) {

0 commit comments

Comments
 (0)