File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
rustc_error_codes/src/error_codes
rustc_smir/src/stable_mir Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ trait Trait {
77 type Bar;
88}
99
10- type Foo = Trait; // error: the value of the associated type `Bar` (from
11- // the trait `Trait`) must be specified
10+ type Foo = dyn Trait; // error: the value of the associated type `Bar` (from
11+ // the trait `Trait`) must be specified
1212```
1313
1414Trait objects need to have all associated types specified. Please verify that
@@ -20,5 +20,5 @@ trait Trait {
2020 type Bar;
2121}
2222
23- type Foo = Trait<Bar=i32>; // ok!
23+ type Foo = dyn Trait<Bar=i32>; // ok!
2424```
Original file line number Diff line number Diff line change 11//! Module that implements the public interface to the Stable MIR.
22//!
3- //! This module shall contain all type definitions and APIs that we expect 3P tools to invoke to
3+ //! This module shall contain all type definitions and APIs that we expect third-party tools to invoke to
44//! interact with the compiler.
55//!
66//! The goal is to eventually move this module to its own crate which shall be published on
Original file line number Diff line number Diff line change @@ -822,6 +822,7 @@ impl f32 {
822822 ///
823823 /// assert!(abs_difference < 1e-10);
824824 /// ```
825+ #[ doc( alias = "log1p" ) ]
825826 #[ rustc_allow_incoherent_impl]
826827 #[ must_use = "method returns a new number and does not mutate the original value" ]
827828 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
Original file line number Diff line number Diff line change @@ -822,6 +822,7 @@ impl f64 {
822822 ///
823823 /// assert!(abs_difference < 1e-20);
824824 /// ```
825+ #[ doc( alias = "log1p" ) ]
825826 #[ rustc_allow_incoherent_impl]
826827 #[ must_use = "method returns a new number and does not mutate the original value" ]
827828 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments