File tree 1 file changed +1
-14
lines changed
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -408,20 +408,7 @@ pub mod m3 {
408
408
Some primitive Rust operations are defined in Rust code, rather than being
409
409
implemented directly in C or assembly language. The definitions of these
410
410
operations have to be easy for the compiler to find. The ` lang ` attribute
411
- makes it possible to declare these operations. For example, the ` str ` module
412
- in the Rust standard library defines the string equality function:
413
-
414
- ``` rust,ignore
415
- #[lang = "str_eq"]
416
- pub fn eq_slice(a: &str, b: &str) -> bool {
417
- // details elided
418
- }
419
- ```
420
-
421
- The name ` str_eq ` has a special meaning to the Rust compiler, and the presence
422
- of this definition means that it will use this definition when generating calls
423
- to the string equality function.
424
-
411
+ makes it possible to declare these operations.
425
412
The set of language items is currently considered unstable. A complete
426
413
list of the built-in language items will be added in the future.
427
414
You can’t perform that action at this time.
0 commit comments