Skip to content

Commit

Permalink
Fix 'be be' constructs
Browse files Browse the repository at this point in the history
I noticed a duplicated "be" somewhere in the code. A search for it
manifested a couple more locations with the same problem. This change
removes one of the "be"s.
  • Loading branch information
d-e-s-o committed Jan 3, 2019
1 parent ec19464 commit a944ecf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/librustc/lint/levels.rs
Expand Up @@ -173,8 +173,8 @@ impl<'a> LintLevelsBuilder<'a> {

/// Pushes a list of AST lint attributes onto this context.
///
/// This function will return a `BuilderPush` object which should be be
/// passed to `pop` when this scope for the attributes provided is exited.
/// This function will return a `BuilderPush` object which should be passed
/// to `pop` when this scope for the attributes provided is exited.
///
/// This function will perform a number of tasks:
///
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/ty/query/plumbing.rs
Expand Up @@ -974,7 +974,7 @@ macro_rules! define_queries_inner {
// HACK(eddyb) it's possible crates may be loaded after
// the query engine is created, and because crate loading
// is not yet integrated with the query engine, such crates
// would be be missing appropriate entries in `providers`.
// would be missing appropriate entries in `providers`.
.unwrap_or(&tcx.queries.fallback_extern_providers)
.$name;
provider(tcx.global_tcx(), key)
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/closure.rs
Expand Up @@ -494,7 +494,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
self.infcx.commit_if_ok(|_| {
let mut all_obligations = vec![];

// The liberated version of this signature should be be a subtype
// The liberated version of this signature should be a subtype
// of the liberated form of the expectation.
for ((hir_ty, &supplied_ty), expected_ty) in decl.inputs.iter()
.zip(*supplied_sig.inputs().skip_binder()) // binder moved to (*) below
Expand Down

0 comments on commit a944ecf

Please sign in to comment.