Skip to content

Commit 69b1c95

Browse files
committed
Uplift some comments to doc comments
1 parent 5f6b656 commit 69b1c95

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/librustc/ty/query/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -369,16 +369,16 @@ define_queries! { <'tcx>
369369
-> Lrc<specialization_graph::Graph>,
370370
[] fn is_object_safe: ObjectSafety(DefId) -> bool,
371371

372-
// Get the ParameterEnvironment for a given item; this environment
373-
// will be in "user-facing" mode, meaning that it is suitabe for
374-
// type-checking etc, and it does not normalize specializable
375-
// associated types. This is almost always what you want,
376-
// unless you are doing MIR optimizations, in which case you
377-
// might want to use `reveal_all()` method to change modes.
372+
/// Get the ParameterEnvironment for a given item; this environment
373+
/// will be in "user-facing" mode, meaning that it is suitabe for
374+
/// type-checking etc, and it does not normalize specializable
375+
/// associated types. This is almost always what you want,
376+
/// unless you are doing MIR optimizations, in which case you
377+
/// might want to use `reveal_all()` method to change modes.
378378
[] fn param_env: ParamEnv(DefId) -> ty::ParamEnv<'tcx>,
379379

380-
// Trait selection queries. These are best used by invoking `ty.moves_by_default()`,
381-
// `ty.is_copy()`, etc, since that will prune the environment where possible.
380+
/// Trait selection queries. These are best used by invoking `ty.moves_by_default()`,
381+
/// `ty.is_copy()`, etc, since that will prune the environment where possible.
382382
[] fn is_copy_raw: is_copy_dep_node(ty::ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool,
383383
[] fn is_sized_raw: is_sized_dep_node(ty::ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool,
384384
[] fn is_freeze_raw: is_freeze_dep_node(ty::ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool,

0 commit comments

Comments
 (0)