File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
compiler/rustc_middle/src/query Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ rustc_queries! {
9292 /// Computes the `DefId` of the corresponding const parameter in case the `key` is a
9393 /// const argument and returns `None` otherwise.
9494 ///
95- /// ```rust
95+ /// ```ignore (incomplete)
9696 /// let a = foo::<7>();
9797 /// // ^ Calling `opt_const_param_of` for this argument,
9898 ///
@@ -162,10 +162,12 @@ rustc_queries! {
162162 /// Specifically this is the bounds written on the trait's type
163163 /// definition, or those after the `impl` keyword
164164 ///
165+ /// ```ignore (incomplete)
165166 /// type X: Bound + 'lt
166- /// ^^^^^^^^^^^
167+ /// // ^^^^^^^^^^^
167168 /// impl Debug + Display
168- /// ^^^^^^^^^^^^^^^
169+ /// // ^^^^^^^^^^^^^^^
170+ /// ```
169171 ///
170172 /// `key` is the `DefId` of the associated type or opaque type.
171173 ///
@@ -176,18 +178,22 @@ rustc_queries! {
176178
177179 /// Elaborated version of the predicates from `explicit_item_bounds`.
178180 ///
179- /// Example for
181+ /// For example:
180182 ///
183+ /// ```
181184 /// trait MyTrait {
182- /// type MyAType: Eq + ?Sized`
185+ /// type MyAType: Eq + ?Sized;
183186 /// }
187+ /// ```
184188 ///
185189 /// `explicit_item_bounds` returns `[<Self as MyTrait>::MyAType: Eq]`,
186190 /// and `item_bounds` returns
191+ /// ```text
187192 /// [
188193 /// <Self as Trait>::MyAType: Eq,
189194 /// <Self as Trait>::MyAType: PartialEq<<Self as Trait>::MyAType>
190195 /// ]
196+ /// ```
191197 ///
192198 /// Bounds from the parent (e.g. with nested impl trait) are not included.
193199 query item_bounds( key: DefId ) -> & ' tcx ty:: List <ty:: Predicate <' tcx>> {
You can’t perform that action at this time.
0 commit comments