Skip to content

Commit 701e494

Browse files
committed
Remove a bunch of stray backticks
Thanks VSCode!
1 parent 31e0383 commit 701e494

11 files changed

Lines changed: 16 additions & 16 deletions

File tree

compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
714714
// Errors for `ConstEvaluatable`, `ConstEquate` predicates show up as
715715
// `SelectionError::ConstEvalFailure`, not `Unimplemented`.
716716
// Ambiguous predicates should never error.
717-
// We never return `Err` when proving `UnstableFeature`` goal.
717+
// We never return `Err` when proving `UnstableFeature` goal.
718718
ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(..))
719719
| ty::PredicateKind::ConstEquate { .. }
720720
| ty::PredicateKind::Ambiguous

src/tools/clippy/clippy_lints/src/default_numeric_fallback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<'tcx> Visitor<'tcx> for NumericFallbackVisitor<'_, 'tcx> {
133133
if let Some(fn_sig) = self.cx.tcx.parent_hir_node(expr.hir_id).fn_sig()
134134
&& let FnRetTy::Return(_ty) = fn_sig.decl.output
135135
{
136-
// We cannot check the exact type since it's a `hir::Ty`` which does not implement `is_numeric`
136+
// We cannot check the exact type since it's a `hir::Ty` which does not implement `is_numeric`
137137
self.ty_bounds.push(ExplicitTyBound(true));
138138
for stmt in *stmts {
139139
self.visit_stmt(stmt);

src/tools/miri/src/shims/os_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
282282
*c = sep;
283283
}
284284
}
285-
// If this starts with `//?/`, it was probably produced by `unix_to_windows`` and we
285+
// If this starts with `//?/`, it was probably produced by `unix_to_windows` and we
286286
// remove the `//?` that got added to get the Unix path back out.
287287
if path.get(0..4) == Some(&[sep, sep, b'?'.into(), sep]) {
288288
// Remove first 3 characters. It still starts with `/` so it is absolute on Unix.

src/tools/run-make-support/src/external_deps/rustc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ impl Rustc {
190190
self
191191
}
192192

193-
/// Specify path to the output file. Equivalent to `-o`` in rustc.
193+
/// Specify path to the output file. Equivalent to `-o` in rustc.
194194
pub fn output<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
195195
self.cmd.arg("-o");
196196
self.cmd.arg(path.as_ref());
197197
self
198198
}
199199

200-
/// Specify path to the output directory. Equivalent to `--out-dir`` in rustc.
200+
/// Specify path to the output directory. Equivalent to `--out-dir` in rustc.
201201
pub fn out_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
202202
self.cmd.arg("--out-dir");
203203
self.cmd.arg(path.as_ref());

src/tools/rust-analyzer/crates/hir-ty/src/traits.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ pub fn is_inherent_impl_coherent(db: &dyn HirDatabase, def_map: &DefMap, impl_id
232232

233233
/// Checks whether the impl satisfies the orphan rules.
234234
///
235-
/// Given `impl<P1..=Pn> Trait<T1..=Tn> for T0`, an `impl`` is valid only if at least one of the following is true:
235+
/// Given `impl<P1..=Pn> Trait<T1..=Tn> for T0`, an `impl` is valid only if at least one of the following is true:
236236
/// - Trait is a local trait
237237
/// - All of
238-
/// - At least one of the types `T0..=Tn`` must be a local type. Let `Ti`` be the first such type.
239-
/// - No uncovered type parameters `P1..=Pn` may appear in `T0..Ti`` (excluding `Ti`)
238+
/// - At least one of the types `T0..=Tn` must be a local type. Let `Ti` be the first such type.
239+
/// - No uncovered type parameters `P1..=Pn` may appear in `T0..Ti` (excluding `Ti`)
240240
pub fn check_orphan_rules<'db>(db: &'db dyn HirDatabase, impl_: ImplId) -> bool {
241241
let Some(impl_trait) = db.impl_trait(impl_) else {
242242
// not a trait impl
@@ -277,10 +277,10 @@ pub fn check_orphan_rules<'db>(db: &'db dyn HirDatabase, impl_: ImplId) -> bool
277277
}
278278
}
279279
};
280-
// - At least one of the types `T0..=Tn`` must be a local type. Let `Ti`` be the first such type.
280+
// - At least one of the types `T0..=Tn` must be a local type. Let `Ti` be the first such type.
281281

282282
// FIXME: param coverage
283-
// - No uncovered type parameters `P1..=Pn` may appear in `T0..Ti`` (excluding `Ti`)
283+
// - No uncovered type parameters `P1..=Pn` may appear in `T0..Ti` (excluding `Ti`)
284284
let is_not_orphan = trait_ref.args.types().any(|ty| match unwrap_fundamental(ty).kind() {
285285
TyKind::Adt(adt_def, _) => is_local(adt_def.def_id().module(db).krate(db)),
286286
TyKind::Error(_) => true,

src/tools/rust-analyzer/crates/mbe/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub(crate) enum Op {
109109
},
110110
Count {
111111
name: Symbol,
112-
// FIXME: `usize`` once we drop support for 1.76
112+
// FIXME: `usize` once we drop support for 1.76
113113
depth: Option<usize>,
114114
},
115115
Concat {

src/tools/rust-analyzer/crates/project-model/src/workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ impl ProjectWorkspace {
748748
.packages()
749749
.filter_map(|pkg| {
750750
if ws[pkg].is_local {
751-
// the local ones are included in the main `PackageRoot`` below
751+
// the local ones are included in the main `PackageRoot` below
752752
return None;
753753
}
754754
let pkg_root = ws[pkg].manifest.parent().to_path_buf();

tests/ui/async-await/async-closures/dont-ice-when-body-tainted-by-errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn main() {
1111
// Type error here taints the environment. This causes us to fallback all
1212
// variables to `Error`. This means that when we compute the upvars for the
1313
// *outer* coroutine-closure, we don't actually see any upvars since `MemCategorization`
14-
// and `ExprUseVisitor`` will bail early when it sees error. This means
14+
// and `ExprUseVisitor` will bail early when it sees error. This means
1515
// that our underlying assumption that the parent and child captures are
1616
// compatible ends up being broken, previously leading to an ICE.
1717
trait_error::<()>();

tests/ui/parser/const-block-items/pub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
//@ check-pass
44

5-
// FIXME(const_block_items): `pub`` is useless here
5+
// FIXME(const_block_items): `pub` is useless here
66
pub const {
77
assert!(true);
88
}

tests/ui/parser/raw/raw-idents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//@[e2024] edition:2024
77

88
// Ensure that all (usable as identifier) keywords work as raw identifiers in all positions.
9-
// This was motivated by issue #137128, where `r#move`/`r#static`` did not work as `const` names
9+
// This was motivated by issue #137128, where `r#move`/`r#static` did not work as `const` names
1010
// due to a parser check not acounting for raw identifiers.
1111

1212
#![crate_type = "lib"]

0 commit comments

Comments
 (0)