Comment out unused code blocks
This commit is contained in:
		
							parent
							
								
									6846ecbcc0
								
							
						
					
					
						commit
						b78f21ed21
					
				
							
								
								
									
										14
									
								
								src/main.rs
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								src/main.rs
									
									
									
									
									
								
							|  | @ -52,14 +52,14 @@ extern "C" fn start() -> ! { | ||||||
|     unsafe { heap::init() }; |     unsafe { heap::init() }; | ||||||
| 
 | 
 | ||||||
|     // Now we're free to use dynamic allocation!
 |     // Now we're free to use dynamic allocation!
 | ||||||
|     { |     // {
 | ||||||
|         extern crate alloc; |     //     extern crate alloc;
 | ||||||
|         use alloc::boxed::Box; |     //     use alloc::boxed::Box;
 | ||||||
|         let _my_heap_pointer = Box::new(10); |     //     let _my_heap_pointer = Box::new(10);
 | ||||||
|         // _my_heap_pointer lives on the heap!
 |     //     // _my_heap_pointer lives on the heap!
 | ||||||
|     } |     // }
 | ||||||
| 
 | 
 | ||||||
|     println!("This should not print because the console is not initialised."); |     // println!("This should not print because the console is not initialised.");
 | ||||||
|     unsafe { uart::init_console(0x1000_0000) }; |     unsafe { uart::init_console(0x1000_0000) }; | ||||||
|     println!("Hello, world!"); |     println!("Hello, world!"); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue