File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -345,10 +345,11 @@ impl<Traits: KernelTraits> CfgBuilder<Traits> {
345
345
///
346
346
/// # Safety
347
347
///
348
- /// This is only meant to be used by [`build!`]. For a particular system
349
- /// type, there can be only one fully-constructed instance of `CfgBuilder`,
350
- /// to which all defined kernel objects must belong. For example, swapping
351
- /// a given `CfgBuilder` with another one can be used to circumvent the
348
+ /// This is only meant to be used by [`build!`]. Every instance of
349
+ /// `CfgBuilder` destined for a particular kernel trait type and exposed to
350
+ /// user code must be built through the same sequence of configuration
351
+ /// operations. An instance of `CfgBuilder` violating this principle could
352
+ /// be used to create object handles with arbitrary values to circumvent the
352
353
/// compile-time access control of kernel objects.
353
354
#[ doc( hidden) ]
354
355
pub const unsafe fn new ( allocator : & ConstAllocator ) -> Self {
You can’t perform that action at this time.
0 commit comments