Skip to content

Commit

Permalink
Lower moved fn's visibility to supermodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Cengiz Can committed Feb 27, 2017
1 parent d21b0e3 commit 2f8ef50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/infer/error_reporting/note.rs
Expand Up @@ -14,7 +14,7 @@ use ty::error::TypeError;
use errors::DiagnosticBuilder;

impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
pub fn note_region_origin(&self, err: &mut DiagnosticBuilder, origin: &SubregionOrigin<'tcx>) {
pub(super) fn note_region_origin(&self, err: &mut DiagnosticBuilder, origin: &SubregionOrigin<'tcx>) {
match *origin {
infer::Subtype(ref trace) => {
if let Some((expected, found)) = self.values_str(&trace.values) {
Expand Down Expand Up @@ -178,7 +178,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
}
}

pub fn report_concrete_failure(&self,
pub(super) fn report_concrete_failure(&self,
origin: SubregionOrigin<'tcx>,
sub: &'tcx Region,
sup: &'tcx Region)
Expand Down

0 comments on commit 2f8ef50

Please sign in to comment.