diff options
| author | John Hodge <tpg@mutabah.net> | 2018-06-02 14:47:19 +0800 |
|---|---|---|
| committer | John Hodge <tpg@mutabah.net> | 2018-06-02 14:47:35 +0800 |
| commit | 50ef0034194c2dc1d2fb5730231c8566f405f1f6 (patch) | |
| tree | 79fb84d252bc12a1114404d95b5edb4dce5e813f /src/hir_conv | |
| parent | 520cf26fb2fe7498c6c7ff303ae957aa42719405 (diff) | |
| download | mrust-50ef0034194c2dc1d2fb5730231c8566f405f1f6.tar.gz | |
All - Warning cleanup when built with clang
Diffstat (limited to 'src/hir_conv')
| -rw-r--r-- | src/hir_conv/bind.cpp | 4 | ||||
| -rw-r--r-- | src/hir_conv/expand_type.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/hir_conv/bind.cpp b/src/hir_conv/bind.cpp index f8a06013..5418da85 100644 --- a/src/hir_conv/bind.cpp +++ b/src/hir_conv/bind.cpp @@ -319,7 +319,7 @@ namespace { } } } - void visit_params(::HIR::GenericParams& params) + void visit_params(::HIR::GenericParams& params) override { static Span sp; for(auto& bound : params.m_bounds) @@ -422,7 +422,7 @@ namespace { upper_visitor(uv) {} - void visit_generic_path(::HIR::Visitor::PathContext pc, ::HIR::GenericPath& p) + void visit_generic_path(::HIR::Visitor::PathContext pc, ::HIR::GenericPath& p) override { upper_visitor.visit_generic_path(p, pc); } diff --git a/src/hir_conv/expand_type.cpp b/src/hir_conv/expand_type.cpp index 6802cf22..dcdf79bd 100644 --- a/src/hir_conv/expand_type.cpp +++ b/src/hir_conv/expand_type.cpp @@ -208,11 +208,11 @@ public: {} // TODO: Use the other visitors. - void visit_path(::HIR::Visitor::PathContext pc, ::HIR::Path& p) + void visit_path(::HIR::Visitor::PathContext pc, ::HIR::Path& p) override { upper_visitor.visit_path(p, pc); } - void visit_generic_path(::HIR::Visitor::PathContext pc, ::HIR::GenericPath& p) + void visit_generic_path(::HIR::Visitor::PathContext pc, ::HIR::GenericPath& p) override { upper_visitor.visit_generic_path(p, pc); } |
