Skip to content

Commit c766aa4

Browse files
committed
rustc: Make report_cycle and CycleError private
1 parent c77213d commit c766aa4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc/ty/maps.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use errors::DiagnosticBuilder;
1211
use dep_graph::{DepConstructor, DepNode, DepNodeIndex};
1312
use errors::{Diagnostic, DiagnosticBuilder};
1413
use hir::def_id::{CrateNum, DefId, LOCAL_CRATE};
@@ -213,13 +212,13 @@ impl<M: QueryDescription> QueryMap<M> {
213212
}
214213
}
215214

216-
pub struct CycleError<'a, 'tcx: 'a> {
215+
struct CycleError<'a, 'tcx: 'a> {
217216
span: Span,
218217
cycle: RefMut<'a, [(Span, Query<'tcx>)]>,
219218
}
220219

221220
impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
222-
pub fn report_cycle(self, CycleError { span, cycle }: CycleError)
221+
fn report_cycle(self, CycleError { span, cycle }: CycleError)
223222
-> DiagnosticBuilder<'a>
224223
{
225224
// Subtle: release the refcell lock before invoking `describe()`

0 commit comments

Comments
 (0)