Skip to content

Commit 90e94d9

Browse files
authored
Syntax highlight and note about current rust in infer docs
1 parent be49671 commit 90e94d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/infer/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ course, it depends on the program.
152152

153153
The main case which fails today that I would like to support is:
154154

155-
```text
155+
```rust
156156
fn foo<T>(x: T, y: T) { ... }
157157

158158
fn bar() {
@@ -168,6 +168,8 @@ because the type variable `T` is merged with the type variable for
168168
`X`, and thus inherits its UB/LB of `@mut int`. This leaves no
169169
flexibility for `T` to later adjust to accommodate `@int`.
170170

171+
Note: `@` and `@mut` are replaced with `Rc<T>` and `Rc<RefCell<T>>` in current Rust.
172+
171173
### What to do when not all bounds are present
172174

173175
In the prior discussion we assumed that A.ub was not top and B.lb was

0 commit comments

Comments
 (0)